From: Georgette Boole <georgette.boole@googlemail.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] Define a fixed elementary logic type
Date: Fri, 1 Apr 2011 17:44:23 +0200 [thread overview]
Message-ID: <BANLkTimKwW7d2x1RDCPnu1LHMBKHy3PYgw@mail.gmail.com> (raw)
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;
reply other threads:[~2011-04-01 15:44 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BANLkTimKwW7d2x1RDCPnu1LHMBKHy3PYgw@mail.gmail.com \
--to=georgette.boole@googlemail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®