]> git.saurik.com Git - bison.git/commit - data/location.cc
2007-01-23 Paolo Bonzini <bonzini@gnu.org>
authorPaolo Bonzini <bonzini@gnu.org>
Tue, 23 Jan 2007 12:24:27 +0000 (12:24 +0000)
committerPaolo Bonzini <bonzini@gnu.org>
Tue, 23 Jan 2007 12:24:27 +0000 (12:24 +0000)
commit592d0b1eb5a6e8041df3d1461dc9fca60e3e0a54
treebcb9a4eaa75d54291ade70d88939714e6bcf6bb4
parent5f340b4884a158f9d05e9325c4cfde2751f3e660
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.
ChangeLog
data/bison.m4
data/c++.m4
data/glr.cc
data/lalr1.cc
data/location.cc
doc/bison.texinfo
src/parse-gram.c
src/parse-gram.h
src/parse-gram.y