X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/fb9087861fd4b7de68fb8e86d08d4f07fd77238d..eeeb962b:/src/closure.c diff --git a/src/closure.c b/src/closure.c index ac37b2c0..593aedf8 100644 --- a/src/closure.c +++ b/src/closure.c @@ -28,7 +28,7 @@ /* ITEMSETSIZE is the size of the array ITEMSET. */ short *itemset; -size_t itemsetsize; +int itemsetsize; static unsigned *ruleset; @@ -100,7 +100,13 @@ print_fderives (void) 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"); }