Re: RFC: booleans and the kernel

H. Peter Anvin
2002-01-25T16:46:33Z

Werner Almesberger wrote:

>
> Not sure if this is a flaw of gcc or of the standard. If gcc's
> stdbool.h is a standard-compliant implementation of "bool", then
> K&Rv2 seems to endorse this behaviour: from A4.2, "Enumerations
> behave like integers".
>

This would be a flaw in gcc.

K&Rv2 is C89, so it doesn't apply at all.

-hpa