]> git.saurik.com Git - bison.git/blobdiff - src/closure.c
* src/bison.simple: Remove YYERROR_VERBOSE using.
[bison.git] / src / closure.c
index ac37b2c018021e162b9520e5d84670f585618bed..593aedf8fd64448985d79199288d4430a16fad4a 100644 (file)
@@ -28,7 +28,7 @@
 
 /* ITEMSETSIZE is the size of the array ITEMSET.  */
 short *itemset;
 
 /* ITEMSETSIZE is the size of the array ITEMSET.  */
 short *itemset;
-size_t itemsetsize;
+int itemsetsize;
 
 static unsigned *ruleset;
 
 
 static unsigned *ruleset;
 
@@ -100,7 +100,13 @@ print_fderives (void)
 
       for (j = 0; j <= nrules; j++)
        if (BITISSET (rp, j))
 
       for (j = 0; j <= nrules; j++)
        if (BITISSET (rp, j))
-         fprintf (stderr, "\t\t%d (%s)\n", j, tags[j]);
+         {
+           short *rhsp;
+           fprintf (stderr, "\t\t%d:", j);
+           for (rhsp = ritem + rule_table[j].rhs; *rhsp > 0; ++rhsp)
+             fprintf (stderr, " %s", tags[*rhsp]);
+           fputc ('\n', stderr);
+         }
     }
   fprintf (stderr, "\n\n");
 }
     }
   fprintf (stderr, "\n\n");
 }