mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* data/push.c: (yypvarsinit, yypvars, struct yypvars, yypushparse):
Rename to... (yypstate_init, yypstate, struct yypstate, yypush_parse): ... these and update all uses. (b4_yyssa, b4_yyerror_range, yypstate_init): Rename pv to yyps. (yypush_parse): Rename yypvars argument to yyps and remove redundant local pv. (yypstate_init, yypush_parse): Declare in Bison-generated header file. * tests/calc.at (_AT_DATA_CALC_Y): Use newly named functions.
This commit is contained in:
@@ -338,13 +338,13 @@ main (int argc, const char **argv)
|
||||
[ yydebug = 1;])])[
|
||||
]AT_PUSH_IF([
|
||||
{
|
||||
struct yypvars *ctx = yypvarsinit ();
|
||||
struct yypstate *pstate = yypstate_init ();
|
||||
YYSTYPE my_lval;
|
||||
]AT_LOCATION_IF([YYLTYPE my_lloc;])[
|
||||
do {
|
||||
status = yypushparse (ctx, yylex (&my_lval]AT_LOCATION_IF([[, &my_lloc]])[), &my_lval]AT_LOCATION_IF([[, &my_lloc]])[);
|
||||
status = yypush_parse (pstate, yylex (&my_lval]AT_LOCATION_IF([[, &my_lloc]])[), &my_lval]AT_LOCATION_IF([[, &my_lloc]])[);
|
||||
} while (status == YYPUSH_MORE);
|
||||
free (ctx);
|
||||
free (pstate);
|
||||
}],[
|
||||
status = yyparse (]AT_PARAM_IF([[&result, &count]])[);])[
|
||||
fclose (input);
|
||||
|
||||
Reference in New Issue
Block a user