]> git.saurik.com Git - bison.git/commitdiff
Define yy::variant only when needed.
authorAkim Demaille <demaille@gostai.com>
Fri, 18 Jul 2008 15:56:53 +0000 (17:56 +0200)
committerAkim Demaille <demaille@gostai.com>
Mon, 3 Nov 2008 21:01:10 +0000 (22:01 +0100)
* data/lalr1-fusion.cc (yy::variant): Define only if variants are
used.

ChangeLog
data/lalr1-fusion.cc

index 173d2e189eb32c0da7fc814cb99d3d97754d8154..b69409c7726e582c773da2309eb98021c166661c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-03  Akim Demaille  <demaille@gostai.com>
+
+       Define yy::variant only when needed.
+       * data/lalr1-fusion.cc (yy::variant): Define only if variants are
+       used.
+
 2008-11-03  Akim Demaille  <demaille@gostai.com>
 
        Bench the three-stack lalr1.cc.
index 73e4e3fc98206bf442a3c67764c41be55731227a..ca5da6a5adf95a23ed11292a19c32820b37b6499 100644 (file)
@@ -155,7 +155,8 @@ dnl FIXME: This is wrong, we want computed header guards.
 ]b4_namespace_open[
   class position;
   class location;
-
+]b4_variant_if(
+[[
   /// A char[S] buffer to store and retrieve objects.
   ///
   /// Sort of a variant, but does not keep track of the nature
@@ -199,7 +200,7 @@ dnl FIXME: This is wrong, we want computed header guards.
     /// A buffer large enough to store any of the semantic values.
     char buffer[S];
   };
-
+]])[
 ]b4_namespace_close[
 
 #include "location.hh"