]> git.saurik.com Git - bison.git/commit - data/c++.m4
lalr1.cc: don't generate location.hh when location_type is defined
authorAkim Demaille <demaille@gostai.com>
Wed, 14 Apr 2010 15:56:38 +0000 (17:56 +0200)
committerAkim Demaille <demaille@gostai.com>
Tue, 4 May 2010 09:34:03 +0000 (11:34 +0200)
commit7789b6e3e7199a00437f03591a4605e6c042bdea
treeb665e1136e4d7d8f62080026b3bfaa5146b7a1df
parent19ad326be4a09a1c7ea6ce8bea5adaf90d1f8fae
lalr1.cc: don't generate location.hh when location_type is defined

* data/bison.m4 (b4_percent_define_get): Accept a default value.
* data/c++.m4: Do not provide a default value for the %define
variable location_type, rather, use b4_percent_define_get with a
default argument where its value is needed.
* data/lalr1.cc: Do not load location.cc (which outputs both
location.hh and position.hh) if the user defined location_type.
Do not include location.hh either.
ChangeLog
data/bison.m4
data/c++.m4
data/lalr1.cc