integrate with dm
[unix-history] / usr / src / games / sail / extern.h
index 5518aef..33fb604 100644 (file)
@@ -1,11 +1,33 @@
 /*
 /*
- * @(#)extern.h        2.4 84/02/23
+ * Copyright (c) 1983 Regents of the University of California.
+ * All rights reserved.  The Berkeley software License Agreement
+ * specifies the terms and conditions for redistribution.
+ *
+ *     @(#)extern.h    5.1 (Berkeley) %G%
  */
  */
+
 #include <stdio.h>
 #include <signal.h>
 #include <ctype.h>
 #include <stdio.h>
 #include <signal.h>
 #include <ctype.h>
+#include <setjmp.h>
 #include "machdep.h"
 
 #include "machdep.h"
 
+       /* program mode */
+int mode;
+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 */
+
+       /* other initial modes */
+char issetuid;                         /* running setuid */
+
 #define die()          ((rand() >> 3) % 6 + 1)
 #define sqr(a)         ((a) * (a))
 #define abs(a)         ((a) > 0 ? (a) : -(a))
 #define die()          ((rand() >> 3) % 6 + 1)
 #define sqr(a)         ((a) * (a))
 #define abs(a)         ((a) > 0 ? (a) : -(a))
@@ -244,7 +266,6 @@ int turn;
 int game;
 int alive;
 int people;
 int game;
 int alive;
 int people;
-char isplayer;
 char hasdriver;
 
 char *info();
 char hasdriver;
 
 char *info();
@@ -254,6 +275,7 @@ char *saywhat();
 struct ship *closestenemy();
 
 char *calloc();
 struct ship *closestenemy();
 
 char *calloc();
+char *rindex();
 char *strcpy();
 char *strcat();
 char *strncpy();
 char *strcpy();
 char *strcat();
 char *strncpy();