diff options
author | Akim Demaille <akim@epita.fr> | 2002-07-31 19:49:52 +0000 |
---|---|---|
committer | Akim Demaille <akim@epita.fr> | 2002-07-31 19:49:52 +0000 |
commit | 273a74fa89392c33ef4912036c290ad47e535da6 (patch) | |
tree | 3c66ac05acee7cdfa64436721167d16446098174 /src/nullable.c | |
parent | 2ed0e35f8662e46abf2d4b591453c82a66581d99 (diff) | |
download | bison-273a74fa89392c33ef4912036c290ad47e535da6.tar.gz |
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.
Diffstat (limited to 'src/nullable.c')
-rw-r--r-- | src/nullable.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nullable.c b/src/nullable.c index 6a70fa57..9f61fa87 100644 --- a/src/nullable.c +++ b/src/nullable.c @@ -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); } |