]> git.saurik.com Git - bison.git/commit
Treat %error-verbose as %define error_verbose.
authorAkim Demaille <demaille@gostai.com>
Thu, 2 Apr 2009 22:18:47 +0000 (00:18 +0200)
committerAkim Demaille <demaille@gostai.com>
Fri, 3 Apr 2009 08:26:09 +0000 (10:26 +0200)
commitb3a2272a7389932c298e2ba3ea72090c85b3f4ba
treecc8e99dc004386f9035986f952d16e24f3ccfbd5
parent92822affc53ea6df5caad9693daf347bfdf87723
Treat %error-verbose as %define error_verbose.

This allows to pass -Derror_verbose on the command line.  Better yet, it
allows to pass -Derror_verbose=$(ERROR_VERBOSE), with ERROR_VERBOSE being
defined as false or true.

* data/bison.m4 (b4_percent_define_if_define): Instead of relying
on b4_percent_define_ifdef, for does not check the defined value,
but only whether the symbol is defined, rely on
b4_percent_define_flag_if, so that a value of "false" is processed
as a false.
If not defined, define the flag to "false".
(b4_error_verbose_if): New.
* data/glr.c, data/lalr1.cc, data/yacc.c: Use it instead of
b4_error_verbose_flag.
* src/getargs.h, src/getargs.c (error_verbose_flag): Remove.
* src/output.c (prepare): Don't output it.
* src/parse-gram.y (%error-verbose): Treat as %define error_verbose.
data/bison.m4
data/glr.c
data/lalr1.cc
data/yacc.c
src/getargs.c
src/getargs.h
src/output.c
src/parse-gram.y