summaryrefslogtreecommitdiffstats
path: root/sail/extern.h
diff options
context:
space:
mode:
Diffstat (limited to 'sail/extern.h')
-rw-r--r--sail/extern.h52
1 files changed, 26 insertions, 26 deletions
diff --git a/sail/extern.h b/sail/extern.h
index 794851c7..0dc7b61b 100644
--- a/sail/extern.h
+++ b/sail/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.12 1999/09/30 18:01:33 jsm Exp $ */
+/* $NetBSD: extern.h,v 1.13 1999/12/28 18:05:24 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -43,20 +43,20 @@
#include "machdep.h"
/* program mode */
-int mode;
-jmp_buf restart;
+extern int mode;
+extern jmp_buf restart;
#define MODE_PLAYER 1
#define MODE_DRIVER 2
#define MODE_LOGGER 3
/* command line flags */
-char debug; /* -D */
-char randomize; /* -x, give first available ship */
-char longfmt; /* -l, print score in long format */
-char nobells; /* -b, don't ring bell before Signal */
+extern char debug; /* -D */
+extern char randomize; /* -x, give first available ship */
+extern char longfmt; /* -l, print score in long format */
+extern char nobells; /* -b, don't ring bell before Signal */
/* other initial modes */
-char issetuid; /* running setuid */
+extern char issetuid; /* running setuid */
#define die() ((rand() >> 3) % 6 + 1)
#define sqr(a) ((a) * (a))
@@ -232,7 +232,7 @@ struct scenario {
struct ship ship[NSHIP]; /* 16 */
};
extern struct scenario scene[];
-int nscene;
+extern int nscene;
struct shipspecs {
char bs;
@@ -257,8 +257,8 @@ struct shipspecs {
};
extern struct shipspecs specs[];
-struct scenario *cc; /* the current scenario */
-struct ship *ls; /* &cc->ship[cc->vessels] */
+extern struct scenario *cc; /* the current scenario */
+extern struct ship *ls; /* &cc->ship[cc->vessels] */
#define SHIP(s) (&cc->ship[s])
#define foreachship(sp) for ((sp) = cc->ship; (sp) < ls; (sp)++)
@@ -266,19 +266,19 @@ struct ship *ls; /* &cc->ship[cc->vessels] */
struct windeffects {
char A, B, C, D;
};
-const struct windeffects WET[7][6];
+extern const struct windeffects WET[7][6];
struct Tables {
char H, G, C, R;
};
-const struct Tables RigTable[11][6];
-const struct Tables HullTable[11][6];
+extern const struct Tables RigTable[11][6];
+extern const struct Tables HullTable[11][6];
-const char AMMO[9][4];
-const char HDT[9][10];
-const char HDTrake[9][10];
-const char QUAL[9][5];
-const char MT[9][3];
+extern const char AMMO[9][4];
+extern const char HDT[9][10];
+extern const char HDTrake[9][10];
+extern const char QUAL[9][5];
+extern const char MT[9][3];
extern const char *const countryname[];
extern const char *const classname[];
@@ -290,13 +290,13 @@ extern const char rangeofshot[];
extern const char dr[], dc[];
-int winddir;
-int windspeed;
-int turn;
-int game;
-int alive;
-int people;
-char hasdriver;
+extern int winddir;
+extern int windspeed;
+extern int turn;
+extern int game;
+extern int alive;
+extern int people;
+extern char hasdriver;
/* assorted.c */
void table __P((int, int, int, struct ship *, struct ship *, int));