From 034cafac8a787599bcfc26a288a97d3907227220 Mon Sep 17 00:00:00 2001 From: laochailan Date: Sun, 31 May 2015 14:02:14 +0200 Subject: [PATCH] [PATCH 4/5] fixed more wrongly initialized constants --- 51/6ff9bdd9d5e7fbef6032f76152513863898276 | 83 +++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 51/6ff9bdd9d5e7fbef6032f76152513863898276 diff --git a/51/6ff9bdd9d5e7fbef6032f76152513863898276 b/51/6ff9bdd9d5e7fbef6032f76152513863898276 new file mode 100644 index 000000000..1835c2a37 --- /dev/null +++ b/51/6ff9bdd9d5e7fbef6032f76152513863898276 @@ -0,0 +1,83 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 938966DE17B5 + for ; Sun, 31 May 2015 05:07:59 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.568 +X-Spam-Level: +X-Spam-Status: No, score=-0.568 tagged_above=-999 required=5 tests=[AWL=0.002, + FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id yY9VEAPGZhBy for ; + Sun, 31 May 2015 05:07:58 -0700 (PDT) +Received: from mout.web.de (mout.web.de [212.227.15.3]) + by arlo.cworth.org (Postfix) with ESMTPS id A22F36DE17A3 + for ; Sun, 31 May 2015 05:07:57 -0700 (PDT) +Received: from localhost ([92.204.48.23]) by smtp.web.de (mrweb003) with + ESMTPSA (Nemesis) id 0MHGdf-1YuJ7R04fr-00E9gg; Sun, 31 May 2015 14:02:50 + +0200 +From: laochailan +To: notmuch@notmuchmail.org +Subject: [PATCH 4/5] fixed more wrongly initialized constants +Date: Sun, 31 May 2015 14:02:14 +0200 +Message-Id: <1433073735-7721-5-git-send-email-laochailan@web.de> +X-Mailer: git-send-email 2.4.2 +In-Reply-To: <1433073735-7721-1-git-send-email-laochailan@web.de> +References: <1433073735-7721-1-git-send-email-laochailan@web.de> +X-Provags-ID: V03:K0:TXoT6VO4eRXpWkn0UVyp1WrJHbh1ffublExXp1AZy3e6r5IrMRe + 2el28ULZmji9NFCr37AjzTRmHzbrKTa+QKiLBipQ5U8Iyh/tEk8O1WJ2Gc34bxhpPowiMLf + hyqZELaY7+x2zD2YN26bZNOOzgfxJzwox1jL1y5jNOLXP7GvmIn73IyTYZeC4rlLBDlXegm + XHWtTnEmYDkJLWit+XEVg== +X-UI-Out-Filterresults: notjunk:1; +X-Mailman-Approved-At: Mon, 01 Jun 2015 09:14:44 -0700 +Cc: laochailan +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sun, 31 May 2015 12:07:59 -0000 + +In Go, '= 0' at the beginning means everything is set to zero. +--- + bindings/go/src/notmuch/notmuch.go | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/bindings/go/src/notmuch/notmuch.go b/bindings/go/src/notmuch/notmuch.go +index 741fabf..d664287 100644 +--- a/bindings/go/src/notmuch/notmuch.go ++++ b/bindings/go/src/notmuch/notmuch.go +@@ -378,7 +378,7 @@ func (self *Database) CreateQuery(query string) *Query { + type Sort C.notmuch_sort_t + + const ( +- SORT_OLDEST_FIRST Sort = 0 ++ SORT_OLDEST_FIRST Sort = iota + SORT_NEWEST_FIRST + SORT_MESSAGE_ID + SORT_UNSORTED +@@ -985,7 +985,7 @@ func (self *Message) GetFileName() string { + type Flag C.notmuch_message_flag_t + + const ( +- MESSAGE_FLAG_MATCH Flag = 0 ++ MESSAGE_FLAG_MATCH Flag = iota + ) + + // Get a value of a flag for the email corresponding to 'message'. +-- +2.4.2 + -- 2.26.2