From: Akim Demaille Date: Fri, 24 Sep 2004 14:14:58 +0000 (+0000) Subject: * data/c.m4 (b4_yysymprint_generate): Move the YYINPUT invocation X-Git-Tag: BISON-2_0~105 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/619404e3fd795d9a0d7673de5d618adb5a9501a9 * data/c.m4 (b4_yysymprint_generate): Move the YYINPUT invocation after the location. --- diff --git a/ChangeLog b/ChangeLog index bb48d8d0..4d16e99a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-09-24 Akim Demaille + + * data/c.m4 (b4_yysymprint_generate): Move the YYINPUT invocation + after the location. + 2004-09-24 Akim Demaille * doc/bison.texinfo (Table of Symbols): Sort. diff --git a/data/c.m4 b/data/c.m4 index 04b2e762..79ce9767 100644 --- a/data/c.m4 +++ b/data/c.m4 @@ -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