]> git.saurik.com Git - bison.git/commitdiff
(yygetLRActions): Replace `yyindex' with
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Nov 2002 07:35:29 +0000 (07:35 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Nov 2002 07:35:29 +0000 (07:35 +0000)
`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>.

data/glr.c

index b775d8427b2250f864cb5d3afee5d9a2104a2f5d..7deba2b2f6db82801ff6079af79f8db4a4fd948a 100644 (file)
@@ -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];