* data/glr.c (yyFail): Always set yyerrflag. Corrects regression

on input.at test.
This commit is contained in:
Paul Hilfinger
2002-11-14 23:18:55 +00:00
parent cfff7583d2
commit 970785f1a0
2 changed files with 6 additions and 1 deletions

View File

@@ -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);
}