summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDongHun Kwak <dh0128.kwak@samsung.com>2021-10-01 14:46:33 +0900
committerDongHun Kwak <dh0128.kwak@samsung.com>2021-10-01 14:46:33 +0900
commit56113e171a604ffc77d52270c61ae6ee2d0627fc (patch)
tree41f0711ab92ff64579ef7fb531aa515420ea30bb /test
parentdf8480a772d4352d0dff9a532d821c31893d9a78 (diff)
downloadbyacc-56113e171a604ffc77d52270c61ae6ee2d0627fc.tar.gz
byacc-56113e171a604ffc77d52270c61ae6ee2d0627fc.tar.bz2
byacc-56113e171a604ffc77d52270c61ae6ee2d0627fc.zip
Imported Upstream version 20101127upstream/20101127
Diffstat (limited to 'test')
-rw-r--r--test/calc2.tab.c6
-rw-r--r--test/calc3.tab.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/test/calc2.tab.c b/test/calc2.tab.c
index 5d863a5..4cf9c03 100644
--- a/test/calc2.tab.c
+++ b/test/calc2.tab.c
@@ -128,7 +128,7 @@ typedef int YYSTYPE;
/* Parameters sent to yyerror. */
#define YYERROR_DECL() yyerror(YYSTYPE *v, const char *s)
-#define YYERROR_CALL(msg) yyerror(&yylval, msg)
+#define YYERROR_CALL(msg) yyerror(regs, base, msg)
extern int YYPARSE_DECL();
extern int YYLEX_DECL();
@@ -473,7 +473,7 @@ yyloop:
}
if (yyerrflag) goto yyinrecovery;
- yyerror(&yylval, "syntax error");
+ yyerror(regs, base, "syntax error");
goto yyerrlab;
@@ -658,7 +658,7 @@ to state %d\n", YYPREFIX, *yystack.s_mark, yystate);
goto yyloop;
yyoverflow:
- yyerror(&yylval, "yacc stack overflow");
+ yyerror(regs, base, "yacc stack overflow");
yyabort:
yyfreestack(&yystack);
diff --git a/test/calc3.tab.c b/test/calc3.tab.c
index 50b9009..1ef1908 100644
--- a/test/calc3.tab.c
+++ b/test/calc3.tab.c
@@ -128,7 +128,7 @@ typedef int YYSTYPE;
/* Parameters sent to yyerror. */
#define YYERROR_DECL() yyerror(YYSTYPE *v, const char *s)
-#define YYERROR_CALL(msg) yyerror(&yylval, msg)
+#define YYERROR_CALL(msg) yyerror(regs, base, msg)
extern int YYPARSE_DECL();
extern int YYLEX_DECL();
@@ -473,7 +473,7 @@ yyloop:
}
if (yyerrflag) goto yyinrecovery;
- yyerror(&yylval, "syntax error");
+ yyerror(regs, base, "syntax error");
goto yyerrlab;
@@ -658,7 +658,7 @@ to state %d\n", YYPREFIX, *yystack.s_mark, yystate);
goto yyloop;
yyoverflow:
- yyerror(&yylval, "yacc stack overflow");
+ yyerror(regs, base, "yacc stack overflow");
yyabort:
yyfreestack(&yystack);