mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
yacc.c: style changes in push mode
* data/skeletons/yacc.c: here.
This commit is contained in:
@@ -2045,13 +2045,13 @@ yyabortlab:
|
|||||||
yyexhaustedlab:
|
yyexhaustedlab:
|
||||||
yyerror (]b4_yyerror_args[YY_("memory exhausted"));
|
yyerror (]b4_yyerror_args[YY_("memory exhausted"));
|
||||||
yyresult = 2;
|
yyresult = 2;
|
||||||
/* Fall through. */
|
goto yyreturn;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/*-----------------------------------------------------.
|
/*-------------------------------------------------------.
|
||||||
| yyreturn -- parsing is finished, return the result. |
|
| yyreturn -- parsing is finished, clean up and return. |
|
||||||
`-----------------------------------------------------*/
|
`-------------------------------------------------------*/
|
||||||
yyreturn:
|
yyreturn:
|
||||||
if (yychar != ]b4_symbol(-2, id)[)
|
if (yychar != ]b4_symbol(-2, id)[)
|
||||||
{
|
{
|
||||||
@@ -2079,11 +2079,12 @@ yyreturn:
|
|||||||
YYSTACK_FREE (yyes);]])b4_push_if([[
|
YYSTACK_FREE (yyes);]])b4_push_if([[
|
||||||
yypstate_clear (yyps);
|
yypstate_clear (yyps);
|
||||||
yyps->yynew = 1;
|
yyps->yynew = 1;
|
||||||
|
goto yypushreturn;
|
||||||
|
|
||||||
|
|
||||||
/*-----------------------------------------.
|
/*-------------------------.
|
||||||
| yypushreturn -- ask for the next token. |
|
| yypushreturn -- return. |
|
||||||
`-----------------------------------------*/
|
`-------------------------*/
|
||||||
yypushreturn:]])[
|
yypushreturn:]])[
|
||||||
]b4_parse_error_bmatch([detailed\|verbose],
|
]b4_parse_error_bmatch([detailed\|verbose],
|
||||||
[[ if (yymsg != yymsgbuf)
|
[[ if (yymsg != yymsgbuf)
|
||||||
|
|||||||
Reference in New Issue
Block a user