/[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.63 by pascal, Fri Oct 19 11:03:50 2001 UTC revision 1.64 by akim, Mon Nov 19 10:07:14 2001 UTC
# Line 200  output_gram (void) Line 200  output_gram (void)
200  static void  static void
201  output_stos (void)  output_stos (void)
202  {  {
203    output_table_data (&output_obstack, accessing_symbol,    int i;
204      short *values = (short *) alloca (sizeof (short) * nstates);
205      for (i = 0; i < nstates; ++i)
206        values[i] = state_table[i].accessing_symbol;
207      output_table_data (&output_obstack, values,
208                       0, 1, nstates);                       0, 1, nstates);
209    muscle_insert ("stos", obstack_finish (&output_obstack));    muscle_insert ("stos", obstack_finish (&output_obstack));
210  }  }
# Line 389  action_row (int state) Line 393  action_row (int state)
393            if (!shift_state)            if (!shift_state)
394              continue;              continue;
395    
396            symbol = accessing_symbol[shift_state];            symbol = state_table[shift_state].accessing_symbol;
397    
398            if (ISVAR (symbol))            if (ISVAR (symbol))
399              break;              break;
# Line 931  output_actions (void) Line 935  output_actions (void)
935    XFREE (lookaheads);    XFREE (lookaheads);
936    XFREE (LA);    XFREE (LA);
937    XFREE (LAruleno);    XFREE (LAruleno);
   XFREE (accessing_symbol);  
938    
939    goto_actions ();    goto_actions ();
940    XFREE (goto_map + ntokens);    XFREE (goto_map + ntokens);
# Line 945  output_actions (void) Line 948  output_actions (void)
948    output_table ();    output_table ();
949    
950    output_check ();    output_check ();
951      XFREE (state_table);
952  }  }
953    
954    
# Line 1030  static void Line 1034  static void
1034  free_itemsets (void)  free_itemsets (void)
1035  {  {
1036    core *cp, *cptmp;    core *cp, *cptmp;
   
   XFREE (state_table);  
   
1037    for (cp = first_state; cp; cp = cptmp)    for (cp = first_state; cp; cp = cptmp)
1038      {      {
1039        cptmp = cp->next;        cptmp = cp->next;

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

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