(dirchar, neighsects, login_coms, lookup_list, g_distptrs, level_easy)

(level_log, levelnames): Internal linkage.
This commit is contained in:
Markus Armbruster 2006-03-23 20:32:29 +00:00
parent be78c807e3
commit 3252f8a907
7 changed files with 16 additions and 10 deletions

View file

@ -105,7 +105,7 @@ static int owned_and_navigable(s_char *, int, int, s_char *, int);
** ________________________________________________________________ ** ________________________________________________________________
*/ */
s_char *dirchar = "juygbn"; static char *dirchar = "juygbn";
int dx[6] = { 2, 1, -1, -2, -1, 1 }; int dx[6] = { 2, 1, -1, -2, -1, 1 };
int dy[6] = { 0, -1, -1, 0, 1, 1 }; int dy[6] = { 0, -1, -1, 0, 1, 1 };

View file

@ -72,7 +72,7 @@ static int bp_coord_hash(struct as_coord c);
/* We use this for caching neighbors. It never changes except /* We use this for caching neighbors. It never changes except
* at reboot time (maybe) so we never need to free it */ * at reboot time (maybe) so we never need to free it */
struct sctstr **neighsects = (struct sctstr **)0; static struct sctstr **neighsects;
static s_char * static s_char *
bp_init(void) bp_init(void)

View file

@ -359,7 +359,7 @@ quit_cmd(void)
return RET_OK; return RET_OK;
} }
struct cmndstr login_coms[] = { static struct cmndstr login_coms[] = {
{"client client-id...", 0, client_cmd, 0, 0}, {"client client-id...", 0, client_cmd, 0, 0},
{"coun country", 0, coun_cmd, 0, 0}, {"coun country", 0, coun_cmd, 0, 0},
{"kill", 0, kill_cmd, 0, 0}, {"kill", 0, kill_cmd, 0, 0},

View file

@ -59,8 +59,13 @@ struct look_list {
struct mchrstr *mp; struct mchrstr *mp;
} l_u; } l_u;
int tech; int tech;
} lookup_list[200]; /* Change this if there are ever more than 200 planes, ships };
or land units. */
/*
* Change this if there are ever more than 200 ships, plane or land
* unit types.
*/
static struct look_list lookup_list[200];
static int lookup_list_cnt = 0; static int lookup_list_cnt = 0;
static void static void

View file

@ -56,7 +56,7 @@ struct distinfo {
/* This is our global buffer of distribution pointers. Note that /* This is our global buffer of distribution pointers. Note that
* We only malloc this once, and never again (until reboot time * We only malloc this once, and never again (until reboot time
* of course :) ) We do clear it each and every time. */ * of course :) ) We do clear it each and every time. */
struct distinfo *g_distptrs = (struct distinfo *)0; static struct distinfo *g_distptrs;
/* Note that even though we malloc and save the path, it is never /* Note that even though we malloc and save the path, it is never
* used. Thus, this option. If you want to malloc and save every * used. Thus, this option. If you want to malloc and save every

View file

@ -72,8 +72,8 @@ static void share_incr(double *, double *);
* They are changed later in the limit_level routine. * They are changed later in the limit_level routine.
*/ */
/*tech res edu hap */ /*tech res edu hap */
float level_easy[4] = { 0.75, 0.75, 5.00, 5.00 }; static float level_easy[4] = { 0.75, 0.75, 5.00, 5.00 };
float level_log[4] = { 1.75, 2.00, 4.00, 6.00 }; static float level_log[4] = { 1.75, 2.00, 4.00, 6.00 };
float levels[MAXNOC][4]; float levels[MAXNOC][4];

View file

@ -49,8 +49,9 @@
static void materials_charge(struct pchrstr *, short *, int); static void materials_charge(struct pchrstr *, short *, int);
static int materials_cost(struct pchrstr *, short *, int *); static int materials_cost(struct pchrstr *, short *, int *);
s_char *levelnames[] = static char *levelnames[] = {
{ "Technology", "Research", "Education", "Happiness" }; "Technology", "Research", "Education", "Happiness"
};
int int
produce(struct natstr *np, struct sctstr *sp, short *vec, int work, produce(struct natstr *np, struct sctstr *sp, short *vec, int work,