[PATCH] Generic boolean

This patch defines:
* a generic boolean-type, named 'bool'
* aliases to 0 and 1, named 'false' and 'true'

Removing colliding definitions of 'bool', 'false' and 'true'.

Signed-off-by: Richard Knutsson <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Richard Knutsson 2006-09-30 23:27:11 -07:00 • committed by Linus Torvalds
commit 6e21828743
6 changed files with 10 additions and 10 deletions

View file

@ -71,7 +71,7 @@
Define a Boolean data type.
*/
typedef enum { false, true } __attribute__ ((packed)) boolean;
typedef bool boolean;
/*