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

Diff of /bison/src/tables.c

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

revision 1.11 by hilfinger, Wed Nov 6 02:46:08 2002 UTC revision 1.12 by akim, Tue Nov 12 08:30:47 2002 UTC
# Line 692  pack_vector (vector_number_t vector) Line 692  pack_vector (vector_number_t vector)
692            if (loc > high)            if (loc > high)
693              high = loc;              high = loc;
694    
695            if (j < BASE_MIN || BASE_MAX < j)            assert (BASE_MIN <= j && j <= BASE_MAX);
             fatal ("base_t too small to hold %d\n", j);  
696            return j;            return j;
697          }          }
698      }      }
# Line 802  tables_generate (void) Line 801  tables_generate (void)
801    token_actions ();    token_actions ();
802    
803    goto_actions ();    goto_actions ();
804    XFREE (goto_map + ntokens);    free (goto_map + ntokens);
805    XFREE (from_state);    free (from_state);
806    XFREE (to_state);    free (to_state);
807    
808    order = XCALLOC (vector_number_t, nvectors);    order = XCALLOC (vector_number_t, nvectors);
809    sort_actions ();    sort_actions ();
# Line 816  tables_generate (void) Line 815  tables_generate (void)
815    
816    for (i = 0; i < nvectors; i++)    for (i = 0; i < nvectors; i++)
817      {      {
818        XFREE (froms[i]);        free (froms[i]);
819        XFREE (tos[i]);        free (tos[i]);
820        XFREE (conflict_tos[i]);        XFREE (conflict_tos[i]);
821      }      }
822    

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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