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:
Markus Armbruster 2004-02-17 22:58:04 +00:00
parent 80aae5b8e6
commit 8cd0160176
62 changed files with 143 additions and 258 deletions

View file

@ -50,6 +50,7 @@
#include "mission.h"
#include "genitem.h"
#include "commands.h"
#include "optlist.h"
/*
* mission <type> <planes/ships/units> <mission type> <op sector> [<radius>]
@ -67,10 +68,6 @@ mission(void)
struct genitem *gp;
int num = 0, mobmax, mobused, dist;
struct nstr_item ni;
extern int ship_mob_max;
extern int land_mob_max;
extern int plane_mob_max;
extern double mission_mob_cost;
s_char prompt[128];
s_char buf[1024];