]> git.saurik.com Git - bison.git/blobdiff - src/closure.c
* src/vcg.c: You do the output, so you are responsible of the
[bison.git] / src / closure.c
index 6d3d22078faabdced2af1a5081d2b6e6c819e9d5..649d42528e5328e1d3ddd0d319a64c253a86bbbf 100644 (file)
@@ -19,7 +19,6 @@
    02111-1307, USA.  */
 
 #include "system.h"
-#include "xalloc.h"
 #include "gram.h"
 #include "closure.h"
 #include "derives.h"
@@ -131,7 +130,7 @@ set_firsts (void)
       sp = derives[i];
       while (*sp >= 0)
        {
-         symbol = ritem[rrhs[*sp++]];
+         symbol = ritem[rule_table[*sp++].rhs];
          if (ISVAR (symbol))
            {
              symbol -= ntokens;
@@ -288,7 +287,7 @@ closure (short *core, int n)
            {
              if (word & (1 << b))
                {
-                 itemno = rrhs[ruleno];
+                 itemno = rule_table[ruleno].rhs;
                  while (csp < csend && *csp < itemno)
                    *itemsetend++ = *csp++;
                  *itemsetend++ = itemno;