bool & UT_Bool


Subject: bool & UT_Bool
From: Mike Nordell (tamlin@algonet.se)
Date: Wed Dec 20 2000 - 00:47:21 CST


Since almost (if not all) current compiler handles the keyword "bool" and
also undertands it, maybe it's time to put a conditional compilation in for
that one? Like "HAVE_BOOL", and then do the following:

#ifdef HAVE_BOOL
typedef bool UT_Bool;
#define UT_FALSE false
#define UT_TRUE true
#else
typedef int /*or whatever type we now use*/ UT_Bool;
#define UT_FALSE 0
#define UT_TRUE 1
#endif

What do *you* think?

/Mike - please don't cc



This archive was generated by hypermail 2b25 : Wed Dec 20 2000 - 00:45:33 CST