* src/LR0.c (new_state): Complete trace code.

* src/nullable.c (set_nullable): Don't translate traces.
This commit is contained in:
Akim Demaille
2001-11-19 09:14:07 +00:00
parent 50766eee39
commit c1586e58fe
3 changed files with 10 additions and 3 deletions

View File

@@ -200,7 +200,8 @@ new_state (int symbol)
short *iend;
#if TRACE
fprintf (stderr, "Entering new_state, symbol = %d\n", symbol);
fprintf (stderr, "Entering new_state, symbol = %d, state = %d\n",
symbol, nstates);
#endif
if (nstates >= MAXSHORT)

View File

@@ -1,5 +1,5 @@
/* Part of the bison parser generator,
Copyright 1984, 1989, 2000 Free Software Foundation, Inc.
Copyright 1984, 1989, 2000, 2001 Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler.
@@ -48,7 +48,7 @@ set_nullable (void)
short *r1;
#ifdef TRACE
fprintf (stderr, _("Entering set_nullable"));
fprintf (stderr, "Entering set_nullable\n");
#endif
nullable = XCALLOC (char, nvars) - ntokens;