[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r28752 - in branches/reintegrate/subversion: libsvn_fs_base tests/libsvn_fs

From: Daniel Rall <dlr_at_finemaltcoding.com>
Date: Sun, 6 Jan 2008 21:02:52 -0800

On Sat, 05 Jan 2008, Branko Čibej wrote:

> Daniel Rall wrote:
> > On Fri, 04 Jan 2008, cmpilato_at_tigris.org wrote:
> > ...
> >
> >> + /* Are we changing the node? */
> >> + if ((! has_mergeinfo) != (! *had_mergeinfo))
> >>
> > ...
> >
> > I find this expression really difficult to grok at first glance. Is there
> > a simpler way to do it (without all the negation)?
> >
>
> Not in C, since it doesn't have a real boolean type. This is a pretty
> standard way of writing a logical exclusive-or.

Okay, thanks Brane.

(And gross!)

  • application/pgp-signature attachment: stored
Received on 2008-01-07 06:03:06 CET

This is an archived mail posted to the Subversion Dev mailing list.