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

Diff of /bison/src/print.c

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

revision 1.73 by akim, Sun Jun 30 17:27:34 2002 UTC revision 1.74 by akim, Sun Jun 30 17:30:29 2002 UTC
# Line 108  static void Line 108  static void
108  print_shifts (FILE *out, state_t *state)  print_shifts (FILE *out, state_t *state)
109  {  {
110    int i;    int i;
111    shifts *shiftp = state->shifts;    shifts_t *shiftp = state->shifts;
112    
113    for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)    for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)
114      if (!SHIFT_IS_DISABLED (shiftp, i))      if (!SHIFT_IS_DISABLED (shiftp, i))
# Line 145  static void Line 145  static void
145  print_gotos (FILE *out, state_t *state)  print_gotos (FILE *out, state_t *state)
146  {  {
147    int i;    int i;
148    shifts *shiftp = state->shifts;    shifts_t *shiftp = state->shifts;
149    
150    for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)    for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++)
151      /* Skip token shifts.  */;      /* Skip token shifts.  */;
# Line 169  static void Line 169  static void
169  print_reductions (FILE *out, state_t *state)  print_reductions (FILE *out, state_t *state)
170  {  {
171    int i;    int i;
172    shifts *shiftp = state->shifts;    shifts_t *shiftp = state->shifts;
173    reductions *redp = state->reductions;    reductions *redp = state->reductions;
174    errs *errp = state->errs;    errs *errp = state->errs;
175    int nodefault = 0;    int nodefault = 0;
# Line 305  static void Line 305  static void
305  print_actions (FILE *out, state_t *state)  print_actions (FILE *out, state_t *state)
306  {  {
307    reductions *redp = state->reductions;    reductions *redp = state->reductions;
308    shifts *shiftp = state->shifts;    shifts_t *shiftp = state->shifts;
309    
310    if (shiftp->nshifts == 0 && redp->nreds == 0)    if (shiftp->nshifts == 0 && redp->nreds == 0)
311      {      {

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74

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