* 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

@@ -189,7 +189,9 @@ typedef struct state_s
char consistent;
/* Used in LALR, not LR(0). */
short lookaheads;
/* Pseudo pointer into LA. */
short lookaheadsp;
int nlookaheads;
/* Its items. */
short nitems;