From: Paul Eggert Date: Tue, 25 Feb 2003 07:56:34 +0000 (+0000) Subject: (yy_reduce_print): yylineno -> yylno, X-Git-Tag: BISON-2_0~383 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/47ee29cf60549531e8400e808681c4dcc74694d4 (yy_reduce_print): yylineno -> yylno, to avoid collision with flex use of yylineno. Problem reported by Bruce Lilly in . --- diff --git a/data/glr.c b/data/glr.c index c2b678bf..d2cdd77b 100644 --- a/data/glr.c +++ b/data/glr.c @@ -1123,9 +1123,9 @@ static inline void 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), ", - 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]));