/[bison]/bison/src/output.c
ViewVC logotype

Diff of /bison/src/output.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.115 by akim, Sat Dec 29 14:20:13 2001 UTC revision 1.116 by akim, Sat Dec 29 14:20:47 2001 UTC
# Line 222  output_stos (void) Line 222  output_stos (void)
222    int i;    int i;
223    short *values = (short *) alloca (sizeof (short) * nstates);    short *values = (short *) alloca (sizeof (short) * nstates);
224    for (i = 0; i < nstates; ++i)    for (i = 0; i < nstates; ++i)
225      values[i] = state_table[i]->accessing_symbol;      values[i] = states[i]->accessing_symbol;
226    output_table_data (&format_obstack, values,    output_table_data (&format_obstack, values,
227                       0, 1, nstates);                       0, 1, nstates);
228    muscle_insert ("stos", obstack_finish (&format_obstack));    muscle_insert ("stos", obstack_finish (&format_obstack));
# Line 362  action_row (state_t *state) Line 362  action_row (state_t *state)
362        if (!shift_state)        if (!shift_state)
363          continue;          continue;
364    
365        symbol = state_table[shift_state]->accessing_symbol;        symbol = states[shift_state]->accessing_symbol;
366    
367        if (ISVAR (symbol))        if (ISVAR (symbol))
368          break;          break;
# Line 486  token_actions (void) Line 486  token_actions (void)
486    actrow = XCALLOC (short, ntokens);    actrow = XCALLOC (short, ntokens);
487    for (i = 0; i < nstates; ++i)    for (i = 0; i < nstates; ++i)
488      {      {
489        yydefact[i] = action_row (state_table[i]);        yydefact[i] = action_row (states[i]);
490        save_row (i);        save_row (i);
491      }      }
492    
# Line 904  output_actions (void) Line 904  output_actions (void)
904    
905    for (i = 0; i < nstates; ++i)    for (i = 0; i < nstates; ++i)
906      {      {
907        free (state_table[i]->shifts);        free (states[i]->shifts);
908        XFREE (state_table[i]->reductions);        XFREE (states[i]->reductions);
909        free (state_table[i]->errs);        free (states[i]->errs);
910        free (state_table[i]);        free (states[i]);
911      }      }
912    XFREE (state_table);    XFREE (states);
913  }  }
914    
915    

Legend:
Removed from v.1.115  
changed lines
  Added in v.1.116

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26