X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/ad949da96bf5621185a28f354c08f4595bc42952..e9f87b5b7df2e328d2e4196d276c0d96594c906b:/src/closure.c diff --git a/src/closure.c b/src/closure.c index 61a111be..d24e2eab 100644 --- a/src/closure.c +++ b/src/closure.c @@ -103,7 +103,7 @@ print_fderives (void) { short *rhsp; fprintf (stderr, "\t\t%d:", j - 1); - for (rhsp = &ritem[rule_table[j].rhs]; *rhsp >= 0; ++rhsp) + for (rhsp = &ritem[rules[j].rhs]; *rhsp >= 0; ++rhsp) fprintf (stderr, " %s", symbols[*rhsp]->tag); fputc ('\n', stderr); } @@ -133,7 +133,7 @@ set_firsts (void) for (i = ntokens; i < nsyms; i++) for (j = 0; derives[i][j] >= 0; ++j) { - int symbol = ritem[rule_table[derives[i][j]].rhs]; + int symbol = ritem[rules[derives[i][j]].rhs]; if (ISVAR (symbol)) SETBIT (FIRSTS (i), symbol - ntokens); } @@ -225,7 +225,7 @@ closure (short *core, int n) for (ruleno = 0; ruleno < nrules + 1; ++ruleno) if (BITISSET (ruleset, ruleno)) { - int itemno = rule_table[ruleno].rhs; + int itemno = rules[ruleno].rhs; while (c < n && core[c] < itemno) { itemset[nitemset] = core[c];