+extern const struct Tables RigTable[11][6];
+extern const struct Tables HullTable[11][6];
+
+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[];
+extern const char *const directionname[];
+extern const char *const qualname[];
+extern const char loadname[];
+
+extern const char rangeofshot[];
+
+extern const char dr[], dc[];
+
+extern int winddir;
+extern int windspeed;
+extern int turn;
+extern int game;
+extern int alive;
+extern int people;
+extern int hasdriver;
+
+/* assorted.c */
+void table (struct ship *, struct ship *, int, int, int, int);
+void Cleansnag (struct ship *, struct ship *, int, int);
+
+/* dr_1.c */
+void unfoul (void);
+void boardcomp (void);
+void resolve (void);
+void compcombat (void);
+int next (void);
+
+/* dr_2.c */
+void thinkofgrapples (void);
+void checkup (void);
+void prizecheck (void);
+void closeon (struct ship *, struct ship *, char *, int, int, int);
+
+/* dr_3.c */
+void moveall (void);
+void sendbp (struct ship *, struct ship *, int, int);
+int is_toughmelee (struct ship *, struct ship *, int, int);
+void reload (void);
+void checksails (void);
+
+/* dr_4.c */
+void ungrap (struct ship *, struct ship *);
+void grap (struct ship *, struct ship *);
+
+/* dr_5.c */
+void subtract (struct ship *, struct ship *, int, int [3], int);
+int mensent (struct ship *, struct ship *, int[3], struct ship **, int *,
+ int);
+
+/* dr_main.c */
+int dr_main (void);
+
+/* game.c */
+int maxturns (struct ship *, char *);
+int maxmove (struct ship *, int, int);
+
+/* lo_main.c */
+int lo_main (void);
+
+/* misc.c */
+int range (struct ship *, struct ship *);
+struct ship *closestenemy (struct ship *, int, int);
+int gunsbear (struct ship *, struct ship *);
+int portside (struct ship *, struct ship *, int);
+int colours (struct ship *);
+void logger (struct ship *);
+
+/* parties.c */
+int meleeing (struct ship *, struct ship *);
+int boarding (struct ship *, int);
+void unboard (struct ship *, struct ship *, int);
+
+/* pl_1.c */
+void leave (int) __attribute__((__noreturn__));
+void choke (int) __attribute__((__noreturn__));
+void child (int);
+
+/* pl_2.c */
+void play (void) __attribute__((__noreturn__));
+
+/* pl_3.c */
+void acceptcombat (void);
+void grapungrap (void);
+void unfoulplayer (void);
+
+/* pl_4.c */
+void changesail (void);
+void acceptsignal (void);
+void lookout (void);
+const char *saywhat (struct ship *, int);
+void eyeball (struct ship *);
+
+/* pl_5.c */
+void acceptmove (void);
+void acceptboard (void);
+
+/* pl_6.c */
+void repair (void);
+void loadplayer (void);
+
+/* pl_7.c */
+void initscreen (void);
+void cleanupscreen (void);
+void newturn (int);
+void Signal (const char *, struct ship *, ...)
+ __attribute__((__format__(__printf__,1,3)));
+void Msg (const char *, ...)
+ __attribute__((__format__(__printf__,1,2)));
+void prompt (const char *, struct ship *);
+int sgetch (const char *, struct ship *, int);
+void sgetstr (const char *, char *, int);
+void draw_screen (void);
+void draw_view (void);
+void draw_turn (void);
+void draw_stat (void);
+void draw_slot (void);
+void draw_board (void);
+void centerview (void);
+void upview (void);
+void downview (void);
+void leftview (void);
+void rightview (void);
+
+/* pl_main.c */
+int pl_main (void);
+
+/* sync.c */
+void fmtship (char *, size_t, const char *, struct ship *);
+void makesignal (struct ship *, const char *, struct ship *, ...)
+ __attribute__((__format__(__printf__,2,4)));
+void makemsg (struct ship *, const char *, ...)
+ __attribute__((__format__(__printf__,2,3)));
+int sync_exists (int);
+int sync_open (void);
+void sync_close (int);
+void Write (int, struct ship *, long, long, long, long);
+void Writestr (int, struct ship *, const char *);
+int Sync (void);