From 970785f1a049a7f5cd24dcba280b407b2765d19a Mon Sep 17 00:00:00 2001 From: Paul Hilfinger Date: Thu, 14 Nov 2002 23:18:55 +0000 Subject: [PATCH] * data/glr.c (yyFail): Always set yyerrflag. Corrects regression on input.at test. --- ChangeLog | 5 +++++ data/glr.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 35b90a04..4c63d4ee 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-11-14 Paul Hilfinger + + * data/glr.c (yyFail): Always set yyerrflag. Corrects regression + on input.at test. + 2002-11-14 Paul Eggert Fix bugs reported by Nelson H. F. Beebe in diff --git a/data/glr.c b/data/glr.c index 0bb05835..acc30aaf 100644 --- a/data/glr.c +++ b/data/glr.c @@ -594,12 +594,12 @@ static void yyfreeGLRStack (yyGLRStack* yystack); static void yyFail (yyGLRStack* yystack]b4_pure_formals[, const char* yyformat, ...) { + yystack->yyerrflag = 1; if (yyformat != NULL) { char yymsg[256]; va_list yyap; va_start (yyap, yyformat); - yystack->yyerrflag = 1; vsprintf (yymsg, yyformat, yyap); yyerror (]b4_yyerror_args[yymsg); } -- 2.45.2