* src/lalr.h (lookaheads): Removed array, which contents is now

member of...
(state_t): this structure.
* src/output.c, src/lalr.c, src/print_graph.c, src/conflicts.c:
Adjust.
This commit is contained in:
Akim Demaille
2001-11-19 10:08:20 +00:00
parent de326cc0de
commit f004bf6ac4
5 changed files with 34 additions and 29 deletions

View File

@@ -348,8 +348,8 @@ action_row (int state)
{
/* loop over all the rules available here which require
lookahead */
m = lookaheads[state];
n = lookaheads[state + 1];
m = state_table[state].lookaheads;
n = state_table[state + 1].lookaheads;
for (i = n - 1; i >= m; i--)
{
@@ -928,7 +928,6 @@ output_actions (void)
token_actions ();
free_shifts ();
free_reductions ();
XFREE (lookaheads);
XFREE (LA);
XFREE (LAruleno);