mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 17:53:02 +00:00
(yygetLRActions): Replace `yyindex' with
`yytable[yyindex]' to fix typo introduced in my 2002-11-09 patch. This fixes the regression with Sun ONE Studio 7 cc that I reported in <http://mail.gnu.org/pipermail/bug-bison/2002-November/001892.html>.
This commit is contained in:
@@ -730,10 +730,10 @@ yydefaultAction (yyStateNum yystate)
|
|||||||
return yydefact[yystate];
|
return yydefact[yystate];
|
||||||
}
|
}
|
||||||
|
|
||||||
#define yyis_table_ninf(yyindex) \
|
#define yyis_table_ninf(yytable_value) \
|
||||||
]m4_if(m4_eval(b4_table_ninf < b4_table_min), 1,
|
]m4_if(m4_eval(b4_table_ninf < b4_table_min), 1,
|
||||||
0,
|
0,
|
||||||
((yyindex) == YYTABLE_NINF))[
|
((yytable_value) == YYTABLE_NINF))[
|
||||||
|
|
||||||
/** Set *YYACTION to the action to take in YYSTATE on seeing YYTOKEN.
|
/** Set *YYACTION to the action to take in YYSTATE on seeing YYTOKEN.
|
||||||
* Result R means
|
* Result R means
|
||||||
@@ -753,7 +753,7 @@ yygetLRActions (yyStateNum yystate, int yytoken,
|
|||||||
*yyaction = -yydefact[yystate];
|
*yyaction = -yydefact[yystate];
|
||||||
*yyconflicts = yyconfl;
|
*yyconflicts = yyconfl;
|
||||||
}
|
}
|
||||||
else if (! yyis_table_ninf (yyindex))
|
else if (! yyis_table_ninf (yytable[yyindex]))
|
||||||
{
|
{
|
||||||
*yyaction = yytable[yyindex];
|
*yyaction = yytable[yyindex];
|
||||||
*yyconflicts = yyconfl + yyconflp[yyindex];
|
*yyconflicts = yyconfl + yyconflp[yyindex];
|
||||||
|
|||||||
Reference in New Issue
Block a user