Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2000:
[Freeciv-Dev] Re: typedef for player vectors?
Home

[Freeciv-Dev] Re: typedef for player vectors?

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: typedef for player vectors?
From: Jeff Mallatt <jjm@xxxxxxxxxxxx>
Date: Tue, 07 Mar 2000 11:48:19 -0500

At 2000/03/07 11:34 , Daniel Zinsli wrote:
>With patches on diplomacy starting to come in, I see a need for a
>typedef for player vectors.
>
>Currently we have bitvectors for known tiles, diplomacy, etc, defined as
>short.
>
>Perhaps we should add a 'typedef short player_vector'
>
>This way, it's easier to increase max players later.
>
>Where should such a typedef go?

Just making a typedef won't help much.  You'd need to go through all the
code, changing all the bit-twiddling to use some accessor/mutator
functions/macros.

jjm




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