X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/f693ad146e6e4951662d60903b8512d518cb09da..92790e5bf0c5b23e4a1d92ab8a9204e69db1eaf2:/src/print.c diff --git a/src/print.c b/src/print.c index e80b5239..0a2d0209 100644 --- a/src/print.c +++ b/src/print.c @@ -111,21 +111,14 @@ print_actions (FILE *out, int state) return; } - for (i = 0; i < shiftp->nshifts; i++) + for (i = 0; i < shiftp->nshifts && SHIFT_IS_SHIFT (shiftp, i); i++) if (!SHIFT_IS_DISABLED (shiftp, i)) { int state1 = shiftp->shifts[i]; int symbol = state_table[state1]->accessing_symbol; - /* The following line used to be turned off. */ - if (ISVAR (symbol)) - break; - if (symbol == 0) /* I.e. strcmp(tags[symbol],"$")==0 */ - fprintf (out, - _(" $ \tgo to state %d\n"), state1); - else - fprintf (out, - _(" %-4s\tshift, and go to state %d\n"), - tags[symbol], state1); + fprintf (out, + _(" %-4s\tshift, and go to state %d\n"), + tags[symbol], state1); } if (i > 0) @@ -318,7 +311,7 @@ print_results (void) { int i; - /* We used to use just .out if spec_name_prefix (-p) was used, but + /* We used to use just .out if SPEC_NAME_PREFIX (-p) was used, but that conflicts with Posix. */ FILE *out = xfopen (spec_verbose_file, "w");