summaryrefslogtreecommitdiff
path: root/src/state.h
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2002-06-15 18:23:50 +0000
committerAkim Demaille <akim@epita.fr>2002-06-15 18:23:50 +0000
commitc02634922181a18cd6f2d430901a7747ea17b12b (patch)
treedab67d88d11e1c829d1fd4788079a948f8bf1667 /src/state.h
parent9757c359efc607b6d9e4675447a7b1afd873bc6e (diff)
downloadbison-c02634922181a18cd6f2d430901a7747ea17b12b.tar.gz
* src/state.h (state_t): Replace the `lookaheadsp' member, a
short, with `lookaheads' (bitsetv), `lookaheads_rule' (rule_t**). Adjust all dependencies. * src/lalr.c (initialize_lookaheads): Split into... (states_lookaheads_count, states_lookaheads_initialize): these. (lalr): Adjust.
Diffstat (limited to 'src/state.h')
-rw-r--r--src/state.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state.h b/src/state.h
index 95b716d8..7f578bdc 100644
--- a/src/state.h
+++ b/src/state.h
@@ -88,6 +88,7 @@
#ifndef STATE_H_
# define STATE_H_
+# include "bitsetv.h"
/*---------.
| Shifts. |
@@ -180,9 +181,9 @@ typedef struct state_s
char consistent;
/* Used in LALR, not LR(0). */
- /* Pseudo pointer into LA. */
- short lookaheadsp;
int nlookaheads;
+ bitsetv lookaheads;
+ rule_t **lookaheads_rule;
/* If some conflicts were solved thanks to precedence/associativity,
a human readable description of the resolution. */