mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 05:43:03 +00:00
* src/gram.h (rprec, rprecsym, rassoc): Remove, now part of...
(rule_t): this. * src/conflicts.c, src/reader.c, src/reduce.c: Adjust.
This commit is contained in:
13
src/reader.c
13
src/reader.c
@@ -1875,9 +1875,6 @@ packgram (void)
|
||||
|
||||
ritem = XCALLOC (short, nitems + 1);
|
||||
rule_table = XCALLOC (rule_t, nrules) - 1;
|
||||
rprec = XCALLOC (short, nrules) - 1;
|
||||
rprecsym = XCALLOC (short, nrules) - 1;
|
||||
rassoc = XCALLOC (short, nrules) - 1;
|
||||
|
||||
itemno = 0;
|
||||
ruleno = 1;
|
||||
@@ -1897,8 +1894,8 @@ packgram (void)
|
||||
of the last token in it. */
|
||||
if (p->sym->class == token_sym)
|
||||
{
|
||||
rprec[ruleno] = p->sym->prec;
|
||||
rassoc[ruleno] = p->sym->assoc;
|
||||
rule_table[ruleno].prec = p->sym->prec;
|
||||
rule_table[ruleno].assoc = p->sym->assoc;
|
||||
}
|
||||
if (p)
|
||||
p = p->next;
|
||||
@@ -1908,9 +1905,9 @@ packgram (void)
|
||||
the specified symbol's precedence replaces the default. */
|
||||
if (ruleprec)
|
||||
{
|
||||
rprec[ruleno] = ruleprec->prec;
|
||||
rassoc[ruleno] = ruleprec->assoc;
|
||||
rprecsym[ruleno] = ruleprec->value;
|
||||
rule_table[ruleno].prec = ruleprec->prec;
|
||||
rule_table[ruleno].assoc = ruleprec->assoc;
|
||||
rule_table[ruleno].precsym = ruleprec->value;
|
||||
}
|
||||
|
||||
ritem[itemno++] = -ruleno;
|
||||
|
||||
Reference in New Issue
Block a user