projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
turn window bigger, and block alarm when refreshing
[unix-history]
/
usr
/
src
/
games
/
sail
/
extern.h
diff --git
a/usr/src/games/sail/extern.h
b/usr/src/games/sail/extern.h
index
c3ddd3f
..
9c0a0dc
100644
(file)
--- a/
usr/src/games/sail/extern.h
+++ b/
usr/src/games/sail/extern.h
@@
-1,5
+1,5
@@
/*
/*
- * @(#)extern.h
1.6 83/10/05
+ * @(#)extern.h
2.2 83/11/03
*/
#include <stdio.h>
#include <signal.h>
*/
#include <stdio.h>
#include <signal.h>
@@
-21,7
+21,7
@@
#define Xfouled2(a,b) Snagged2(a, b, 0, 1)
#define Xsnagged2(a,b) (Snagged2(a, b, 0, 1) || Snagged2(a, b, 1, 1))
#define Xfouled2(a,b) Snagged2(a, b, 0, 1)
#define Xsnagged2(a,b) (Snagged2(a, b, 0, 1) || Snagged2(a, b, 1, 1))
-#define sterncolour(sp) ((sp)->file->stern+'0'-((sp)->file->captured?1
6
:0))
+#define sterncolour(sp) ((sp)->file->stern+'0'-((sp)->file->captured?1
0
:0))
#define sternrow(sp) ((sp)->file->row + dr[(sp)->file->dir])
#define sterncol(sp) ((sp)->file->col + dc[(sp)->file->dir])
#define sternrow(sp) ((sp)->file->row + dr[(sp)->file->dir])
#define sterncol(sp) ((sp)->file->col + dc[(sp)->file->dir])
@@
-64,7
+64,7
@@
#define W_LAST 13
#define W_OBP 14
#define W_PCREW 15
#define W_LAST 13
#define W_OBP 14
#define W_PCREW 15
-#define W_PEOPLE 16
+/* 16 */
#define W_POINTS 17
#define W_QUAL 18
/* 19 */
#define W_POINTS 17
#define W_QUAL 18
/* 19 */
@@
-76,7
+76,7
@@
#define W_SINK 25
#define W_STRUCK 26
#define W_TA 27
#define W_SINK 25
#define W_STRUCK 26
#define W_TA 27
-#define W_
TIME
28
+#define W_
ALIVE
28
#define W_TURN 29
#define W_WIND 30
#define W_FS 31
#define W_TURN 29
#define W_WIND 30
#define W_FS 31
@@
-85,6
+85,8
@@
#define W_RIG2 34
#define W_RIG3 35
#define W_RIG4 36
#define W_RIG2 34
#define W_RIG3 35
#define W_RIG4 36
+#define W_BEGIN 37
+#define W_END 38
struct logs {
char l_name[20];
struct logs {
char l_name[20];
@@
-105,16
+107,19
@@
struct snag {
struct ship *toship;
};
struct ship *toship;
};
-#define NSCENE
31
+#define NSCENE
nscene
#define NSHIP 10
#define NBP 3
#define NSHIP 10
#define NBP 3
-#define NNATION
5
+#define NNATION
8
#define N_A 0
#define N_B 1
#define N_S 2
#define N_F 3
#define N_J 4
#define N_A 0
#define N_B 1
#define N_S 2
#define N_F 3
#define N_J 4
+#define N_D 5
+#define N_K 6
+#define N_O 7
struct File {
char captain[20]; /* 0 */
struct File {
char captain[20]; /* 0 */
@@
-132,7
+137,6
@@
struct File {
char drift; /* 82 */
struct snag fouls[NSHIP]; /* 84 */
struct snag grapples[NSHIP]; /* 124 */
char drift; /* 82 */
struct snag fouls[NSHIP]; /* 84 */
struct snag grapples[NSHIP]; /* 124 */
- char signal[60]; /* 164 */
char RH; /* 224 */
char RG; /* 226 */
char RR; /* 228 */
char RH; /* 224 */
char RG; /* 226 */
char RR; /* 228 */
@@
-160,14
+164,12
@@
struct scenario {
char winddir; /* 0 */
char windspeed; /* 2 */
char windchange; /* 4 */
char winddir; /* 0 */
char windspeed; /* 2 */
char windchange; /* 4 */
- short turn; /* 6 */
- char people; /* 8 */
- char time; /* 10 */
char vessels; /* 12 */
char *name; /* 14 */
struct ship ship[NSHIP]; /* 16 */
};
char vessels; /* 12 */
char *name; /* 14 */
struct ship ship[NSHIP]; /* 16 */
};
-struct scenario scene[NSCENE];
+struct scenario scene[];
+int nscene;
struct shipspecs {
char bs;
struct shipspecs {
char bs;
@@
-225,11
+227,13
@@
char rangeofshot[];
char dr[], dc[];
char dr[], dc[];
-long lastsync;
-int winddir, windspeed, turn;
+int winddir;
+int windspeed;
+int turn;
int game;
int game;
-char Outbuf[BUFSIZE];
-FILE *syncfile;
+int alive;
+int people;
+char isplayer;
char *info();
char *quality();
char *info();
char *quality();