From df38312ab0aa55205e87238b0ce80248fe873c35 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 19 Nov 2002 07:35:29 +0000 Subject: [PATCH] (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 . --- data/glr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/glr.c b/data/glr.c index b775d842..7deba2b2 100644 --- a/data/glr.c +++ b/data/glr.c @@ -730,10 +730,10 @@ yydefaultAction (yyStateNum 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, 0, - ((yyindex) == YYTABLE_NINF))[ + ((yytable_value) == YYTABLE_NINF))[ /** Set *YYACTION to the action to take in YYSTATE on seeing YYTOKEN. * Result R means @@ -753,7 +753,7 @@ yygetLRActions (yyStateNum yystate, int yytoken, *yyaction = -yydefact[yystate]; *yyconflicts = yyconfl; } - else if (! yyis_table_ninf (yyindex)) + else if (! yyis_table_ninf (yytable[yyindex])) { *yyaction = yytable[yyindex]; *yyconflicts = yyconfl + yyconflp[yyindex]; -- 2.50.0