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

Diff of /bison/src/LR0.c

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

revision 1.53 by akim, Sat Dec 29 14:18:52 2001 UTC revision 1.54 by akim, Sat Dec 29 14:20:47 2001 UTC
# Line 365  save_reductions (void) Line 365  save_reductions (void)
365    
366    
367  /*--------------------.  /*--------------------.
368  | Build STATE_TABLE.  |  | Build STATES.  |
369  `--------------------*/  `--------------------*/
370    
371  static void  static void
372  set_state_table (void)  set_states (void)
373  {  {
374    state_t *sp;    state_t *sp;
375    state_table = XCALLOC (state_t *, nstates);    states = XCALLOC (state_t *, nstates);
376    
377    for (sp = first_state; sp; sp = sp->next)    for (sp = first_state; sp; sp = sp->next)
378      {      {
# Line 386  set_state_table (void) Line 386  set_state_table (void)
386        if (!sp->reductions)        if (!sp->reductions)
387          sp->reductions = reductions_new (0);          sp->reductions = reductions_new (0);
388    
389        state_table[sp->number] = sp;        states[sp->number] = sp;
390      }      }
391  }  }
392    
# Line 432  generate_states (void) Line 432  generate_states (void)
432    free_closure ();    free_closure ();
433    free_storage ();    free_storage ();
434    
435    /* Set up STATE_TABLE. */    /* Set up STATES. */
436    set_state_table ();    set_states ();
437  }  }

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.54

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