Re: [PATCH 1/2] include/linux: Defining bool, false and true
From: H. Peter Anvin
Date: Tue Aug 01 2006 - 17:52:44 EST
Jeff Garzik wrote:
H. Peter Anvin wrote:
Jeff Garzik wrote:
H. Peter Anvin wrote:
There is no enum involved.
There should be. It makes more information available to the C
compiler, and it makes useful symbols available to the debugger.
_Bool is a native C type; it has all the information the C compiler
needs.
"#define true 1" however does not.
I guess that's fair, although when you put it into a type _Bool they're
going to devolve to pure constants.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/