[PATCH 1/4] lib: Kill last usage of C++ type bool
authorLouis Rilling <l.rilling@av7.net>
Wed, 14 Sep 2011 22:23:18 +0000 (00:23 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:27 +0000 (09:39 -0800)
b7/b394923750abac1a09b59883a2032fa4643de0 [new file with mode: 0644]

diff --git a/b7/b394923750abac1a09b59883a2032fa4643de0 b/b7/b394923750abac1a09b59883a2032fa4643de0
new file mode 100644 (file)
index 0000000..5bad85e
--- /dev/null
@@ -0,0 +1,95 @@
+Return-Path: <lrilling@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8E2D7429E2E\r
+       for <notmuch@notmuchmail.org>; Wed, 14 Sep 2011 15:23:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.699\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.699 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id RMvz6qx61sLc for <notmuch@notmuchmail.org>;\r
+       Wed, 14 Sep 2011 15:23:45 -0700 (PDT)\r
+Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com\r
+ [74.125.82.45])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 6B30E429E28   for <notmuch@notmuchmail.org>; Wed, 14 Sep 2011 15:23:45 -0700\r
+ (PDT)\r
+Received: by mail-ww0-f45.google.com with SMTP id 36so2235195wwi.2\r
+       for <notmuch@notmuchmail.org>; Wed, 14 Sep 2011 15:23:45 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=sender:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
+       :references; bh=nPZ4dPmHuBtrQCWUhMOY6YD4gi+2c566Wl6VS7TyvCM=;\r
+       b=ItH4Lyv7DqaeWdZA2VrIzVRy1NpQzmbguGcuXwpIr0z0AlAXuARmwyPna5LAxPw4Pl\r
+       mWOnRr1WPC2khrWyuuroEUUtppSRPgYQc7bHc0f3sRvNLGmsClsrEmfO46v+91X3MHJF\r
+       t3zUPwJAF4yCxdBO3AzSFypZMFjWEDdyiR3Cg=\r
+Received: by 10.227.53.212 with SMTP id n20mr363422wbg.58.1316039025005;\r
+       Wed, 14 Sep 2011 15:23:45 -0700 (PDT)\r
+Received: from osdor.le-roi-du-couscous.fr ([78.222.14.116])\r
+       by mx.google.com with ESMTPS id h20sm50709wbo.22.2011.09.14.15.23.44\r
+       (version=SSLv3 cipher=OTHER); Wed, 14 Sep 2011 15:23:44 -0700 (PDT)\r
+Sender: Louis Rilling <lrilling@gmail.com>\r
+From: Louis Rilling <l.rilling@av7.net>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/4] lib: Kill last usage of C++ type bool\r
+Date: Thu, 15 Sep 2011 00:23:18 +0200\r
+Message-Id: <1316039001-32602-2-git-send-email-l.rilling@av7.net>\r
+X-Mailer: git-send-email 1.7.2.5\r
+In-Reply-To: <1316039001-32602-1-git-send-email-l.rilling@av7.net>\r
+References: <1316039001-32602-1-git-send-email-l.rilling@av7.net>\r
+Cc: Michal Sojka <sojka@os.inf.tu-dresden.de>,\r
+       Austin Clements <amdragon@mit.edu>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 14 Sep 2011 22:23:48 -0000\r
+\r
+Signed-off-by: Louis Rilling <l.rilling@av7.net>\r
+---\r
+ lib/message.cc |   12 ++++++------\r
+ 1 files changed, 6 insertions(+), 6 deletions(-)\r
+\r
+diff --git a/lib/message.cc b/lib/message.cc\r
+index d993cde..cf651e5 100644\r
+--- a/lib/message.cc\r
++++ b/lib/message.cc\r
+@@ -49,16 +49,16 @@ struct visible _notmuch_message {\r
+ struct maildir_flag_tag {\r
+     char flag;\r
+     const char *tag;\r
+-    bool inverse;\r
++    notmuch_bool_t inverse;\r
+ };\r
\r
+ /* ASCII ordered table of Maildir flags and associated tags */\r
+ static struct maildir_flag_tag flag2tag[] = {\r
+-    { 'D', "draft",   false},\r
+-    { 'F', "flagged", false},\r
+-    { 'P', "passed",  false},\r
+-    { 'R', "replied", false},\r
+-    { 'S', "unread",  true }\r
++    { 'D', "draft",   FALSE},\r
++    { 'F', "flagged", FALSE},\r
++    { 'P', "passed",  FALSE},\r
++    { 'R', "replied", FALSE},\r
++    { 'S', "unread",  TRUE }\r
+ };\r
\r
+ /* We end up having to call the destructor explicitly because we had\r
+-- \r
+1.7.2.5\r
+\r