X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Message-ID: <4000FCEF.14978894@yahoo.com> Date: Sun, 11 Jan 2004 02:36:15 -0500 From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: stdbool.h and complex.h References: <3FFCF1F4 DOT B86AC9DA AT yahoo DOT com> <3FFDEB2F DOT F9560613 AT yahoo DOT com> <9003-Fri09Jan2004105245+0200-eliz AT elta DOT co DOT il> <3FFE97BE DOT 4CA94BA3 AT yahoo DOT com> <3FFF2420 DOT 7090305 AT phekda DOT gotadsl DOT co DOT uk> <3FFF586F DOT 611F9247 AT yahoo DOT com> <3405-Sat10Jan2004133647+0200-eliz AT elta DOT co DOT il> <400034C9 DOT B3F8281D AT yahoo DOT com> <7105-Sat10Jan2004222934+0200-eliz AT elta DOT co DOT il> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com Eli Zaretskii wrote: > From: CBFalconer > > > > the file uses _Bool to define bool, which does not exist. > > No, it says > > #define bool _Bool > > which, I think is perfectly okay. What doesn't exist here? _Bool? > It's built into GCC, AFAIK. Not for K&R/C89/C90/C95. _Bool does not exist for these. The declaration "_Bool boolthing;" should result in an undefined error. If the above #define has occurred, that error will result from the innocuous "bool boolthing;", and attempts to redefine bool with "#define bool int" will also result in confusing error messages. The more I think about it the more I think Esa Peuhas error message from #including under non-standard C or C standard < 1990 is a good idea. We may be approaching this from different viewpoints. Mine is that code should adhere to ISO standards, and that special efforts are needed to deviate from that. I consider GNU standards to be such a deviation, and so run gcc with -ansi -pedantic by default. -- Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net) Available for consulting/temporary embedded and systems. USE worldnet address!