This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libbanshee also using a broken AC_HEADER_STDBOOL


schwab@suse.de (Andreas Schwab)  wrote on 01.06.04 in <jeoeo33w0p.fsf@sykes.suse.de>:

> Zack Weinberg <zack@codesourcery.com> writes:
>
> > Better, I think, to make libiberty.h unconditionally
> >
> > #define bool unsigned char
> > #define true 1
> > #define false 0
>
> Except that the use of bool, true, false should probably be avoided then.
> The standard says that the ability to redefine them is an obsolescent
> feature.

Just so this isn't forgotten when whatever replacement is decided on,  
Objective C uses BOOL/YES/NO for this, so you may want to avoid those as  
well - though it's certainly less important.

MfG Kai


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]