Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2001:
[Freeciv-Dev] Re: [Patch] Convert all the code to use map_inx
Home

[Freeciv-Dev] Re: [Patch] Convert all the code to use map_inx

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: jdorje@xxxxxxxxxxxx
Cc: freeciv development list <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [Patch] Convert all the code to use map_inx
From: Gaute B Strokkenes <gs234@xxxxxxxxx>
Date: Tue, 09 Oct 2001 22:35:36 +0100

On Tue, 09 Oct 2001, vze2zq63@xxxxxxxxxxx wrote:
> Raimar Falke wrote:
>> 
>> Subject says all hopefully.
> 
> Looks clean to me.
> 
> The only issue is with the capitalization of the macros - in theory
> both hmap and rmap should be all-caps.

No.  The only case where you really should use an upper case name for
a function-like is when the macro does not evaluate each of its
arguments exactly once.  In other cases, it's a toss-up.  Since these
macros return rvalues I would prefer upper case, but clearly
reasonable people may disagree on this.

> But you don't change most of the hmap uses at all, and rmap is right
> next to it, so I'm not sure what would be correct here.

-- 
Big Gaute                               http://www.srcf.ucam.org/~gs234/
ONE:  I will donate my entire ``BABY HUEY'' comic book collection
 to the downtown PLASMA CENTER..
 TWO:  I won't START a BAND called ``KHADAFY & THE HIT SQUAD''..
 THREE:  I won't ever TUMBLE DRY my FOX TERRIER again!!


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