From: Paul Eggert Date: Tue, 19 Jul 2005 07:10:32 +0000 (+0000) Subject: Regenerate. X-Git-Tag: BISON-2_1~72 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/d11e0cfa895cdecbf9b3d0ca842a49c7a214e348 Regenerate. --- diff --git a/src/parse-gram.c b/src/parse-gram.c index 59c0923a..687672ab 100644 --- a/src/parse-gram.c +++ b/src/parse-gram.c @@ -1997,8 +1997,7 @@ yyerrlab: if (yychar <= YYEOF) { - /* If at end of input, pop the error token, - then the rest of the stack, then return failure. */ + /* Return failure if at end of input. */ if (yychar == YYEOF) YYABORT; } @@ -2110,16 +2109,12 @@ yyreturn: if (yychar != YYEOF && yychar != YYEMPTY) yydestruct ("Error: discarding lookahead", yytoken, &yylval, &yylloc); - if (yyssp != yyss) - for (;;) - { - yyerror_range[0] = *yylsp; - YYPOPSTACK; - if (yyssp == yyss) - break; - yydestruct ("Error: popping", - yystos[*yyssp], yyvsp, yylsp); - } + while (yyssp != yyss) + { + yydestruct ("Error: popping", + yystos[*yyssp], yyvsp, yylsp); + YYPOPSTACK; + } #ifndef yyoverflow if (yyss != yyssa) YYSTACK_FREE (yyss); diff --git a/src/parse-gram.h b/src/parse-gram.h index ec10aab0..83d74854 100644 --- a/src/parse-gram.h +++ b/src/parse-gram.h @@ -143,7 +143,7 @@ typedef union YYSTYPE { assoc assoc; uniqstr uniqstr; } YYSTYPE; -/* Line 1399 of yacc.c. */ +/* Line 1394 of yacc.c. */ #line 148 "parse-gram.h" # define yystype YYSTYPE /* obsolescent; will be withdrawn */ # define YYSTYPE_IS_DECLARED 1