unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: laochailan <laochailan@web.de>
To: notmuch@notmuchmail.org
Cc: laochailan <laochailan@web.de>
Subject: [PATCH 4/5] fixed more wrongly initialized constants
Date: Sun, 31 May 2015 14:02:14 +0200	[thread overview]
Message-ID: <1433073735-7721-5-git-send-email-laochailan@web.de> (raw)
In-Reply-To: <1433073735-7721-1-git-send-email-laochailan@web.de>

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

  parent reply	other threads:[~2015-05-31 12:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-31 12:02 [PATCH 0/5] Additions to Go bindings laochailan
2015-05-31 12:02 ` [PATCH 1/5] Added thread bindings to go bindings laochailan
2015-05-31 12:02 ` [PATCH 2/5] fixed wrong constant values laochailan
2015-05-31 12:02 ` [PATCH 3/5] formatted comments for better godoc output laochailan
2015-05-31 12:02 ` laochailan [this message]
2015-05-31 12:02 ` [PATCH 5/5] updated NEWS laochailan
2016-09-03 23:26 ` [PATCH 0/5] Additions to Go bindings David Bremner
2016-09-04 11:07 ` David Bremner

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

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1433073735-7721-5-git-send-email-laochailan@web.de \
    --to=laochailan@web.de \
    --cc=notmuch@notmuchmail.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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).