mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
yacc.c: restore ansi-c compatibility
Reported by neok-m4700. https://github.com/akimd/bison/issues/37 * data/skeletons/yacc.c: Don't use // comments.
This commit is contained in:
@@ -1979,7 +1979,7 @@ yyerrorlab:
|
|||||||
yyerrlab1:
|
yyerrlab1:
|
||||||
yyerrstatus = 3; /* Each real token shifted decrements this. */
|
yyerrstatus = 3; /* Each real token shifted decrements this. */
|
||||||
|
|
||||||
// Pop stack until we find a state that shifts the error token.
|
/* Pop stack until we find a state that shifts the error token. */
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
yyn = yypact[yystate];
|
yyn = yypact[yystate];
|
||||||
|
|||||||
@@ -2705,7 +2705,7 @@ yyerrorlab:
|
|||||||
yyerrlab1:
|
yyerrlab1:
|
||||||
yyerrstatus = 3; /* Each real token shifted decrements this. */
|
yyerrstatus = 3; /* Each real token shifted decrements this. */
|
||||||
|
|
||||||
// Pop stack until we find a state that shifts the error token.
|
/* Pop stack until we find a state that shifts the error token. */
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
yyn = yypact[yystate];
|
yyn = yypact[yystate];
|
||||||
|
|||||||
Reference in New Issue
Block a user