* src/getargs.c (statistics_flag): Replace with...

(trace_flag): New.
(longopts): Accept --trace instead of --statistics.
* src/getargs.h: Adjust.
* src/LR0.c, src/closure.c, src/derives.c, src/nullable.c,
* src/reduce.c: Use trace_flags instead of the CPP conditional TRACE.
This commit is contained in:
Akim Demaille
2001-11-19 09:21:26 +00:00
parent 83bcf86639
commit 3b2925a060
7 changed files with 42 additions and 49 deletions

View File

@@ -25,6 +25,7 @@
*/
#include "system.h"
#include "getargs.h"
#include "types.h"
#include "reader.h"
#include "gram.h"
@@ -32,7 +33,6 @@
short **derives;
#if TRACE
static void
print_derives (void)
@@ -53,7 +53,6 @@ print_derives (void)
putc ('\n', stderr);
}
#endif
void
set_derives (void)
@@ -96,9 +95,8 @@ set_derives (void)
*q++ = -1;
}
#if TRACE
print_derives ();
#endif
if (trace_flag)
print_derives ();
XFREE (dset + ntokens);
XFREE (delts);