Sorry, I don't understand exactly what it is, no better name...
+2001-12-29 Akim Demaille <akim@epita.fr>
+
+ * 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 <akim@epita.fr>
* src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
2001-12-29 Akim Demaille <akim@epita.fr>
* src/closure.c, src/conflicts.c, src/derives.c, src/gram.c
build_relations (void)
{
short *edge = XCALLOC (short, ngotos + 1);
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);
int i;
includes = XCALLOC (short *, ngotos);
int length = 1;
short *rp;
state_t *state = state_table[from_state[i]];
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++)
{
for (rp = &ritem[rules[*rulep].rhs]; *rp >= 0; rp++)
{
- states[length++] = state->number;
+ states1[length++] = state->number;
}
if (!state->consistent)
}
if (!state->consistent)
/* JF added rp>=ritem && I hope to god its right! */
if (rp >= ritem && ISVAR (*rp))
{
/* 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;
}
if (nullable[*rp])
done = 0;
}
includes = transpose (includes, ngotos);
}
includes = transpose (includes, ngotos);
}