Re: RFC: booleans and the kernel

Chris Wedgwood (cw@f00f.org)
Thu, 24 Jan 2002 14:33:25 -0800


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/