* src/lalr.h (reduction_table, shift_table): Removed arrays, which

contents is now members 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:07:44 +00:00
parent 9703cc49e0
commit 90b4416b5b
7 changed files with 46 additions and 54 deletions

View File

@@ -60,7 +60,7 @@ flush_shift (int state, int token)
shifts *shiftp;
int k, i;
shiftp = shift_table[state];
shiftp = state_table[state].shift_table;
if (shiftp)
{
@@ -197,7 +197,7 @@ set_conflicts (int state)
for (i = 0; i < tokensetsize; i++)
lookaheadset[i] = 0;
shiftp = shift_table[state];
shiftp = state_table[state].shift_table;
if (shiftp)
{
k = shiftp->nshifts;
@@ -288,7 +288,7 @@ count_sr_conflicts (int state)
int src_count = 0;
shiftp = shift_table[state];
shiftp = state_table[state].shift_table;
if (!shiftp)
return 0;
@@ -533,7 +533,7 @@ print_reductions (FILE *out, int state)
for (i = 0; i < tokensetsize; i++)
shiftset[i] = 0;
shiftp = shift_table[state];
shiftp = state_table[state].shift_table;
if (shiftp)
{
k = shiftp->nshifts;