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, mburda@xxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#9637) Ocean numbers
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Aug 2004 17:59:13 -0700
Reply-to: rt@xxxxxxxxxxx

<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




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