[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: YYPRINT and symbol_print
From: |
Akim Demaille |
Subject: |
FYI: YYPRINT and symbol_print |
Date: |
Fri, 24 Sep 2004 16:15:19 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Index: ChangeLog
from Akim Demaille <address@hidden>
* data/c.m4 (b4_yysymprint_generate): Move the YYINPUT invocation
after the location.
Index: data/c.m4
===================================================================
RCS file: /cvsroot/bison/bison/data/c.m4,v
retrieving revision 1.25
diff -u -u -r1.25 c.m4
--- data/c.m4 20 Sep 2004 09:32:55 -0000 1.25
+++ data/c.m4 24 Sep 2004 14:14:17 -0000
@@ -398,12 +398,7 @@
])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 @@
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: YYPRINT and symbol_print,
Akim Demaille <=