Re: [PATCH 1/2] include/linux: Defining bool, false and true

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux