* data/c.m4 (b4_yysymprint_generate): Move the YYINPUT invocation

after the location.
This commit is contained in:
Akim Demaille
2004-09-24 14:14:58 +00:00
parent dd8d90221a
commit 619404e3fd
2 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
2004-09-24 Akim Demaille <akim@epita.fr>
* data/c.m4 (b4_yysymprint_generate): Move the YYINPUT invocation
after the location.
2004-09-24 Akim Demaille <akim@epita.fr>
* doc/bison.texinfo (Table of Symbols): Sort.

View File

@@ -398,12 +398,7 @@ b4_location_if([ (void) yylocationp;
])dnl
[
if (yytype < YYNTOKENS)
{
YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
# ifdef YYPRINT
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# endif
}
YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
else
YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
@@ -411,6 +406,10 @@ b4_location_if([ (void) yylocationp;
fprintf (yyoutput, ": ");
])dnl
[
# ifdef YYPRINT
if (yytype < YYNTOKENS)
YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
# endif
switch (yytype)
{
]m4_map([b4_symbol_actions], m4_defn([b4_symbol_printers]))dnl