- {
- if (INDEX[i] == 0 && R[i])
- traverse (i);
- }
-
- FREE (INDEX);
- FREE (VERTICES);
-}
-
-static void
-set_state_table (void)
-{
- core *sp;
-
- state_table = NEW2 (nstates, core *);
-
- for (sp = first_state; sp; sp = sp->next)
- state_table[sp->number] = sp;
-}
-
-
-static void
-set_accessing_symbol (void)
-{
- core *sp;
-
- accessing_symbol = NEW2 (nstates, short);
-
- for (sp = first_state; sp; sp = sp->next)
- accessing_symbol[sp->number] = sp->accessing_symbol;
-}
-
-
-static void
-set_shift_table (void)
-{
- shifts *sp;
-
- shift_table = NEW2 (nstates, shifts *);
-
- for (sp = first_shift; sp; sp = sp->next)
- shift_table[sp->number] = sp;
-}
-
-
-static void
-set_reduction_table (void)
-{
- reductions *rp;
-
- reduction_table = NEW2 (nstates, reductions *);