X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/19ad326be4a09a1c7ea6ce8bea5adaf90d1f8fae..c826013fb38c98861ef0fc5d4dc3fb3fb4f555be:/data/lalr1.cc?ds=sidebyside diff --git a/data/lalr1.cc b/data/lalr1.cc index b0b075ca..7cb7db62 100644 --- a/data/lalr1.cc +++ b/data/lalr1.cc @@ -124,10 +124,10 @@ m4_define([b4_parser_class_name], b4_defines_if([], [b4_fatal([b4_skeleton[: using %%defines is mandatory]])]) -b4_locations_if( -[# Backward compatibility. -m4_define([b4_location_constructors]) -m4_include(b4_pkgdatadir/[location.cc])]) +b4_locations_if([b4_percent_define_ifdef([[location_type]], [], + [# Backward compatibility. + m4_define([b4_location_constructors]) + m4_include(b4_pkgdatadir/[location.cc])])]) m4_include(b4_pkgdatadir/[stack.hh]) b4_variant_if([m4_include(b4_pkgdatadir/[variant.hh])]) @@ -149,8 +149,9 @@ dnl FIXME: This is wrong, we want computed header guards. #include #include #include -]b4_locations_if([#include "location.hh"])[ #include "stack.hh" +]b4_locations_if([b4_percent_define_ifdef([[location_type]], [], + [[#include "location.hh"]])])[ ]b4_variant_if([b4_namespace_open b4_variant_define