[Freeciv-Dev] Re: Fwd: Re: Re: Request (PR#939)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Thu, 6 Sep 2001, Paul Zastoupil wrote:
>
> How about this?
That looks pretty nice. Certainly a lot cleaner than those sizeof's
everywhere.
Only problem I see is that if someone decides to change an array from a static
one to a dynamically allocated one, the ARRAY_SIZE macro will still work, but
will have a completely wrong value. Of course one would hope that someone
doing this would find and fix code that thought it knew the length of the
array.
|
|