[Freeciv-Dev] Re: typedef for player vectors?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
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
|
|