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
|
@ -126,7 +126,6 @@ upd_ship(register struct shpstr *sp, int shipno, register int etus,
|
|||
s_char *resource;
|
||||
int n;
|
||||
int mult;
|
||||
extern double money_ship;
|
||||
int needed;
|
||||
int cost;
|
||||
int eff;
|
||||
|
@ -267,7 +266,6 @@ static int
|
|||
shiprepair(register struct shpstr *ship, int *vec, struct natstr *np,
|
||||
int *bp, int etus)
|
||||
{
|
||||
extern int ship_grow_scale;
|
||||
register int delta;
|
||||
struct sctstr *sp;
|
||||
struct mchrstr *mp;
|
||||
|
@ -435,7 +433,6 @@ int
|
|||
feed_ship(struct shpstr *sp, register int *vec, int etus, int *needed,
|
||||
int doit)
|
||||
{
|
||||
extern double eatrate;
|
||||
double food_eaten, land_eaten;
|
||||
double people_left;
|
||||
int ifood_eaten;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue