X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/edad70670f7f3e6396fb3e6e6971f58cb25272c0..b2ed6e5826e772162719db595446b2c58e4ac5d6:/src/reader.c?ds=sidebyside diff --git a/src/reader.c b/src/reader.c index eaa2d533..93024ea1 100644 --- a/src/reader.c +++ b/src/reader.c @@ -1922,8 +1922,7 @@ packgram (void) bucket *ruleprec; ritem = XCALLOC (short, nitems + 1); - rlhs = XCALLOC (short, nrules) - 1; - rrhs = XCALLOC (short, nrules) - 1; + rule_table = XCALLOC (rule_t, nrules) - 1; rprec = XCALLOC (short, nrules) - 1; rprecsym = XCALLOC (short, nrules) - 1; rassoc = XCALLOC (short, nrules) - 1; @@ -1934,8 +1933,8 @@ packgram (void) p = grammar; while (p) { - rlhs[ruleno] = p->sym->value; - rrhs[ruleno] = itemno; + rule_table[ruleno].lhs = p->sym->value; + rule_table[ruleno].rhs = itemno; ruleprec = p->ruleprec; p = p->next;