[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: Branko ─îibej <brane_at_xbc.nu>
Date: Sat, 05 Jan 2008 13:41:54 +0100

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.

-- Brane

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-01-05 13:41:55 CET

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