* src/closure.c (print_firsts, print_fderives): De-obfuscate.

This commit is contained in:
Akim Demaille
2001-12-05 09:39:43 +00:00
parent 3f6f053ce5
commit 841822701a
2 changed files with 8 additions and 12 deletions

View File

@@ -1,3 +1,8 @@
2001-12-05 Akim Demaille <akim@epita.fr>
* src/closure.c (print_firsts, print_fderives): De-obfuscate.
2001-12-05 Akim Demaille <akim@epita.fr>
* src/closure.c (set_firsts): De-obfuscate.

View File

@@ -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);