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
|
@ -121,7 +121,6 @@ tax(struct sctstr *sp, struct natstr *np, int etu, long *pop, int *civ_tax,
|
|||
int *uw_tax, int *mil_pay)
|
||||
{
|
||||
int vec[I_MAX + 1];
|
||||
extern double money_civ, money_mil, money_uw;
|
||||
|
||||
*civ_tax = 0;
|
||||
*uw_tax = 0;
|
||||
|
@ -152,7 +151,6 @@ tax(struct sctstr *sp, struct natstr *np, int etu, long *pop, int *civ_tax,
|
|||
int
|
||||
upd_slmilcosts(natid n, int etu)
|
||||
{
|
||||
extern double money_mil;
|
||||
struct shpstr *sp;
|
||||
struct lndstr *lp;
|
||||
int mil = 0;
|
||||
|
@ -179,7 +177,6 @@ upd_slmilcosts(natid n, int etu)
|
|||
int
|
||||
bank_income(struct sctstr *sp, int etu)
|
||||
{
|
||||
extern double bankint;
|
||||
int vec[I_MAX + 1];
|
||||
|
||||
if (getvec(VT_ITEM, vec, (s_char *)sp, EF_SECTOR) <= 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue