Re: [PATCH 1/3] lib: Kill last usage of C++ type bool

Subject: Re: [PATCH 1/3] lib: Kill last usage of C++ type bool

Date: Sat, 16 Jul 2011 14:32:36 -0400

To: Felipe Contreras

Cc: notmuch@notmuchmail.org

From: Austin Clements


Quoth Felipe Contreras on Jul 16 at  9:06 pm:
> On Tue, Jul 12, 2011 at 4:59 PM, Louis Rilling <l.rilling@av7.net> wrote:
> > Signed-off-by: Louis Rilling <l.rilling@av7.net>
> > ---
> >  lib/message.cc |   12 ++++++------
> >  1 files changed, 6 insertions(+), 6 deletions(-)
> >
> > diff --git a/lib/message.cc b/lib/message.cc
> > index d993cde..cf651e5 100644
> > --- a/lib/message.cc
> > +++ b/lib/message.cc
> > @@ -49,16 +49,16 @@ struct visible _notmuch_message {
> >  struct maildir_flag_tag {
> >     char flag;
> >     const char *tag;
> > -    bool inverse;
> > +    notmuch_bool_t inverse;
> 
> That's not C++, that's C99.

Here it's C++.  But what's actually interesting is that this is the
only place where libnotmuch strays from completely consistent use of
notmuch_bool_t.

Thread: