[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1154175570.44cb5252d3f09@portal.student.luth.se>
Date: Sat, 29 Jul 2006 14:19:30 +0200
From: ricknu-0@...dent.ltu.se
To: linux-kernel@...r.kernel.org
Cc: Andrew Morton <akpm@...l.org>, Jeff Garzik <jeff@...zik.org>,
Alexey Dobriyan <adobriyan@...il.com>,
Vadim Lobanov <vlobanov@...akeasy.net>,
Jan Engelhardt <jengelh@...ux01.gwdg.de>,
Shorty Porty <getshorty_@...mail.com>,
Peter Williams <pwil3058@...pond.net.au>,
Michael Buesch <mb@...sch.de>,
Pekka Enberg <penberg@...helsinki.fi>,
Stefan Richter <stefanr@...6.in-berlin.de>, larsbj@...lik.net,
Michael Buesch <mb@...sch.de>, Paul Jackson <pj@....com>,
Josef Sipek <jsipek@....cs.sunysb.edu>,
Arnd Bergmann <arnd.bergmann@...ibm.com>,
Nicholas Miell <nmiell@...cast.net>,
Alan Cox <alan@...rguk.ukuu.org.uk>,
Lars Noschinski <cebewee@....de>
Subject: [PATCH 0/2] A generic boolean-type
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists