[buddy] Improve handling of bddtrue and bddfalse.

* src/bdd.h, src/cppext.cxx: Handle bddtrue and bddfalse using
special types.
This commit is contained in:
Alexandre Duret-Lutz 2014-06-20 18:36:08 +02:00
parent 4df4b4efd2
commit 7d70229f5b
2 changed files with 77 additions and 11 deletions

View file

@ -57,8 +57,8 @@ bdd_ioformat bddall(IOFORMAT_ALL);
bdd_ioformat fddset(IOFORMAT_FDDSET);
/* Constant true and false extension */
const bdd bddtruepp = bdd_true();
const bdd bddfalsepp = bdd_false();
const bddxtrue bddtruepp;
const bddxfalse bddfalsepp;
/* Internal prototypes */
static void bdd_printset_rec(ostream&, int, int*);