]> git.saurik.com Git - bison.git/commitdiff
(yy_reduce_print): yylineno -> yylno,
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Feb 2003 07:56:34 +0000 (07:56 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Feb 2003 07:56:34 +0000 (07:56 +0000)
to avoid collision with flex use of yylineno.
Problem reported by Bruce Lilly in
<http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00016.html>.

data/glr.c

index c2b678bf157f2355f2f0c74524909a22830bf6ea..d2cdd77b5180059073c4894b2071dfa538438259 100644 (file)
@@ -1123,9 +1123,9 @@ static inline void
 yy_reduce_print (size_t yyk, yyRuleNum yyrule)
 {
   int yyi;
 yy_reduce_print (size_t yyk, yyRuleNum yyrule)
 {
   int yyi;
-  unsigned int yylineno = yyrline[yyrule];
+  unsigned int yylno = yyrline[yyrule];
   YYFPRINTF (stderr, "Reducing stack %d by rule %d (line %u), ",
   YYFPRINTF (stderr, "Reducing stack %d by rule %d (line %u), ",
-            yyk, yyrule - 1, yylineno);
+            yyk, yyrule - 1, yylno);
   /* Print the symbols being reduced, and their result.  */
   for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
     YYFPRINTF (stderr, "%s ", yytokenName (yyrhs[yyi]));
   /* Print the symbols being reduced, and their result.  */
   for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
     YYFPRINTF (stderr, "%s ", yytokenName (yyrhs[yyi]));