Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2004:
[Freeciv-Dev] Re: (PR#9637) Ocean numbers
Home

[Freeciv-Dev] Re: (PR#9637) Ocean numbers

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Gregory.Berkolaiko@xxxxxxxxxxxxx, jdorje@xxxxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9637) Ocean numbers
From: "Marcelo Burda" <mburda@xxxxxxxxx>
Date: Fri, 13 Aug 2004 00:05:53 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=9637 >

Le ven 13/08/2004 à 02:59, Jason Short a écrit :
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=9637 >
> 
> Jason Short wrote:
> > <URL: http://rt.freeciv.org/Ticket/Display.html?id=9637 >
> > 
> > Perhaps we should have an XOR macro?  Either
> > 
> >   #define XOR(p, q) (p || q) && !(p && q)
> > 
> > or maybe
> > 
> >   #define XOR(p, q) (assert(!!p == p && !!q == q), p ^ q)
> 
> or even
> 
>    #define XOR(p, q) ((!p) ^ (!q))
> 
> jason
> 
> 
and this one too ;-)
   #define XOR(p, q) ((!p) != (!q))
Marcelo




[Prev in Thread] Current Thread [Next in Thread]