mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 22:33:03 +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:
@@ -132,7 +132,7 @@ relation_transpose (relation_t *R_arg, int n)
|
||||
int *nedges = XCALLOC (int, n);
|
||||
int i, j;
|
||||
|
||||
if (trace_flag)
|
||||
if (trace_flag & trace_sets)
|
||||
{
|
||||
fputs ("relation_transpose: input\n", stderr);
|
||||
relation_print (*R_arg, n, stderr);
|
||||
@@ -171,7 +171,7 @@ relation_transpose (relation_t *R_arg, int n)
|
||||
XFREE ((*R_arg)[i]);
|
||||
free (*R_arg);
|
||||
|
||||
if (trace_flag)
|
||||
if (trace_flag & trace_sets)
|
||||
{
|
||||
fputs ("relation_transpose: output\n", stderr);
|
||||
relation_print (new_R, n, stderr);
|
||||
|
||||
Reference in New Issue
Block a user