Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2005:
[Freeciv-Dev] Re: code question
Home

[Freeciv-Dev] Re: code question

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: code question
From: Christian Knoke <chrisk@xxxxxxxxx>
Date: Fri, 14 Jan 2005 19:19:43 +0100

On Fri, Jan 14, 2005 at 09:11:08AM -0600, Mike Kaufman wrote:
> On Fri, Jan 14, 2005 at 01:44:33PM +0100, Christian Knoke wrote:
> > 
> > Can a kindly soul tell me where the bool_value pointers in struct settings_s
> > (settings.h) get their mem and init values assigned?
> 
> the memory is stored in:
>   struct settings_s settings[];

Yes.

> the memory is allocated at program startup.
>  
> > (And why t.. h... are these pointers?)
> 
> so that we change e.g. map.separatepoles directly instead of a piece of
> memory in the settings_s array.

AHH. I digged through the GEN_INIT #define and got it now, thanks.

Christian

-- 
Christian Knoke            * * *            http://cknoke.de
* * * * * * * * *  Ceterum censeo Microsoft esse dividendum.



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