Re: [patch 1/1] consolidate TRUE and FALSE

Jan Engelhardt
2006-03-16T19:59:26Z

>> of course. but that it's not used in core code implies this opinion is
>> widely shared.
>
>[...] To me it is a simple consequence of there not
>being a boolean type in the kernel so you cannot use it in the core code.

typedef bool int;

And then happily use if(EXPR) and if(!EXPR) instead of if(EXPR == TRUE) or
if(EXPR == FALSE). :-)

But typedeffing it to int (or unsigned char, if someone likes that
for space optimization) does not "catch overflows" (see another lkml
mail from me) as _Bool would.

Jan Engelhardt
--