]> git.saurik.com Git - bison.git/commit
variant: more assertions
authorAkim Demaille <akim@lrde.epita.fr>
Wed, 19 Dec 2012 09:09:07 +0000 (10:09 +0100)
committerAkim Demaille <akim@lrde.epita.fr>
Wed, 19 Dec 2012 10:30:22 +0000 (11:30 +0100)
commit35f70d169f6bc2a00b0ffca8bfd388516c4af70f
treeac8daa915c91172bc49cef9bc2113422a25027d8
parent7c0d37283d6d2855cf4612e5bc9723cf5065970f
variant: more assertions

Equip variants with more checking code.  Provide a means to request
includes.

* data/variant.hh (b4_variant_includes): New.
* data/lalr1.cc: Use it.
* data/variant.hh (variant::built): Define at the end, as a private member.
(variant::tname): New.
Somewhat makes "built" useless, but let's keep both for a start, in
case using "typeinfo" is considered unacceptable in some environments.
Fix some formatting issues.
data/lalr1.cc
data/variant.hh