mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
style: rename b4_lex as b4_yylex
For consistency with b4_yyerror_formals, etc. * data/skeletons/bison.m4, data/skeletons/c.m4, data/skeletons/d.m4, * data/skeletons/glr.c, data/skeletons/glr2.cc, * data/skeletons/java.m4, data/skeletons/lalr1.cc, * data/skeletons/lalr1.d, data/skeletons/lalr1.java, * data/skeletons/yacc.c (b4_lex, b4_lex_formals): Rename as... (b4_yylex, b4_yylex_formals): these.
This commit is contained in:
@@ -371,7 +371,7 @@ m4_define([b4_declare_yyerror_and_yylex],
|
||||
]b4_function_declare([b4_prefix[error]], void, b4_yyerror_formals)[
|
||||
#endif
|
||||
#if !defined ]b4_prefix[lex && !defined ]b4_api_PREFIX[LEX_IS_DECLARED
|
||||
]b4_function_declare([b4_prefix[lex]], int, b4_lex_formals)[
|
||||
]b4_function_declare([b4_prefix[lex]], int, b4_yylex_formals)[
|
||||
#endif
|
||||
]])dnl
|
||||
])
|
||||
@@ -1532,7 +1532,7 @@ yypull_parse (yypstate *yyps]b4_user_formals[)
|
||||
int yystatus;
|
||||
do {
|
||||
]b4_pure_if([[ YYSTYPE yylval;
|
||||
int ]])[yychar = ]b4_lex[;
|
||||
int ]])[yychar = ]b4_yylex[;
|
||||
yystatus = yypush_parse (yyps]b4_pure_if([[, yychar, &yylval]b4_locations_if([[, &yylloc]])])m4_ifset([b4_parse_param], [, b4_args(b4_parse_param)])[);
|
||||
} while (yystatus == YYPUSH_MORE);
|
||||
return yystatus;
|
||||
@@ -1836,7 +1836,7 @@ yyread_pushed_token:]])[
|
||||
yylval = *yypushed_val;]b4_locations_if([[
|
||||
if (yypushed_loc)
|
||||
yylloc = *yypushed_loc;]])])], [[
|
||||
yychar = ]b4_lex[;]])[
|
||||
yychar = ]b4_yylex[;]])[
|
||||
}
|
||||
|
||||
if (yychar <= ]b4_symbol(eof, [id])[)
|
||||
|
||||
Reference in New Issue
Block a user