Re: RFC: booleans and the kernel

Chris Wedgwood
2002-01-24T22:34:43Z

On Thu, Jan 24, 2002 at 12:42:58PM -0500, Jeff Garzik wrote:

A small issue...

Which has spawn a bug ugly thread filled with opinions and other stuff
hardly relevant :)

C99 introduced _Bool as a builtin type. The gcc patch for it went
into cvs around Dec 2000. Any objections to propagating this type
and usage of 'true' and 'false' around the kernel?

It seems everyone is discussing code efficiency and such like.... How
about we just assume that whether we use if(bool) or if(int) the
compiler produces euqally good and bad code --- I see no evidence to
suggest otherwise.

I don't want to argue over correctness here, too many people already
have.

Surely what is left to discuss was Jeff's original email --- do people
mind the use of this, does it make the source mode readable?

Arguably, I think it does. It certainly doesn't make it less
readable.

--cw