/[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.106 by akim, Thu Dec 27 18:07:05 2001 UTC revision 1.107 by akim, Thu Dec 27 18:10:48 2001 UTC
# Line 375  action_row (state_t *state) Line 375  action_row (state_t *state)
375    
376    /* See which tokens are an explicit error in this state (due to    /* See which tokens are an explicit error in this state (due to
377       %nonassoc).  For them, record MINSHORT as the action.  */       %nonassoc).  For them, record MINSHORT as the action.  */
378    if (errp)    for (i = 0; i < errp->nerrs; i++)
379      for (i = 0; i < errp->nerrs; i++)      {
380        {        int symbol = errp->errs[i];
381          int symbol = errp->errs[i];        actrow[symbol] = MINSHORT;
382          actrow[symbol] = MINSHORT;      }
       }  
383    
384    /* Now find the most common reduction and make it the default action    /* Now find the most common reduction and make it the default action
385       for this state.  */       for this state.  */
# Line 903  output_actions (void) Line 902  output_actions (void)
902    
903    for (i = 0; i < nstates; ++i)    for (i = 0; i < nstates; ++i)
904      {      {
905        XFREE (state_table[i]->shifts);        free (state_table[i]->shifts);
906        XFREE (state_table[i]->reductions);        XFREE (state_table[i]->reductions);
907        XFREE (state_table[i]->errs);        free (state_table[i]->errs);
908        free (state_table[i]);        free (state_table[i]);
909      }      }
910    XFREE (state_table);    XFREE (state_table);

Legend:
Removed from v.1.106  
changed lines
  Added in v.1.107

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