Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] Re: [patch] const-int-ize SETTINGS_NUM
Home

[Freeciv-Dev] Re: [patch] const-int-ize SETTINGS_NUM

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: [patch] const-int-ize SETTINGS_NUM
From: Justin Moore <justin@xxxxxxxxxxx>
Date: Wed, 15 Aug 2001 13:59:17 -0400 (EDT)

> There's no point in doing so since the compiler will generate
> identical code, and you can't use const ints as array size and at some
> other places.

   I knew the sizeof() wasn't the problem, but I wasn't sure if the divide
would be optimized out, which is what I was trying to remove.  Plus I
didn't find any places where the const int would be a problem; it was used
entirely as a function parameter or a loop test. *shrug*

-jdm



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