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

Diff of /bison/src/state.c

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

revision 1.11 by akim, Sun Jun 30 17:30:46 2002 UTC revision 1.12 by akim, Sun Jun 30 17:31:37 2002 UTC
# Line 49  shifts_new (int nshifts, state_number_t Line 49  shifts_new (int nshifts, state_number_t
49  }  }
50    
51    
52    /*-----------------------------------------------------------------.
53    | Return the state such these SHIFTS contain a shift/goto to it on |
54    | SYMBOL.  Aborts if none found.                                   |
55    `-----------------------------------------------------------------*/
56    
57    state_t *
58    shifts_to (shifts_t *shifts, symbol_number_t s)
59    {
60      int j;
61      for (j = 0; j < shifts->nshifts; j++)
62        if (SHIFT_SYMBOL (shifts, j) == s)
63          return states[shifts->shifts[j]];
64      abort ();
65    }
66    
67    
68                          /*--------------------.                          /*--------------------.

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