summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-01 14:47:53 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-01 14:47:53 +0900
commit62b3121283f2b8883922c55079a1aef028578500 (patch)
tree98b84eab1af57131ce8a431773f562e2374cdf6b /test
parentaab51b985946740e209b419e84d803b1e774f96f (diff)
downloadbyacc-62b3121283f2b8883922c55079a1aef028578500.tar.gz
byacc-62b3121283f2b8883922c55079a1aef028578500.tar.bz2
byacc-62b3121283f2b8883922c55079a1aef028578500.zip
Imported Upstream version 20170430upstream/20170430
Diffstat (limited to 'test')
-rw-r--r--test/btyacc/btyacc_calc1.tab.c14
-rw-r--r--test/btyacc/btyacc_demo.tab.c5
-rw-r--r--test/btyacc/btyacc_destroy1.tab.c5
-rw-r--r--test/btyacc/btyacc_destroy2.tab.c5
-rw-r--r--test/btyacc/btyacc_destroy3.tab.c5
-rw-r--r--test/btyacc/calc.tab.c5
-rw-r--r--test/btyacc/calc1.tab.c5
-rw-r--r--test/btyacc/calc2.tab.c5
-rw-r--r--test/btyacc/calc3.tab.c14
-rw-r--r--test/btyacc/code_calc.code.c5
-rw-r--r--test/btyacc/code_error.code.c3
-rw-r--r--test/btyacc/empty.tab.c3
-rw-r--r--test/btyacc/err_inherit3.tab.c5
-rw-r--r--test/btyacc/err_inherit4.tab.c5
-rw-r--r--test/btyacc/err_syntax10.tab.c3
-rw-r--r--test/btyacc/err_syntax11.tab.c3
-rw-r--r--test/btyacc/err_syntax12.tab.c3
-rw-r--r--test/btyacc/err_syntax18.tab.c5
-rw-r--r--test/btyacc/err_syntax20.tab.c5
-rw-r--r--test/btyacc/error.tab.c3
-rw-r--r--test/btyacc/expr.oxout.tab.c5
-rw-r--r--test/btyacc/grammar.tab.c5
-rw-r--r--test/btyacc/inherit0.tab.c5
-rw-r--r--test/btyacc/inherit1.tab.c5
-rw-r--r--test/btyacc/inherit2.tab.c5
-rw-r--r--test/btyacc/ok_syntax1.tab.c14
-rw-r--r--test/btyacc/pure_calc.tab.c14
-rw-r--r--test/btyacc/pure_error.tab.c12
-rw-r--r--test/btyacc/quote_calc-s.tab.c5
-rw-r--r--test/btyacc/quote_calc.tab.c5
-rw-r--r--test/btyacc/quote_calc2-s.tab.c5
-rw-r--r--test/btyacc/quote_calc2.tab.c5
-rw-r--r--test/btyacc/quote_calc3-s.tab.c5
-rw-r--r--test/btyacc/quote_calc3.tab.c5
-rw-r--r--test/btyacc/quote_calc4-s.tab.c5
-rw-r--r--test/btyacc/quote_calc4.tab.c5
-rw-r--r--test/btyacc/rename_debug.c3
-rw-r--r--test/btyacc/varsyntax_calc1.tab.c5
-rw-r--r--test/yacc/big_l.output2
-rw-r--r--test/yacc/calc3.tab.c5
-rw-r--r--test/yacc/ok_syntax1.tab.c5
-rw-r--r--test/yacc/pure_calc.tab.c5
-rw-r--r--test/yacc/pure_error.tab.c3
43 files changed, 205 insertions, 34 deletions
diff --git a/test/btyacc/btyacc_calc1.tab.c b/test/btyacc/btyacc_calc1.tab.c
index d646360..6142a13 100644
--- a/test/btyacc/btyacc_calc1.tab.c
+++ b/test/btyacc/btyacc_calc1.tab.c
@@ -818,6 +818,18 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
+
+ yyerrflag = 0;
+ yychar = 0;
+ memset(&yyval, 0, sizeof(yyval));
+ memset(&yylval, 0, sizeof(yylval));
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(&yyloc, 0, sizeof(yyloc));
+ memset(&yylloc, 0, sizeof(yylloc));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1525,7 +1537,7 @@ case 28:
yyval.vval = yystack.l_mark[-1].vval;
}
break;
-#line 1529 "btyacc_calc1.tab.c"
+#line 1541 "btyacc_calc1.tab.c"
default:
break;
}
diff --git a/test/btyacc/btyacc_demo.tab.c b/test/btyacc/btyacc_demo.tab.c
index 618da35..eff738c 100644
--- a/test/btyacc/btyacc_demo.tab.c
+++ b/test/btyacc/btyacc_demo.tab.c
@@ -1330,6 +1330,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -2103,7 +2106,7 @@ case 59:
#line 197 "btyacc_demo.y"
{ yyval.code = yystack.l_mark[-1].code; }
break;
-#line 2107 "btyacc_demo.tab.c"
+#line 2110 "btyacc_demo.tab.c"
default:
break;
}
diff --git a/test/btyacc/btyacc_destroy1.tab.c b/test/btyacc/btyacc_destroy1.tab.c
index ae87b3b..74c32b1 100644
--- a/test/btyacc/btyacc_destroy1.tab.c
+++ b/test/btyacc/btyacc_destroy1.tab.c
@@ -662,6 +662,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1225,7 +1228,7 @@ case 9:
#line 86 "btyacc_destroy1.y"
{ yyval.nlist = yystack.l_mark[-5].nlist; }
break;
-#line 1229 "btyacc_destroy1.tab.c"
+#line 1232 "btyacc_destroy1.tab.c"
default:
break;
}
diff --git a/test/btyacc/btyacc_destroy2.tab.c b/test/btyacc/btyacc_destroy2.tab.c
index 17621b0..55705ee 100644
--- a/test/btyacc/btyacc_destroy2.tab.c
+++ b/test/btyacc/btyacc_destroy2.tab.c
@@ -662,6 +662,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1225,7 +1228,7 @@ case 9:
#line 86 "btyacc_destroy2.y"
{ yyval.nlist = yystack.l_mark[-5].nlist; }
break;
-#line 1229 "btyacc_destroy2.tab.c"
+#line 1232 "btyacc_destroy2.tab.c"
default:
break;
}
diff --git a/test/btyacc/btyacc_destroy3.tab.c b/test/btyacc/btyacc_destroy3.tab.c
index d16181b..c6b08b8 100644
--- a/test/btyacc/btyacc_destroy3.tab.c
+++ b/test/btyacc/btyacc_destroy3.tab.c
@@ -662,6 +662,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1225,7 +1228,7 @@ case 9:
#line 89 "btyacc_destroy3.y"
{ yyval.nlist = yystack.l_mark[-5].nlist; }
break;
-#line 1229 "btyacc_destroy3.tab.c"
+#line 1232 "btyacc_destroy3.tab.c"
default:
break;
}
diff --git a/test/btyacc/calc.tab.c b/test/btyacc/calc.tab.c
index 82e1f39..052c7ad 100644
--- a/test/btyacc/calc.tab.c
+++ b/test/btyacc/calc.tab.c
@@ -657,6 +657,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1231,7 +1234,7 @@ case 18:
#line 63 "calc.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1235 "calc.tab.c"
+#line 1238 "calc.tab.c"
default:
break;
}
diff --git a/test/btyacc/calc1.tab.c b/test/btyacc/calc1.tab.c
index 48a94a6..2773144 100644
--- a/test/btyacc/calc1.tab.c
+++ b/test/btyacc/calc1.tab.c
@@ -801,6 +801,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1478,7 +1481,7 @@ case 28:
yyval.vval = yystack.l_mark[-1].vval;
}
break;
-#line 1482 "calc1.tab.c"
+#line 1485 "calc1.tab.c"
default:
break;
}
diff --git a/test/btyacc/calc2.tab.c b/test/btyacc/calc2.tab.c
index 694e797..4b4550d 100644
--- a/test/btyacc/calc2.tab.c
+++ b/test/btyacc/calc2.tab.c
@@ -670,6 +670,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1244,7 +1247,7 @@ case 18:
#line 70 "calc2.y"
{ yyval = (*base) * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1248 "calc2.tab.c"
+#line 1251 "calc2.tab.c"
default:
break;
}
diff --git a/test/btyacc/calc3.tab.c b/test/btyacc/calc3.tab.c
index 383d634..199c245 100644
--- a/test/btyacc/calc3.tab.c
+++ b/test/btyacc/calc3.tab.c
@@ -675,6 +675,18 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
+
+ yyerrflag = 0;
+ yychar = 0;
+ memset(&yyval, 0, sizeof(yyval));
+ memset(&yylval, 0, sizeof(yylval));
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(&yyloc, 0, sizeof(yyloc));
+ memset(&yylloc, 0, sizeof(yylloc));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1249,7 +1261,7 @@ case 18:
#line 73 "calc3.y"
{ yyval = (*base) * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1253 "calc3.tab.c"
+#line 1265 "calc3.tab.c"
default:
break;
}
diff --git a/test/btyacc/code_calc.code.c b/test/btyacc/code_calc.code.c
index 1b5cf0f..e2e4c12 100644
--- a/test/btyacc/code_calc.code.c
+++ b/test/btyacc/code_calc.code.c
@@ -530,6 +530,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1104,7 +1107,7 @@ case 18:
#line 67 "code_calc.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1108 "code_calc.code.c"
+#line 1111 "code_calc.code.c"
default:
break;
}
diff --git a/test/btyacc/code_error.code.c b/test/btyacc/code_error.code.c
index f1cd1c6..6169071 100644
--- a/test/btyacc/code_error.code.c
+++ b/test/btyacc/code_error.code.c
@@ -500,6 +500,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
diff --git a/test/btyacc/empty.tab.c b/test/btyacc/empty.tab.c
index a2935ef..11c252d 100644
--- a/test/btyacc/empty.tab.c
+++ b/test/btyacc/empty.tab.c
@@ -519,6 +519,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
diff --git a/test/btyacc/err_inherit3.tab.c b/test/btyacc/err_inherit3.tab.c
index 95c1724..9ccaa5b 100644
--- a/test/btyacc/err_inherit3.tab.c
+++ b/test/btyacc/err_inherit3.tab.c
@@ -619,6 +619,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1189,7 +1192,7 @@ case 13:
#line 75 "err_inherit3.y"
{ yyval.nlist = yystack.l_mark[0].nlist; }
break;
-#line 1193 "err_inherit3.tab.c"
+#line 1196 "err_inherit3.tab.c"
default:
break;
}
diff --git a/test/btyacc/err_inherit4.tab.c b/test/btyacc/err_inherit4.tab.c
index 25db455..6c553b8 100644
--- a/test/btyacc/err_inherit4.tab.c
+++ b/test/btyacc/err_inherit4.tab.c
@@ -617,6 +617,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1179,7 +1182,7 @@ case 11:
#line 77 "err_inherit4.y"
{ yyval.nlist = yystack.l_mark[0].nlist; yyloc = yystack.p_mark[1]; }
break;
-#line 1183 "err_inherit4.tab.c"
+#line 1186 "err_inherit4.tab.c"
default:
break;
}
diff --git a/test/btyacc/err_syntax10.tab.c b/test/btyacc/err_syntax10.tab.c
index bdbc7f7..ef93d6d 100644
--- a/test/btyacc/err_syntax10.tab.c
+++ b/test/btyacc/err_syntax10.tab.c
@@ -518,6 +518,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
diff --git a/test/btyacc/err_syntax11.tab.c b/test/btyacc/err_syntax11.tab.c
index f1e09db..a6a618b 100644
--- a/test/btyacc/err_syntax11.tab.c
+++ b/test/btyacc/err_syntax11.tab.c
@@ -524,6 +524,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
diff --git a/test/btyacc/err_syntax12.tab.c b/test/btyacc/err_syntax12.tab.c
index 8590cad..5cef02b 100644
--- a/test/btyacc/err_syntax12.tab.c
+++ b/test/btyacc/err_syntax12.tab.c
@@ -530,6 +530,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
diff --git a/test/btyacc/err_syntax18.tab.c b/test/btyacc/err_syntax18.tab.c
index 57a0616..8c81319 100644
--- a/test/btyacc/err_syntax18.tab.c
+++ b/test/btyacc/err_syntax18.tab.c
@@ -527,6 +527,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1045,7 +1048,7 @@ case 1:
#line 9 "err_syntax18.y"
{ yyval = yystack.l_mark[1]; }
break;
-#line 1049 "err_syntax18.tab.c"
+#line 1052 "err_syntax18.tab.c"
default:
break;
}
diff --git a/test/btyacc/err_syntax20.tab.c b/test/btyacc/err_syntax20.tab.c
index 42ac3e1..f9ccc2a 100644
--- a/test/btyacc/err_syntax20.tab.c
+++ b/test/btyacc/err_syntax20.tab.c
@@ -522,6 +522,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1040,7 +1043,7 @@ case 1:
#line 12 "err_syntax20.y"
{ yystack.l_mark[-1].rechk = 3; }
break;
-#line 1044 "err_syntax20.tab.c"
+#line 1047 "err_syntax20.tab.c"
default:
break;
}
diff --git a/test/btyacc/error.tab.c b/test/btyacc/error.tab.c
index 26de46d..051f78e 100644
--- a/test/btyacc/error.tab.c
+++ b/test/btyacc/error.tab.c
@@ -523,6 +523,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
diff --git a/test/btyacc/expr.oxout.tab.c b/test/btyacc/expr.oxout.tab.c
index 83e9ec9..6485717 100644
--- a/test/btyacc/expr.oxout.tab.c
+++ b/test/btyacc/expr.oxout.tab.c
@@ -1943,6 +1943,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -2515,7 +2518,7 @@ case 10:
yyyGenIntNode(8,1,0,&yyval.yyyOxAttrbs,&yystack.l_mark[0].yyyOxAttrbs);
yyyAdjustINRC(8,1,0,0,&yyval.yyyOxAttrbs,&yystack.l_mark[0].yyyOxAttrbs);}}
break;
-#line 2519 "expr.oxout.tab.c"
+#line 2522 "expr.oxout.tab.c"
default:
break;
}
diff --git a/test/btyacc/grammar.tab.c b/test/btyacc/grammar.tab.c
index 187d064..d28354d 100644
--- a/test/btyacc/grammar.tab.c
+++ b/test/btyacc/grammar.tab.c
@@ -1496,6 +1496,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -2684,7 +2687,7 @@ case 114:
yyval.declarator->func_def = FUNC_ANSI;
}
break;
-#line 2688 "grammar.tab.c"
+#line 2691 "grammar.tab.c"
default:
break;
}
diff --git a/test/btyacc/inherit0.tab.c b/test/btyacc/inherit0.tab.c
index 264aed9..058f623 100644
--- a/test/btyacc/inherit0.tab.c
+++ b/test/btyacc/inherit0.tab.c
@@ -542,6 +542,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1100,7 +1103,7 @@ case 11:
#line 43 "inherit0.y"
{ yyval = yystack.l_mark[0]; }
break;
-#line 1104 "inherit0.tab.c"
+#line 1107 "inherit0.tab.c"
default:
break;
}
diff --git a/test/btyacc/inherit1.tab.c b/test/btyacc/inherit1.tab.c
index f454a81..5ff8f34 100644
--- a/test/btyacc/inherit1.tab.c
+++ b/test/btyacc/inherit1.tab.c
@@ -563,6 +563,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1125,7 +1128,7 @@ case 11:
#line 71 "inherit1.y"
{ yyval.nlist = yystack.l_mark[0].nlist; }
break;
-#line 1129 "inherit1.tab.c"
+#line 1132 "inherit1.tab.c"
default:
break;
}
diff --git a/test/btyacc/inherit2.tab.c b/test/btyacc/inherit2.tab.c
index 821d650..f06dda4 100644
--- a/test/btyacc/inherit2.tab.c
+++ b/test/btyacc/inherit2.tab.c
@@ -618,6 +618,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1184,7 +1187,7 @@ case 12:
#line 75 "inherit2.y"
{ yyval.nlist = yystack.l_mark[0].nlist; }
break;
-#line 1188 "inherit2.tab.c"
+#line 1191 "inherit2.tab.c"
default:
break;
}
diff --git a/test/btyacc/ok_syntax1.tab.c b/test/btyacc/ok_syntax1.tab.c
index 85b682c..087a3d0 100644
--- a/test/btyacc/ok_syntax1.tab.c
+++ b/test/btyacc/ok_syntax1.tab.c
@@ -698,6 +698,18 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
+
+ yyerrflag = 0;
+ yychar = 0;
+ memset(&yyval, 0, sizeof(yyval));
+ memset(&yylval, 0, sizeof(yylval));
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(&yyloc, 0, sizeof(yyloc));
+ memset(&yylloc, 0, sizeof(yylloc));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1272,7 +1284,7 @@ case 18:
#line 101 "ok_syntax1.y"
{ yyval.ival = (*base) * yystack.l_mark[-1].ival + yystack.l_mark[0].ival; }
break;
-#line 1276 "ok_syntax1.tab.c"
+#line 1288 "ok_syntax1.tab.c"
default:
break;
}
diff --git a/test/btyacc/pure_calc.tab.c b/test/btyacc/pure_calc.tab.c
index 9bb8959..8c9cfce 100644
--- a/test/btyacc/pure_calc.tab.c
+++ b/test/btyacc/pure_calc.tab.c
@@ -671,6 +671,18 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
+
+ yyerrflag = 0;
+ yychar = 0;
+ memset(&yyval, 0, sizeof(yyval));
+ memset(&yylval, 0, sizeof(yylval));
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(&yyloc, 0, sizeof(yyloc));
+ memset(&yylloc, 0, sizeof(yylloc));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1245,7 +1257,7 @@ case 18:
#line 69 "pure_calc.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1249 "pure_calc.tab.c"
+#line 1261 "pure_calc.tab.c"
default:
break;
}
diff --git a/test/btyacc/pure_error.tab.c b/test/btyacc/pure_error.tab.c
index 07dd116..2c334b5 100644
--- a/test/btyacc/pure_error.tab.c
+++ b/test/btyacc/pure_error.tab.c
@@ -539,6 +539,18 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
+
+ yyerrflag = 0;
+ yychar = 0;
+ memset(&yyval, 0, sizeof(yyval));
+ memset(&yylval, 0, sizeof(yylval));
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(&yyloc, 0, sizeof(yyloc));
+ memset(&yylloc, 0, sizeof(yylloc));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
diff --git a/test/btyacc/quote_calc-s.tab.c b/test/btyacc/quote_calc-s.tab.c
index 1f84f7d..25305be 100644
--- a/test/btyacc/quote_calc-s.tab.c
+++ b/test/btyacc/quote_calc-s.tab.c
@@ -675,6 +675,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1249,7 +1252,7 @@ case 18:
#line 70 "quote_calc.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1253 "quote_calc-s.tab.c"
+#line 1256 "quote_calc-s.tab.c"
default:
break;
}
diff --git a/test/btyacc/quote_calc.tab.c b/test/btyacc/quote_calc.tab.c
index 08661fe..092129c 100644
--- a/test/btyacc/quote_calc.tab.c
+++ b/test/btyacc/quote_calc.tab.c
@@ -681,6 +681,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1255,7 +1258,7 @@ case 18:
#line 70 "quote_calc.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1259 "quote_calc.tab.c"
+#line 1262 "quote_calc.tab.c"
default:
break;
}
diff --git a/test/btyacc/quote_calc2-s.tab.c b/test/btyacc/quote_calc2-s.tab.c
index ed86452..fb14a95 100644
--- a/test/btyacc/quote_calc2-s.tab.c
+++ b/test/btyacc/quote_calc2-s.tab.c
@@ -675,6 +675,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1249,7 +1252,7 @@ case 18:
#line 70 "quote_calc2.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1253 "quote_calc2-s.tab.c"
+#line 1256 "quote_calc2-s.tab.c"
default:
break;
}
diff --git a/test/btyacc/quote_calc2.tab.c b/test/btyacc/quote_calc2.tab.c
index 5378828..f983204 100644
--- a/test/btyacc/quote_calc2.tab.c
+++ b/test/btyacc/quote_calc2.tab.c
@@ -681,6 +681,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1255,7 +1258,7 @@ case 18:
#line 70 "quote_calc2.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1259 "quote_calc2.tab.c"
+#line 1262 "quote_calc2.tab.c"
default:
break;
}
diff --git a/test/btyacc/quote_calc3-s.tab.c b/test/btyacc/quote_calc3-s.tab.c
index 14caffb..15fbd67 100644
--- a/test/btyacc/quote_calc3-s.tab.c
+++ b/test/btyacc/quote_calc3-s.tab.c
@@ -676,6 +676,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1250,7 +1253,7 @@ case 18:
#line 70 "quote_calc3.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1254 "quote_calc3-s.tab.c"
+#line 1257 "quote_calc3-s.tab.c"
default:
break;
}
diff --git a/test/btyacc/quote_calc3.tab.c b/test/btyacc/quote_calc3.tab.c
index 1e4087d..ef26f74 100644
--- a/test/btyacc/quote_calc3.tab.c
+++ b/test/btyacc/quote_calc3.tab.c
@@ -676,6 +676,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1250,7 +1253,7 @@ case 18:
#line 70 "quote_calc3.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1254 "quote_calc3.tab.c"
+#line 1257 "quote_calc3.tab.c"
default:
break;
}
diff --git a/test/btyacc/quote_calc4-s.tab.c b/test/btyacc/quote_calc4-s.tab.c
index 6f91ab7..a5ebdbc 100644
--- a/test/btyacc/quote_calc4-s.tab.c
+++ b/test/btyacc/quote_calc4-s.tab.c
@@ -676,6 +676,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1250,7 +1253,7 @@ case 18:
#line 70 "quote_calc4.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1254 "quote_calc4-s.tab.c"
+#line 1257 "quote_calc4-s.tab.c"
default:
break;
}
diff --git a/test/btyacc/quote_calc4.tab.c b/test/btyacc/quote_calc4.tab.c
index ab95058..14ed4ed 100644
--- a/test/btyacc/quote_calc4.tab.c
+++ b/test/btyacc/quote_calc4.tab.c
@@ -676,6 +676,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1250,7 +1253,7 @@ case 18:
#line 70 "quote_calc4.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 1254 "quote_calc4.tab.c"
+#line 1257 "quote_calc4.tab.c"
default:
break;
}
diff --git a/test/btyacc/rename_debug.c b/test/btyacc/rename_debug.c
index ce7cb3d..5681f91 100644
--- a/test/btyacc/rename_debug.c
+++ b/test/btyacc/rename_debug.c
@@ -386,6 +386,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
diff --git a/test/btyacc/varsyntax_calc1.tab.c b/test/btyacc/varsyntax_calc1.tab.c
index 48723e1..3f37ddf 100644
--- a/test/btyacc/varsyntax_calc1.tab.c
+++ b/test/btyacc/varsyntax_calc1.tab.c
@@ -802,6 +802,9 @@ YYPARSE_DECL()
if (yydebug)
fprintf(stderr, "%sdebug[<# of symbols on state stack>]\n", YYPREFIX);
#endif
+#if defined(YYLTYPE) || defined(YYLTYPE_IS_DECLARED)
+ memset(yyerror_loc_range, 0, sizeof(yyerror_loc_range));
+#endif
#if YYBTYACC
yyps = yyNewState(0); if (yyps == 0) goto yyenomem;
@@ -1479,7 +1482,7 @@ case 28:
yyval.vval = yystack.l_mark[-1].vval;
}
break;
-#line 1483 "varsyntax_calc1.tab.c"
+#line 1486 "varsyntax_calc1.tab.c"
default:
break;
}
diff --git a/test/yacc/big_l.output b/test/yacc/big_l.output
index c98de14..a39dc34 100644
--- a/test/yacc/big_l.output
+++ b/test/yacc/big_l.output
@@ -1,4 +1,4 @@
-YACC: w - -B flag unsupported, reconfigure with --enable-btyacc
+YACC: w - -L flag unsupported, reconfigure with --enable-btyacc
Usage: YACC [options] filename
Options:
diff --git a/test/yacc/calc3.tab.c b/test/yacc/calc3.tab.c
index 839f570..0869f32 100644
--- a/test/yacc/calc3.tab.c
+++ b/test/yacc/calc3.tab.c
@@ -443,6 +443,9 @@ YYPARSE_DECL()
}
#endif
+ memset(&yyval, 0, sizeof(yyval));
+ memset(&yylval, 0, sizeof(yylval));
+
yym = 0;
yyn = 0;
yynerrs = 0;
@@ -627,7 +630,7 @@ case 18:
#line 73 "calc3.y"
{ yyval = (*base) * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 631 "calc3.tab.c"
+#line 634 "calc3.tab.c"
}
yystack.s_mark -= yym;
yystate = *yystack.s_mark;
diff --git a/test/yacc/ok_syntax1.tab.c b/test/yacc/ok_syntax1.tab.c
index d338dc1..0b1267e 100644
--- a/test/yacc/ok_syntax1.tab.c
+++ b/test/yacc/ok_syntax1.tab.c
@@ -467,6 +467,9 @@ YYPARSE_DECL()
}
#endif
+ memset(&yyval, 0, sizeof(yyval));
+ memset(&yylval, 0, sizeof(yylval));
+
yym = 0;
yyn = 0;
yynerrs = 0;
@@ -651,7 +654,7 @@ case 18:
#line 101 "ok_syntax1.y"
{ yyval.ival = (*base) * yystack.l_mark[-1].ival + yystack.l_mark[0].ival; }
break;
-#line 655 "ok_syntax1.tab.c"
+#line 658 "ok_syntax1.tab.c"
}
yystack.s_mark -= yym;
yystate = *yystack.s_mark;
diff --git a/test/yacc/pure_calc.tab.c b/test/yacc/pure_calc.tab.c
index 7a5356d..95afec1 100644
--- a/test/yacc/pure_calc.tab.c
+++ b/test/yacc/pure_calc.tab.c
@@ -439,6 +439,9 @@ YYPARSE_DECL()
}
#endif
+ memset(&yyval, 0, sizeof(yyval));
+ memset(&yylval, 0, sizeof(yylval));
+
yym = 0;
yyn = 0;
yynerrs = 0;
@@ -623,7 +626,7 @@ case 18:
#line 69 "pure_calc.y"
{ yyval = base * yystack.l_mark[-1] + yystack.l_mark[0]; }
break;
-#line 627 "pure_calc.tab.c"
+#line 630 "pure_calc.tab.c"
}
yystack.s_mark -= yym;
yystate = *yystack.s_mark;
diff --git a/test/yacc/pure_error.tab.c b/test/yacc/pure_error.tab.c
index 6c6ed42..a52a160 100644
--- a/test/yacc/pure_error.tab.c
+++ b/test/yacc/pure_error.tab.c
@@ -336,6 +336,9 @@ YYPARSE_DECL()
}
#endif
+ memset(&yyval, 0, sizeof(yyval));
+ memset(&yylval, 0, sizeof(yylval));
+
yym = 0;
yyn = 0;
yynerrs = 0;