mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-17 08:13:02 +00:00
* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user