Declare all configuration variables in optlist.h. Include that
instead of declaring them all over the place. This uncovered type errors: (s_p_etu, adj_update): Defined long, sometimes declared int. Kills big endian machines where sizeof(long) != sizeof(int). Change to int. (set_option, delete_option, optstrset, intset, floatset, doubleset, longset, optionset, optiondel, worldxset): Change linkage to static.
This commit is contained in:
parent
80aae5b8e6
commit
8cd0160176
62 changed files with 143 additions and 258 deletions
|
@ -104,8 +104,6 @@ limit_level(double level, int type, int flag)
|
|||
/*
|
||||
* Begin ugly hack.
|
||||
*/
|
||||
extern float easy_tech, tech_log_base;
|
||||
|
||||
level_easy[0] = easy_tech;
|
||||
level_log[0] = tech_log_base;
|
||||
/*
|
||||
|
@ -132,7 +130,6 @@ prod_nat(int etu)
|
|||
{
|
||||
extern long money[MAXNOC];
|
||||
extern long pops[MAXNOC];
|
||||
extern double hap_cons, edu_cons;
|
||||
extern long sea_money[MAXNOC];
|
||||
extern long lnd_money[MAXNOC];
|
||||
extern long air_money[MAXNOC];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue