public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] A generic boolean-type
@ 2006-07-29 12:19 ricknu-0
  2006-07-29 12:32 ` [PATCH 1/2] include/linux: Defining bool, false and true ricknu-0
  2006-07-29 12:36 ` [PATCH 2/2] drivers: Removes colliding boolean definitions ricknu-0
  0 siblings, 2 replies; 13+ messages in thread
From: ricknu-0 @ 2006-07-29 12:19 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andrew Morton, Jeff Garzik, Alexey Dobriyan, Vadim Lobanov,
	Jan Engelhardt, Shorty Porty, Peter Williams, Michael Buesch,
	Pekka Enberg, Stefan Richter, larsbj, Michael Buesch,
	Paul Jackson, Josef Sipek, Arnd Bergmann, Nicholas Miell,
	Alan Cox, Lars Noschinski

Hi

Here is the first "real" patch to make a generic boolean-type.
Andrew, would you please pick this one up?

First patch:
The boolean is named "bool", this because calling it "boolean" seems long (int
and integer) and not "BOOL", because it is a typedef and not a #define.


The patch also defines aliases to 0 and 1, called "false" and "true".
There has been some who do not want the true and false, but since it is just a
value and not bundled with the boolean type, it is up to the programmer which to
use. Also a quick check:

find . -name *.[chS] | xargs grep "define FALSE" | grep -v "FALSE_" | wc -l
55

tells us there seems to be some who like false and true (and a need for a common
definition, as Andrew attemted).


Secound patch:
Just a "cleanup" of files with common definitions of bool/false/true.


These patches has been applied on the current Linus git-tree and compile-tested.

Hopefully, this patch will be picked up by someone and then the real work can
start, converting those files who uses booleans (and/or false/true). This would
most likely occure at kernel-janitors.

Till next time
/Richard Knutsson

PS
If you do not want to be CC'ed, please tell and I will remove your address.
DS


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-08-01 21:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-29 12:19 [PATCH 0/2] A generic boolean-type ricknu-0
2006-07-29 12:32 ` [PATCH 1/2] include/linux: Defining bool, false and true ricknu-0
2006-08-01 19:19   ` H. Peter Anvin
2006-08-01 21:12     ` ricknu-0
2006-08-01 21:20       ` H. Peter Anvin
2006-08-01 21:31         ` Jeff Garzik
2006-08-01 21:42           ` H. Peter Anvin
2006-08-01 21:48             ` Jeff Garzik
2006-08-01 21:52               ` H. Peter Anvin
2006-08-01 21:23     ` Jeff Garzik
2006-08-01 21:41       ` H. Peter Anvin
2006-08-01 21:47         ` Jeff Garzik
2006-07-29 12:36 ` [PATCH 2/2] drivers: Removes colliding boolean definitions ricknu-0

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox