From 56113e171a604ffc77d52270c61ae6ee2d0627fc Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Fri, 1 Oct 2021 14:46:33 +0900 Subject: Imported Upstream version 20101127 --- test/calc2.tab.c | 6 +++--- test/calc3.tab.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'test') 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); -- cgit v1.2.3