mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
In glr.c, the macros yychar, yylval and yylloc allow to deal with api.pure: sometimes they point to global variables (impure), sometimes they point to the member variables (pure). There's no room for globals in glr2.cc. Besides, they map yychar to yyrawchar, yylval to yyval, etc. which obfuscates what is actually going on. * data/skeletons/glr2.cc (glr_stack::yyval, glr_stack::yyloc): Rename as... (glr_stack::yylval, glr_stack::yylloc): these, for clarity. (yynerrs, yychar, yylval, yylloc, yystackp): Remove these macros. (b4_yygetToken_call): Remove.