Re: Hi all
[notmuch-archives.git] / 13 / ea1e45f78790a6b626a680e3d7a282226ec202
1 Return-Path: <bremner@tethera.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 2EF1C6DE0130\r
6  for <notmuch@notmuchmail.org>; Tue,  7 Jun 2016 03:38:27 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.011\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.011 tagged_above=-999 required=5\r
12  tests=[AWL=-0.000, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01]\r
13  autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id oBiu3v0Jkl2Y for <notmuch@notmuchmail.org>;\r
17  Tue,  7 Jun 2016 03:38:19 -0700 (PDT)\r
18 Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197])\r
19  by arlo.cworth.org (Postfix) with ESMTPS id 78DCC6DE00DA\r
20  for <notmuch@notmuchmail.org>; Tue,  7 Jun 2016 03:38:19 -0700 (PDT)\r
21 Received: from remotemail by fethera.tethera.net with local (Exim 4.84)\r
22  (envelope-from <bremner@tethera.net>)\r
23  id 1bAEOc-0006LI-Gt; Tue, 07 Jun 2016 06:38:06 -0400\r
24 Received: (nullmailer pid 17473 invoked by uid 1000);\r
25  Tue, 07 Jun 2016 10:38:06 -0000\r
26 From: David Bremner <david@tethera.net>\r
27 To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
28 Subject: [PATCH] lib: fix definition of LIBNOTMUCH_CHECK_VERSION\r
29 Date: Tue,  7 Jun 2016 07:37:57 -0300\r
30 Message-Id: <1465295877-17431-1-git-send-email-david@tethera.net>\r
31 X-Mailer: git-send-email 2.8.1\r
32 In-Reply-To: <87lh2inyub.fsf@tesseract.cs.unb.ca>\r
33 References: <87lh2inyub.fsf@tesseract.cs.unb.ca>\r
34 X-BeenThere: notmuch@notmuchmail.org\r
35 X-Mailman-Version: 2.1.20\r
36 Precedence: list\r
37 List-Id: "Use and development of the notmuch mail system."\r
38  <notmuch.notmuchmail.org>\r
39 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
40  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
41 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
42 List-Post: <mailto:notmuch@notmuchmail.org>\r
43 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
44 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
45  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
46 X-List-Received-Date: Tue, 07 Jun 2016 10:38:27 -0000\r
47 \r
48 Fix bug reported in id:20160606124522.g2y2eazhhrwjsa4h@flatcap.org\r
49 \r
50 Although the C99 standard 6.10 is a little non-obvious on this point,\r
51 the docs for e.g. gcc are unambiguous. And indeed in practice with the\r
52 extra space, this code fails\r
53 \r
54 #include <stdio.h>\r
55 #define foo (x) (x+1)\r
56 \r
57 int main(int argc, char **argv){\r
58   printf("%d\n",foo(1));\r
59 }\r
60 ---\r
61  lib/notmuch.h | 2 +-\r
62  1 file changed, 1 insertion(+), 1 deletion(-)\r
63 \r
64 diff --git a/lib/notmuch.h b/lib/notmuch.h\r
65 index 29713ae..d4a97cb 100644\r
66 --- a/lib/notmuch.h\r
67 +++ b/lib/notmuch.h\r
68 @@ -93,7 +93,7 @@ NOTMUCH_BEGIN_DECLS\r
69   * #endif\r
70   * @endcode\r
71   */\r
72 -#define LIBNOTMUCH_CHECK_VERSION (major, minor, micro)                 \\r
73 +#define LIBNOTMUCH_CHECK_VERSION(major, minor, micro)                  \\r
74      (LIBNOTMUCH_MAJOR_VERSION > (major) ||                                     \\r
75       (LIBNOTMUCH_MAJOR_VERSION == (major) && LIBNOTMUCH_MINOR_VERSION > (minor)) || \\r
76       (LIBNOTMUCH_MAJOR_VERSION == (major) && LIBNOTMUCH_MINOR_VERSION == (minor) && \\r
77 -- \r
78 2.8.1\r
79 \r