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 Developers <freeciv-dev@xxxxxxxxxxx>
Subject: [Freeciv-Dev] Re: code question
From: Mike Kaufman <kaufman@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 14 Jan 2005 09:11:08 -0600

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[];

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.

-mike



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