]> git.saurik.com Git - bison.git/commit - src/LR0.c
Let --trace have arguments.
authorAkim Demaille <akim@epita.fr>
Wed, 31 Jul 2002 19:49:52 +0000 (19:49 +0000)
committerAkim Demaille <akim@epita.fr>
Wed, 31 Jul 2002 19:49:52 +0000 (19:49 +0000)
commit273a74fa89392c33ef4912036c290ad47e535da6
tree3c66ac05acee7cdfa64436721167d16446098174
parent2ed0e35f8662e46abf2d4b591453c82a66581d99
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.
20 files changed:
ChangeLog
configure.in
m4/Makefile.am
m4/stage.m4 [new file with mode: 0644]
m4/warning.m4
src/LR0.c
src/closure.c
src/derives.c
src/getargs.c
src/getargs.h
src/injections.c [new file with mode: 0644]
src/lalr.c
src/main.c
src/nullable.c
src/output.c
src/reader.c
src/reduce.c
src/relation.c
src/system.h
tests/sets.at