Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AHCC and bool

4 views
Skip to first unread message

Henk Robbers

unread,
Aug 29, 2010, 7:20:03 PM8/29/10
to

LS

A note to all users of AHCC.

AHCC implements the C99 _Bool type.
the identifiers false and true represent builtin truth values.

false coerces to zero when assigned to int.
true coerces to one when assigned to int.

AHCC implicitely defines the macro __bool_true_false_are_defined 1


advice:

#if __bool_true_false_are_defined
typedef _Bool bool, boolean;
#else
....
/* all private declarations of bool, boolean, true and false */
...
#endif


FYI

--
Groeten; Regards.
Henk Robbers. http://members.chello.nl/h.robbers
Interactive disassembler: TT-Digger; http://digger.atari.org
A Home Cooked C compiler: AHCC; http://ahcc.atari.org

0 new messages