[Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068)
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Gregory Berkolaiko wrote:
No I want runtime info. You see warmap is generated once and then used
all over and then once again generated and many times used... I want to
know which access corresponds to which generation.
Is it feasible to make warmap a local variable rather than global? It
would be necessary to create it where appropriate, pass it around, and
get rid of it when done. It should then be obvious which warmap each
access refers to, and we'd be sure not to overwrite somebody else's
warmap in (for instance) air_can_move_between(). The problem is there
may be some uses that you then just can't tie to invocations, but these
probably shouldn't be there anyway :-).
A first step might be to have the warmap used be passed into
[really]_generate_warmap. Then places like air_can_move_between can
safely use their local copy while other places continue to use the
global variant.
jason
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), (continued)
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Raimar Falke, 2001/12/03
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Gregory Berkolaiko, 2001/12/03
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Raimar Falke, 2001/12/03
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Gregory Berkolaiko, 2001/12/04
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Raimar Falke, 2001/12/04
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Gregory Berkolaiko, 2001/12/04
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Raimar Falke, 2001/12/04
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Gregory Berkolaiko, 2001/12/04
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Petr Baudis, 2001/12/04
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Raimar Falke, 2001/12/05
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068),
vze2zq63 <=
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Petr Baudis, 2001/12/04
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Ross W. Wetmore, 2001/12/05
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Raahul Kumar, 2001/12/04
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Gregory Berkolaiko, 2001/12/04
- [Freeciv-Dev] Re: Cleaning up gotohand.c (PR#1068), Ross W. Wetmore, 2001/12/05
|
|