mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-14 14:53:03 +00:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user