yacc.c, glr.c: style: rename yyreturn and yyreturnlab

* data/skeletons/glr.c, data/skeletons/yacc.c: here.
This commit is contained in:
Akim Demaille
2021-01-16 09:20:48 +01:00
parent c93aec904a
commit 4524e17616
2 changed files with 11 additions and 11 deletions

View File

@@ -2606,7 +2606,7 @@ b4_dollar_popdef])[]dnl
yyacceptlab: yyacceptlab:
yyresult = 0; yyresult = 0;
goto yyreturn; goto yyreturnlab;
yybuglab: yybuglab:
YY_ASSERT (yyfalse); YY_ASSERT (yyfalse);
@@ -2614,14 +2614,14 @@ b4_dollar_popdef])[]dnl
yyabortlab: yyabortlab:
yyresult = 1; yyresult = 1;
goto yyreturn; goto yyreturnlab;
yyexhaustedlab: yyexhaustedlab:
yyerror (]b4_lyyerror_args[YY_("memory exhausted")); yyerror (]b4_lyyerror_args[YY_("memory exhausted"));
yyresult = 2; yyresult = 2;
goto yyreturn; goto yyreturnlab;
yyreturn: yyreturnlab:
if (yychar != ]b4_symbol(empty, id)[) if (yychar != ]b4_symbol(empty, id)[)
yydestruct ("Cleanup: discarding lookahead", yydestruct ("Cleanup: discarding lookahead",
YYTRANSLATE (yychar), &yylval]b4_locuser_args([&yylloc])[); YYTRANSLATE (yychar), &yylval]b4_locuser_args([&yylloc])[);

View File

@@ -2121,7 +2121,7 @@ yyerrlab1:
`-------------------------------------*/ `-------------------------------------*/
yyacceptlab: yyacceptlab:
yyresult = 0; yyresult = 0;
goto yyreturn; goto yyreturnlab;
/*-----------------------------------. /*-----------------------------------.
@@ -2129,7 +2129,7 @@ yyacceptlab:
`-----------------------------------*/ `-----------------------------------*/
yyabortlab: yyabortlab:
yyresult = 1; yyresult = 1;
goto yyreturn; goto yyreturnlab;
#if ]b4_lac_if([[1]], [b4_parse_error_case([simple], [[!defined yyoverflow]], [[1]])])[ #if ]b4_lac_if([[1]], [b4_parse_error_case([simple], [[!defined yyoverflow]], [[1]])])[
@@ -2139,14 +2139,14 @@ yyabortlab:
yyexhaustedlab: yyexhaustedlab:
yyerror (]b4_yyerror_args[YY_("memory exhausted")); yyerror (]b4_yyerror_args[YY_("memory exhausted"));
yyresult = 2; yyresult = 2;
goto yyreturn; goto yyreturnlab;
#endif #endif
/*-------------------------------------------------------. /*----------------------------------------------------------.
| yyreturn -- parsing is finished, clean up and return. | | yyreturnlab -- parsing is finished, clean up and return. |
`-------------------------------------------------------*/ `----------------------------------------------------------*/
yyreturn: yyreturnlab:
if (yychar != ]b4_symbol(empty, id)[) if (yychar != ]b4_symbol(empty, id)[)
{ {
/* Make sure we have latest lookahead translation. See comments at /* Make sure we have latest lookahead translation. See comments at