Mail Archives: djgpp-workers/2004/01/09/06:57:13
Eli Zaretskii wrote:
> > From: CBFalconer <cbfalconer AT yahoo DOT com>
> >
> > On reconsideration I think you and Eli are right. However I would
> > separate out the strict part. The thing being guarded against is
> > the use of _Bool below C99, because it doesn't exist.
>
> Sorry, I don't think I understand what you are asking for. Could you
> elaborate, or, better yet, show us the modified stdbool.h that you
> would like to see?
>
> If you are afraid of _Bool being injected into the namespace, then
> this is not a problem, since ANSI C says symbols which begin with an
> underscore and an upper-case letter are reserved for the
> implementation, and so cannot possibly conflict with user's symbols.
Injecting _Bool is no problem, using it (under C90) is. So the
only problem that can arise is not having the underlying C99
abilities. Therefore the proposed stdbool.h is fine, with the
solitary exception of the "|| STRICT_ANSI" term.
--
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
- Raw text -