[Freeciv-Dev] modify players_iterate macro? (PR#494)
[Top] [All Lists]
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
 
Its about time that we had the players_iterate macro (added recently).
Good, but...  
I quite like the feature of the *_list_iterate macros that they 
declare the loop variable for you, localised to the loop (with the 
name specified by the caller).  It seems to me this is almost always 
what one wants.  Any reason not to do this for players_iterate?  
(patch attached).
(I guess this reasoning could apply to some of the other non-list 
iterate macros too, but personally I can see myself using 
players_iterate especially, so I have a selfish interest in that ;-)
-- David
 
 
players_iterate_arg.diff.gz 
Description: GNU Zip compressed data 
 
- [Freeciv-Dev] modify players_iterate macro? (PR#494),
David Pfitzner <=
 
 
 
 | 
 |