From: Akim Demaille Date: Sat, 29 Dec 2001 14:20:27 +0000 (+0000) Subject: * src/lalr.c (build_relations): Rename `states' as `states1'. X-Git-Tag: before-m4-back-end~59 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/b9f71f19cc20de68101ba1a9ae60753558247eca?ds=inline * src/lalr.c (build_relations): Rename `states' as `states1'. Sorry, I don't understand exactly what it is, no better name... --- diff --git a/ChangeLog b/ChangeLog index 0150abe0..6583dc55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2001-12-29 Akim Demaille + + * src/lalr.c (build_relations): Rename `states' as `states1'. + Sorry, I don't understand exactly what it is, no better name... + + 2001-12-29 Akim Demaille * src/closure.c, src/conflicts.c, src/derives.c, src/gram.c diff --git a/src/lalr.c b/src/lalr.c index 55986f33..f0b0d3be 100644 --- a/src/lalr.c +++ b/src/lalr.c @@ -401,7 +401,7 @@ static void build_relations (void) { short *edge = XCALLOC (short, ngotos + 1); - short *states = XCALLOC (short, ritem_longest_rhs () + 1); + short *states1 = XCALLOC (short, ritem_longest_rhs () + 1); int i; includes = XCALLOC (short *, ngotos); @@ -418,7 +418,7 @@ build_relations (void) int length = 1; short *rp; state_t *state = state_table[from_state[i]]; - states[0] = state->number; + states1[0] = state->number; for (rp = &ritem[rules[*rulep].rhs]; *rp >= 0; rp++) { @@ -431,7 +431,7 @@ build_relations (void) break; } - states[length++] = state->number; + states1[length++] = state->number; } if (!state->consistent) @@ -446,7 +446,7 @@ build_relations (void) /* JF added rp>=ritem && I hope to god its right! */ if (rp >= ritem && ISVAR (*rp)) { - edge[nedges++] = map_goto (states[--length], *rp); + edge[nedges++] = map_goto (states1[--length], *rp); if (nullable[*rp]) done = 0; } @@ -464,7 +464,7 @@ build_relations (void) } XFREE (edge); - XFREE (states); + XFREE (states1); includes = transpose (includes, ngotos); }