lclint-interest message 4

To: peterc@a3.ph.man.ac.uk (Peter Chang)
Cc: evans@cs.virginia.edu (David Evans), horning@src.dec.com
Subject: Re: improvement on predicates?
In-Reply-To: Message of Mon, 24 Oct 1994 18:45:54 +0100
    from peterc@a3.ph.man.ac.uk (Peter Chang)
Date: Mon, 24 Oct 94 12:29:32 -0700
From: horning@src.dec.com
X-Mts: smtp

Peter,

Sorry, I should have been a little more specific.  Bool isn't a standard
type of C, it's a standard type of LCL and LCLint.  Bool.h is

#if !defined(BOOL_H)
#define BOOL_H
#define FALSE 0
#DEFINE TRUE (! FALSE)
typedef int bool;
#define bool_initMod()
#endif

Pretty trivial, but, by using a different name, it allows LCL to distinguish
between things that are intended to be numbers and things that are intended
to be logical values.

Jim H.

Previous Message Next Message Archive Summary LCLint Home Page David Evans
University of Virginia, Computer Science
evans@cs.virginia.edu