Re: [RFC][PATCH] A generic boolean (version 4)

From: Jeff Garzik
Date: Sun Jul 23 2006 - 16:23:25 EST

Jan Engelhardt wrote:
+#undef false
+#undef true
+enum {
+ false = 0,
+ true = 1
+#define false false
+#define true true

Can someone please tell me what advantage 'define true true' is going to
bring, besides than being able to '#ifdef true'?


(a) makes type information available to the C compiler, where a plain #define does not.
(b) handles all '#ifndef true' statements properly


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at