/[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.34 by akim, Thu Dec 27 18:13:31 2001 UTC revision 1.35 by akim, Sat Dec 29 14:16:46 2001 UTC
# Line 62  print_closure (const char *title, short Line 62  print_closure (const char *title, short
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 - 1);
66      }      }
67    fputs ("\n\n", stderr);    fputs ("\n\n", stderr);
68  }  }
# Line 100  print_fderives (void) Line 100  print_fderives (void)
100          if (BITISSET (FDERIVES (i), j))          if (BITISSET (FDERIVES (i), j))
101            {            {
102              short *rhsp;              short *rhsp;
103              fprintf (stderr, "\t\t%d:", j);              fprintf (stderr, "\t\t%d:", j - 1);
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.34  
changed lines
  Added in v.1.35

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