Messages in this thread | | | Date | Tue, 1 Aug 2006 23:12:19 +0200 | From | ricknu-0@student ... | Subject | Re: [PATCH 1/2] include/linux: Defining bool, false and true |
| |
Citerar "H. Peter Anvin" <hpa@zytor.com>:
> ricknu-0@student.ltu.se wrote: > > This patch defines: > > * a generic boolean-type, named "bool" > > * aliases to 0 and 1, named "false" and "true" > > > > Signed-off-by: Richard Knutsson <ricknu-0@student.ltu.se> > > Shouldn't this simply use _Bool?
Well, it is (now) just a typedef of it. :)
But I find it better, both because it is more similar to the common types: short, lowlettered words. But also because most editors with highlightning recognize "bool", but not "_Bool", as a type (as I found it).
> -hpa
/Richard Knutsson
- 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/
| |