mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 22:03:02 +00:00
Let --trace have arguments.
* src/getargs.h (enum trace_e): New. * src/getargs.c (trace_args, trace_types, trace_argmatch): New. (long_options, short_options): --trace/-T takes an optional argument. Change all the uses of trace_flag to reflect the new flags. * tests/sets.at (Firsts, Nullable, Broken Closure): Use --trace=sets. Strengthen `stage' portability. * m4/stage.m4 (BISON_PREREQ_STAGE): New. * configure.in: Use it. Don't check for malloc.h and sys/times.h. * src/system.h: Include them when appropriate. * src/main.c (stage): Compile only when mallinfo, struct mallinfo, times and struct tms are available.
This commit is contained in:
@@ -66,9 +66,6 @@ set_nullable (void)
|
||||
Supposedly NRITEMS - NRULES is enough. But why take the risk? */
|
||||
rule_list_t *relts = XCALLOC (rule_list_t, nritems + nvars + 1);
|
||||
|
||||
if (trace_flag)
|
||||
fprintf (stderr, "Entering set_nullable\n");
|
||||
|
||||
nullable = XCALLOC (char, nvars) - ntokens;
|
||||
|
||||
s1 = s2 = squeue;
|
||||
@@ -128,7 +125,7 @@ set_nullable (void)
|
||||
XFREE (rsets + ntokens);
|
||||
XFREE (relts);
|
||||
|
||||
if (trace_flag)
|
||||
if (trace_flag & trace_sets)
|
||||
nullable_print (stderr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user