Add some missing declarations to headers. Remove some redundant
declarations elsewhere. Change linkage of some functions to static.
This commit is contained in:
parent
e7811102a3
commit
4a3f0b8146
43 changed files with 72 additions and 169 deletions
|
@ -72,9 +72,7 @@ static s_char *finish_path = "h"; /* Placeholder indicating path exists */
|
|||
#endif /* SAVE_FINISH_PATHS */
|
||||
|
||||
static void assemble_dist_paths(struct distinfo *distptrs);
|
||||
s_char *BestDistPath(s_char *, struct sctstr *, struct sctstr *, double *, int);
|
||||
s_char *ReversePath(s_char *path);
|
||||
double pathcost(struct sctstr *, s_char *, int);
|
||||
static s_char *ReversePath(s_char *path);
|
||||
|
||||
void
|
||||
finish_sects(int etu)
|
||||
|
@ -240,7 +238,7 @@ assemble_dist_paths(struct distinfo *distptrs)
|
|||
}
|
||||
}
|
||||
|
||||
s_char *
|
||||
static s_char *
|
||||
ReversePath(s_char *path)
|
||||
{
|
||||
s_char *patharray = "aucdefjhigklmyopqrstbvwxnz";
|
||||
|
|
|
@ -58,7 +58,6 @@ long lnd_money[MAXNOC];
|
|||
long air_money[MAXNOC];
|
||||
long tpops[MAXNOC];
|
||||
|
||||
extern int mil_dbl_pay;
|
||||
int update_pending = 0;
|
||||
|
||||
static void do_prod(int, int, int, int *, long int (*)[2], int *, int *,
|
||||
|
|
|
@ -57,10 +57,6 @@
|
|||
* level of 0 yields (1) 0.4, (6) 2.2, (12) 3.9, (18) 5.2.
|
||||
*/
|
||||
|
||||
extern float hap_avg;
|
||||
extern float edu_avg;
|
||||
extern float ally_factor;
|
||||
|
||||
static void share_incr(register double *, register double *);
|
||||
|
||||
/*
|
||||
|
|
|
@ -53,7 +53,6 @@
|
|||
#include "common.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
extern int check_nav(struct sctstr *sect);
|
||||
static void swap(register struct shpstr *);
|
||||
|
||||
static void
|
||||
|
|
|
@ -52,8 +52,6 @@
|
|||
#include "gen.h"
|
||||
#include "common.h"
|
||||
|
||||
extern float levels[MAXNOC][4];
|
||||
|
||||
void
|
||||
prepare_sects(int etu, int *bp)
|
||||
{
|
||||
|
|
|
@ -55,8 +55,6 @@
|
|||
#include "lost.h"
|
||||
#include "gen.h"
|
||||
|
||||
extern float levels[MAXNOC][4];
|
||||
|
||||
int
|
||||
dodeliver(struct sctstr *sp, int *vec)
|
||||
{
|
||||
|
@ -201,8 +199,6 @@ enlist(register int *vec, int etu, int *cost)
|
|||
|
||||
/* Fallout is calculated here. */
|
||||
|
||||
extern int melt_item_denom[];
|
||||
|
||||
static void
|
||||
meltitems(int etus, int fallout, int own, int *vec, int type, int x, int y,
|
||||
int uid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue