mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 10:13:03 +00:00
(yy_reduce_print): yylineno -> yylno,
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>.
This commit is contained in:
@@ -1123,9 +1123,9 @@ static inline void
|
|||||||
yy_reduce_print (size_t yyk, yyRuleNum yyrule)
|
yy_reduce_print (size_t yyk, yyRuleNum yyrule)
|
||||||
{
|
{
|
||||||
int yyi;
|
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. */
|
/* Print the symbols being reduced, and their result. */
|
||||||
for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
|
for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
|
||||||
YYFPRINTF (stderr, "%s ", yytokenName (yyrhs[yyi]));
|
YYFPRINTF (stderr, "%s ", yytokenName (yyrhs[yyi]));
|
||||||
|
|||||||
Reference in New Issue
Block a user