mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
Define yy::variant only when needed.
* data/lalr1-fusion.cc (yy::variant): Define only if variants are used.
This commit is contained in:
@@ -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>
|
2008-11-03 Akim Demaille <demaille@gostai.com>
|
||||||
|
|
||||||
Bench the three-stack lalr1.cc.
|
Bench the three-stack lalr1.cc.
|
||||||
|
|||||||
@@ -155,7 +155,8 @@ dnl FIXME: This is wrong, we want computed header guards.
|
|||||||
]b4_namespace_open[
|
]b4_namespace_open[
|
||||||
class position;
|
class position;
|
||||||
class location;
|
class location;
|
||||||
|
]b4_variant_if(
|
||||||
|
[[
|
||||||
/// A char[S] buffer to store and retrieve objects.
|
/// A char[S] buffer to store and retrieve objects.
|
||||||
///
|
///
|
||||||
/// Sort of a variant, but does not keep track of the nature
|
/// 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.
|
/// A buffer large enough to store any of the semantic values.
|
||||||
char buffer[S];
|
char buffer[S];
|
||||||
};
|
};
|
||||||
|
]])[
|
||||||
]b4_namespace_close[
|
]b4_namespace_close[
|
||||||
|
|
||||||
#include "location.hh"
|
#include "location.hh"
|
||||||
|
|||||||
Reference in New Issue
Block a user