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
|
@ -68,8 +68,6 @@ static void do_prod(int, int, int, int *, long int (*)[2], int *, int *,
|
|||
void
|
||||
update_main(void *argv)
|
||||
{
|
||||
extern int etu_per_update;
|
||||
extern double money_res;
|
||||
int etu = etu_per_update;
|
||||
int n;
|
||||
int x;
|
||||
|
@ -220,7 +218,6 @@ do_prod(int sector_type, int etu, int n, int *bp, long int (*p_sect)[2],
|
|||
int *ship_build, int *ship_maint, int *plane_build,
|
||||
int *plane_maint, int *land_build, int *land_maint)
|
||||
{
|
||||
extern double money_mil;
|
||||
struct natstr *np;
|
||||
|
||||
np = getnatp(n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue