This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Strange CPP failures
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Neil Booth <neil at daikokuya dot co dot uk>
- Cc: Jason R Thorpe <thorpej at wasabisystems dot com>, <gcc-bugs at gcc dot gnu dot org>, Zack Weinberg <zack at codesourcery dot com>
- Date: Tue, 16 Jul 2002 22:27:07 +0100 (BST)
- Subject: Re: Strange CPP failures
On Tue, 16 Jul 2002, Neil Booth wrote:
> Joseph - what to do about this? I don't think adding "!= 0"
> is a good fix - the typedef to char is fundamentally broken.
> I don't see how a typedef to anything can really work in these
> cases.
The work to use bool in GCC is Zack's, but I'd suppose the portability
requirement on assignments to bool needs documenting in
README.Portability. I'd considered it obvious (no-one's suggested
allowing use of C99 features in GCC yet) that uses of bool in GCC need to
allow for it being either a "traditional" bool type (as in curses etc.) or
a C99 _Bool.
--
Joseph S. Myers
jsm28@cam.ac.uk