/[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.39.2.5 by akim, Tue Oct 2 14:48:53 2001 UTC revision 1.39.2.6 by akim, Mon Nov 19 09:08:44 2001 UTC
# Line 347  output_gram (void) Line 347  output_gram (void)
347  static void  static void
348  output_stos (void)  output_stos (void)
349  {  {
350    output_short_table (&table_obstack, NULL, "yystos", accessing_symbol,    int i;
351      short *values = (short *) alloca (sizeof (short) * nstates);
352      for (i = 0; i < nstates; ++i)
353        values[i] = state_table[i].accessing_symbol;
354      output_short_table (&table_obstack,
355                          "YYSTOS[STATE] -- Accessing symbol to the STATE",
356                          "yystos", values,
357                        0, 1, nstates);                        0, 1, nstates);
358  }  }
359    
# Line 579  action_row (int state) Line 585  action_row (int state)
585            if (!shift_state)            if (!shift_state)
586              continue;              continue;
587    
588            symbol = accessing_symbol[shift_state];            symbol = state_table[shift_state].accessing_symbol;
589    
590            if (ISVAR (symbol))            if (ISVAR (symbol))
591              break;              break;
# Line 1121  output_actions (void) Line 1127  output_actions (void)
1127    XFREE (lookaheads);    XFREE (lookaheads);
1128    XFREE (LA);    XFREE (LA);
1129    XFREE (LAruleno);    XFREE (LAruleno);
   XFREE (accessing_symbol);  
1130    
1131    goto_actions ();    goto_actions ();
1132    XFREE (goto_map + ntokens);    XFREE (goto_map + ntokens);
# Line 1292  static void Line 1297  static void
1297  free_itemsets (void)  free_itemsets (void)
1298  {  {
1299    core *cp, *cptmp;    core *cp, *cptmp;
   
   XFREE (state_table);  
   
1300    for (cp = first_state; cp; cp = cptmp)    for (cp = first_state; cp; cp = cptmp)
1301      {      {
1302        cptmp = cp->next;        cptmp = cp->next;
# Line 1345  output (void) Line 1347  output (void)
1347      output_stos ();      output_stos ();
1348    output_rule_data ();    output_rule_data ();
1349    output_actions ();    output_actions ();
1350      XFREE (state_table);
1351    
1352    if (!no_parser_flag)    if (!no_parser_flag)
1353      output_parser ();      output_parser ();
1354    output_program ();    output_program ();

Legend:
Removed from v.1.39.2.5  
changed lines
  Added in v.1.39.2.6

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