mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 04:13:03 +00:00
2007-01-23 Paolo Bonzini <bonzini@gnu.org>
Simplify implementation of unqualified %code, implement macros for uniform treatment of boolean %define flags. Document %define. * data/bison.m4 (b4_percent_define_ifdef, b4_percent_define_flag_if, b4_percent_code_ifdef): New. (b4_percent_code_get): Map unqualified %code to b4_percent_code(). * data/c++.m4: Define default value for global_tokens_and_yystype. * data/glr.cc: Likewise. * data/location.cc: Use b4_percent_define_flag_if. * doc/bison.texinfo (Directives): Document %define. * src/parse-gram.y (Unqualified %code): Change muscle name to b4_percent_code(). (content.opt): Default to empty.
This commit is contained in:
@@ -366,7 +366,7 @@ b4_user_stype
|
||||
};
|
||||
|
||||
]dnl Redirections for glr.c.
|
||||
m4_ifval(b4_percent_define_get([[global_tokens_and_yystype]]),
|
||||
b4_percent_define_flag_if([[global_tokens_and_yystype]],
|
||||
[b4_token_defines(b4_tokens)])
|
||||
[
|
||||
#ifndef YYSTYPE
|
||||
|
||||
Reference in New Issue
Block a user