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

Diff of /bison/src/closure.c

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

revision 1.33 by akim, Thu Dec 13 11:02:04 2001 UTC revision 1.34 by akim, Thu Dec 27 18:13:31 2001 UTC
# Line 60  print_closure (const char *title, short Line 60  print_closure (const char *title, short
60      {      {
61        short *rp;        short *rp;
62        fprintf (stderr, "  %2d: .", array[i]);        fprintf (stderr, "  %2d: .", array[i]);
63        for (rp = &ritem[array[i]]; *rp > 0; ++rp)        for (rp = &ritem[array[i]]; *rp >= 0; ++rp)
64          fprintf (stderr, " %s", tags[*rp]);          fprintf (stderr, " %s", tags[*rp]);
65        fprintf (stderr, "  (rule %d)\n", -*rp);        fprintf (stderr, "  (rule %d)\n", -*rp);
66      }      }
# Line 101  print_fderives (void) Line 101  print_fderives (void)
101            {            {
102              short *rhsp;              short *rhsp;
103              fprintf (stderr, "\t\t%d:", j);              fprintf (stderr, "\t\t%d:", j);
104              for (rhsp = ritem + rule_table[j].rhs; *rhsp > 0; ++rhsp)              for (rhsp = ritem + rule_table[j].rhs; *rhsp >= 0; ++rhsp)
105                fprintf (stderr, " %s", tags[*rhsp]);                fprintf (stderr, " %s", tags[*rhsp]);
106              fputc ('\n', stderr);              fputc ('\n', stderr);
107            }            }

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

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