mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Define a fixed elementary logic type
@ 2011-04-01 15:44 Georgette Boole
  0 siblings, 0 replies; only message in thread
From: Georgette Boole @ 2011-04-01 15:44 UTC (permalink / raw)
  To: linux-kernel

Unfortunately, my father's elementary logic type is incomplete. This patch
introduces the correct type with a plan to transition the kernel over to
it and to deprecate the "bool" type in the v3.0 timeframe.

Signed-off-by: Georgette Boole <georgette.boole@googlemail.com>
---
diff --git a/include/linux/types.h b/include/linux/types.h
index 176da8c..80d9b0f 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -36,6 +36,14 @@ typedef __kernel_mqd_t		mqd_t;

 typedef _Bool			bool;

+enum _Wool {
+	w_false	= 0,
+	w_true	= 1,
+	w_maybe	= 1 / 2,
+};
+
+typedef enum _Wool		wool;
+
 typedef __kernel_uid32_t	uid_t;
 typedef __kernel_gid32_t	gid_t;
 typedef __kernel_uid16_t        uid16_t;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-01 15:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-01 15:44 [PATCH] Define a fixed elementary logic type Georgette Boole

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

all inboxes | Powered by JetHome®