Re: Last minute fixes to the go bindings

Subject: Re: Last minute fixes to the go bindings

Date: Wed, 9 May 2012 14:07:00 -0400

To: Justus Winter

Cc: notmuch@notmuchmail.org

From: Austin Clements


LGTM.

Quoth Justus Winter on May 09 at 12:23 pm:
> Hi everyone :)
> 
> this is a small patch series that I'd like to see included in 0.13.
> 
> The first patch updates notmuch-addrlookup with respect to Austins
> recent change of the notmuch_database_open function. This fixes the
> compilation of the utility.
> 
> The second patch fixes the values of all the STATUS_* constants. Turns
> out all of them were set to zero by accident. This isn't a c style
> enum, golang has the iota operator to do this kind of stuff. This
> fixes the error handling for all the users of the go bindings.

'Doh!  Is it possible to get the status values out of cgo, rather than
depending on the list in libnotmuch and the list in Go being in the
same order?

> The third patch just brings the list of status constants up to date.
> 
> Cheers,
> Justus

Thread: