mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
2007-01-30 Paolo Bonzini <bonzini@gnu.org>
* data/bison.m4 (b4_percent_define_flag_if): Don't treat 0 as false. Complain if the value does not match empty, "true" or "false". * data/c++.m4: Adjust default definitions of %define variables. * data/java.m4: Adjust default definitions of %define variables. * doc/bison.texinfo (Decl Summary): Adjust the %define entry according to above behavior. * tests/input.at (Boolean %define variables): Test new behavior.
This commit is contained in:
@@ -34,13 +34,13 @@ m4_define([b4_flag_value], [b4_flag_if([$1], [true], [false])])
|
||||
|
||||
# b4_public_if(TRUE, FALSE)
|
||||
# -------------------------
|
||||
b4_percent_define_default([public], 0)
|
||||
b4_percent_define_default([[public]], [[false]])
|
||||
m4_define([b4_public_if],
|
||||
[b4_percent_define_flag_if([public], [$1], [$2])])
|
||||
|
||||
# b4_single_class_if(TRUE, FALSE)
|
||||
# -------------------------------
|
||||
b4_percent_define_default([single_class], 0)
|
||||
b4_percent_define_default([[single_class]], [[false]])
|
||||
m4_define([b4_single_class_if],
|
||||
[b4_percent_define_flag_if([single_class], [$1], [$2])])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user