* src/state.h (state_t): Rename lookaheads as lookaheadsp.

nlookaheads is a new member.
Adjust all users.
* src/lalr.h (nlookaheads): Remove this orphan declaration.
* src/lalr.c (initialize_lookaheads): Set nlookaheads for each
state.
This commit is contained in:
Akim Demaille
2001-12-17 17:32:59 +00:00
parent 331dbc1bb7
commit 3877f72ba2
6 changed files with 37 additions and 24 deletions

View File

@@ -344,8 +344,8 @@ action_row (int state)
int j;
/* loop over all the rules available here which require
lookahead */
m = state_table[state]->lookaheads;
n = state_table[state + 1]->lookaheads;
m = state_table[state]->lookaheadsp;
n = state_table[state + 1]->lookaheadsp;
for (i = n - 1; i >= m; i--)
/* and find each token which the rule finds acceptable