Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 1d / 82266df7d68bc774533a5db35d0d3ea3f2680d
1 Return-Path: <teythoon@jade-hamburg.de>\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 olra.theworths.org (Postfix) with ESMTP id 5CED5431FC2\r
6         for <notmuch@notmuchmail.org>; Wed,  9 May 2012 03:23:41 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id e9tbGN7l2S7I for <notmuch@notmuchmail.org>;\r
16         Wed,  9 May 2012 03:23:40 -0700 (PDT)\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])\r
18         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 13793431FCB\r
21         for <notmuch@notmuchmail.org>; Wed,  9 May 2012 03:23:36 -0700 (PDT)\r
22 Received: from mail.jade-hamburg.de (mail.jade-hamburg.de [85.183.11.228])\r
23         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
24         (No client certificate requested)\r
25         by mail.cryptobitch.de (Postfix) with ESMTPSA id 709B65885F1\r
26         for <notmuch@notmuchmail.org>; Wed,  9 May 2012 12:23:34 +0200 (CEST)\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)\r
28         id 8DE08DF2A1; Wed,  9 May 2012 12:23:17 +0200 (CEST)\r
29 Received: from thinkbox.jade-hamburg.de (mail.jade-hamburg.de [85.183.11.228])\r
30         (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
31         (No client certificate requested) (Authenticated sender: teythoon)\r
32         by mail.jade-hamburg.de (Postfix) with ESMTPSA id B2CE9DF2A3;\r
33         Wed,  9 May 2012 12:23:10 +0200 (CEST)\r
34 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)\r
35         (envelope-from <teythoon@thinkbox.jade-hamburg.de>)\r
36         id 1SS43I-0001rs-70; Wed, 09 May 2012 12:23:24 +0200\r
37 From: Justus Winter <4winter@informatik.uni-hamburg.de>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 2/3] go: fix the notmuch status constants\r
40 Date: Wed,  9 May 2012 12:23:07 +0200\r
41 Message-Id:\r
42  <1336558988-6813-3-git-send-email-4winter@informatik.uni-hamburg.de>\r
43 X-Mailer: git-send-email 1.7.10\r
44 In-Reply-To:\r
45  <1336558988-6813-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
46 References:\r
47  <1336558988-6813-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Wed, 09 May 2012 10:23:41 -0000\r
61 \r
62 Formerly all the constants were set to zero since in golang constants\r
63 are set to the previous value if no new value is specified. Use the\r
64 iota operator that is incremented after each use to fix this issue.\r
65 \r
66 Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>\r
67 ---\r
68  bindings/go/pkg/notmuch.go |    2 +-\r
69  1 file changed, 1 insertion(+), 1 deletion(-)\r
70 \r
71 diff --git a/bindings/go/pkg/notmuch.go b/bindings/go/pkg/notmuch.go\r
72 index f9f86b5..e065b54 100644\r
73 --- a/bindings/go/pkg/notmuch.go\r
74 +++ b/bindings/go/pkg/notmuch.go\r
75 @@ -14,7 +14,7 @@ import "unsafe"\r
76  // Status codes used for the return values of most functions\r
77  type Status C.notmuch_status_t\r
78  const (\r
79 -       STATUS_SUCCESS Status = 0\r
80 +       STATUS_SUCCESS Status = iota\r
81         STATUS_OUT_OF_MEMORY\r
82      STATUS_READ_ONLY_DATABASE\r
83      STATUS_XAPIAN_EXCEPTION\r
84 -- \r
85 1.7.10\r
86 \r