X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/38f9fd6439a8f5e7aa4557c78426333e42fd25ce..95a2de5695670ae0df98cb3c42141cad549f0204:/data/glr.cc?ds=sidebyside diff --git a/data/glr.cc b/data/glr.cc index 068f9a31..fb9a87b6 100644 --- a/data/glr.cc +++ b/data/glr.cc @@ -229,7 +229,8 @@ b4_copyright([Skeleton interface for Bison GLR parsers in C++], #include #include -#include "location.hh" +]b4_percent_define_ifdef([[location_type]], [], + [[#include "location.hh"]])[ /* Using locations. */ #define YYLSP_NEEDED ]b4_locations_flag[ @@ -277,7 +278,8 @@ b4_user_stype typedef YYSTYPE semantic_type; #endif /// Symbol locations. - typedef ]b4_percent_define_get([[location_type]])[ location_type; + typedef ]b4_percent_define_get([[location_type]], + [[location]])[ location_type; /// Tokens. struct token {