[Freeciv-Dev] (PR#4465) a government_iterate macro
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
We have iterators for everything else; why not governments types too?
It makes things slightly more readible and less error-prone.
As a side effect I moved the government index initialization in with the
allocation, since the index values may be used outside of
get_government_from_name. In theory we should probably always pass
around government pointers instead of IDs, though.
jason
government_iterate.diff
Description: government_iterate.diff
- [Freeciv-Dev] (PR#4465) a government_iterate macro,
Jason Short <=
|
|