[comp.windows.x] Problem with typdef of Bool

lmjm@doc.ic.ac.UK (05/10/87)

In serveral of the utility sources (and once in Xlib) there is a definition of Bool:-
typedef enum _bool {FALSE, TRUE} Bool

Later on there are various places where you get:-
	Bool somevar;

	if(!somevar)...

Yet as far as I can recall ! is not defined to work over elements
enum's  it was only allowed due to over generous implementation of
enum's in PCC.  I was using a version of the compiler written from
scratch and it rejected everyone of these.  Using the more old
fashioned

typedef int Bool;
#define FALSE 0
#define TRUE 1

works just as well and is not a questionable construct.

	Lee.
--
UKUUCP SUPPORT  Lee McLoughlin
	"What you once thought was only a nightmare is now a reality!"

Janet: lmjm@uk.ac.ic.doc, lmcl@uk.ac.ukc
DARPA: lmjm@doc.ic.ac.uk (or lmjm%uk.ac.ic.doc@cs.ucl.ac.uk)
Uucp:  lmjm@icdoc.UUCP, ukc!icdoc!lmjm