[Freeciv-Dev] Re: [patch] const-int-ize SETTINGS_NUM
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Wed, 15 Aug 2001, justin@xxxxxxxxxxx wrote:
>
> Just a minor nitpicky patch ...
>
> Rather than macro-ize SETTINGS_NUM in stdinhand.c and have it
> recalculate the size every time you reference it, why not make it an
> int or const int and save yourself some work? Patch against 1.12.0
> attached (altho it's probably just as easy to fix it by hand :)).
There's nothing to calculate; everything in the expression is a
constant. Also you should have made the variable static. I see no
point in doing this, though.
--
Big Gaute http://www.srcf.ucam.org/~gs234/
FUN is never having to say you're SUSHI!!
|
|