From: Akim Demaille Date: Wed, 5 Dec 2001 09:39:43 +0000 (+0000) Subject: * src/closure.c (print_firsts, print_fderives): De-obfuscate. X-Git-Tag: before-m4-back-end~190 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/841822701aa1ed9cebbf65844a31f0b34bd789cc * src/closure.c (print_firsts, print_fderives): De-obfuscate. --- diff --git a/ChangeLog b/ChangeLog index a0baad07..18fba633 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2001-12-05 Akim Demaille + + * src/closure.c (print_firsts, print_fderives): De-obfuscate. + + 2001-12-05 Akim Demaille * src/closure.c (set_firsts): De-obfuscate. diff --git a/src/closure.c b/src/closure.c index 849b0b62..4b0a6ec0 100644 --- a/src/closure.c +++ b/src/closure.c @@ -64,20 +64,14 @@ print_closure (int n) static void print_firsts (void) { - int i; - int j; - unsigned *rowp; + int i, j; fprintf (stderr, "FIRSTS\n"); - for (i = ntokens; i < nsyms; i++) { fprintf (stderr, "\t%s firsts\n", tags[i]); - - rowp = FIRSTS (i - ntokens); - for (j = 0; j < nvars; j++) - if (BITISSET (rowp, j)) + if (BITISSET (FIRSTS (i - ntokens), j)) fprintf (stderr, "\t\t%d (%s)\n", j + ntokens, tags[j + ntokens]); } fprintf (stderr, "\n\n"); @@ -89,17 +83,14 @@ print_fderives (void) { int i; int j; - unsigned *rp; fprintf (stderr, "FDERIVES\n"); for (i = ntokens; i < nsyms; i++) { fprintf (stderr, "\t%s derives\n", tags[i]); - rp = FDERIVES (i); - for (j = 0; j <= nrules; j++) - if (BITISSET (rp, j)) + if (BITISSET (FDERIVES (i), j)) { short *rhsp; fprintf (stderr, "\t\t%d:", j);