mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
yacc.c: avoid the use of a temporary
* data/skeletons/yacc.c: Use YYLLOC_DEFAULT directly with the final destination.
This commit is contained in:
@@ -2052,10 +2052,8 @@ yyerrlab1:
|
|||||||
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
YY_IGNORE_MAYBE_UNINITIALIZED_END
|
||||||
]b4_locations_if([[
|
]b4_locations_if([[
|
||||||
yyerror_range[2] = yylloc;
|
yyerror_range[2] = yylloc;
|
||||||
/* Using YYLLOC is tempting, but would change the location of
|
++yylsp;
|
||||||
the lookahead. YYLOC is available though. */
|
YYLLOC_DEFAULT (*yylsp, yyerror_range, 2);]])[
|
||||||
YYLLOC_DEFAULT (yyloc, yyerror_range, 2);
|
|
||||||
*++yylsp = yyloc;]])[
|
|
||||||
|
|
||||||
/* Shift the error token. */
|
/* Shift the error token. */
|
||||||
YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
|
YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);
|
||||||
|
|||||||
Reference in New Issue
Block a user