# 2.11BSD#431 - /usr/src/games/sail/externs.h

##### Variables

    AMMO              X
    HDT               X
    HDTrake           X
    HullTable         X
    MT                X
    QUAL              X
    RigTable          X
    WET               X
    alive             X
    cc                X
    classname         X
    countryname       X
    dc                X
    debug             X
    directionname     X
    dr                X
    game              X
    hasdriver         X
    issetuid          X
    loadname          X
    longfmt           X
    ls                X
    mode              X
    nobells           X
    nscene            X
    people            X
    qualname          X
    randomize         X
    rangeofshot       X
    restart           X
    scene             X
    specs             X
    turn              X
    winddir           X
    windspeed         X

##### Macros

    HULL              X
    L_CHAIN           X
    L_DOUBLE          X
    L_EMPTY           X
    L_EXPLODE         X
    L_GRAPE           X
    L_ROUND           X
    MODE_DRIVER       X
    MODE_LOGGER       X
    MODE_PLAYER       X
    NBP               X
    NLOG              X
    NNATION           X
    NSCENE            X
    NSHIP             X
    N_A               X
    N_B               X
    N_D               X
    N_F               X
    N_J               X
    N_K               X
    N_O               X
    N_S               X
    RIGGING           X
    R_DOUBLE          X
    R_EMPTY           X
    R_INITIAL         X
    R_LOADED          X
    R_LOADING         X
    SHIP              X
    W_ALIVE           X
    W_BEGIN           X
    W_CAPTAIN         X
    W_CAPTURED        X
    W_CLASS           X
    W_COL             X
    W_CREW            X
    W_DBP             X
    W_DDEAD           X
    W_DIR             X
    W_DRIFT           X
    W_END             X
    W_EXPLODE         X
    W_FILE            X
    W_FOUL            X
    W_FS              X
    W_GRAP            X
    W_GUNL            X
    W_GUNR            X
    W_HULL            X
    W_MOVE            X
    W_OBP             X
    W_PCREW           X
    W_POINTS          X
    W_QUAL            X
    W_RIG1            X
    W_RIG2            X
    W_RIG3            X
    W_RIG4            X
    W_RIGG            X
    W_ROW             X
    W_SIGNAL          X
    W_SINK            X
    W_STRUCK          X
    W_TA              X
    W_TURN            X
    W_UNFOUL          X
    W_UNGRAP          X
    W_WIND            X
    Xfouled2          X
    Xgrappled2        X
    Xsnagged2         X
    abs               X
    capship           X
    cleanfoul         X
    cleangrapple      X
    cleansnag         X
    die               X
    foreachship       X
    fouled            X
    fouled2           X
    grappled          X
    grappled2         X
    min               X
    readyname         X
    snagged           X
    snagged2          X
    sqr               X
    sterncol          X
    sterncolour       X
    sternrow          X

##### struct's

    BP                X
    File              X
    Tables            X
    logs              X
    scenario          X
    ship              X
    shipspecs         X
    snag              X
    windeffects       X

       1: /*
       2:  * Copyright (c) 1983 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  *
       6:  *	@(#)externs.h	5.1 (Berkeley) 5/29/85
       7:  */
       8:
       9: #include <stdio.h>
      10: #include <signal.h>
      11: #include <ctype.h>
      12: #include <setjmp.h>
      13: #include "machdep.h"
      14:
      15:     /* program mode */
      16: int mode;
      17: jmp_buf restart;
      18: #define MODE_PLAYER 1
      19: #define MODE_DRIVER 2
      20: #define MODE_LOGGER 3
      21:
      22:     /* command line flags */
      23: char debug;             /* -D */
      24: char randomize;             /* -x, give first available ship */
      25: char longfmt;               /* -l, print score in long format */
      26: char nobells;               /* -b, don't ring bell before Signal */
      27:
      28:     /* other initial modes */
      29: char issetuid;              /* running setuid */
      30:
      31: #define die()       ((rand() >> 3) % 6 + 1)
      32: #define sqr(a)      ((a) * (a))
      33: #define abs(a)      ((a) > 0 ? (a) : -(a))
      34: #define min(a,b)    ((a) < (b) ? (a) : (b))
      35:
      36: #define grappled(a) ((a)->file->ngrap)
      37: #define fouled(a)   ((a)->file->nfoul)
      38: #define snagged(a)  (grappled(a) + fouled(a))
      39:
      40: #define grappled2(a, b) ((a)->file->grap[(b)->file->index].sn_count)
      41: #define fouled2(a, b)   ((a)->file->foul[(b)->file->index].sn_count)
      42: #define snagged2(a, b)  (grappled2(a, b) + fouled2(a, b))
      43:
      44: #define Xgrappled2(a, b) ((a)->file->grap[(b)->file->index].sn_turn < turn-1 ? grappled2(a, b) : 0)
      45: #define Xfouled2(a, b)  ((a)->file->foul[(b)->file->index].sn_turn < turn-1 ? fouled2(a, b) : 0)
      46: #define Xsnagged2(a, b) (Xgrappled2(a, b) + Xfouled2(a, b))
      47:
      48: #define cleangrapple(a, b, c)   Cleansnag(a, b, c, 1)
      49: #define cleanfoul(a, b, c)  Cleansnag(a, b, c, 2)
      50: #define cleansnag(a, b, c)  Cleansnag(a, b, c, 3)
      51:
      52: #define sterncolour(sp) ((sp)->file->stern+'0'-((sp)->file->captured?10:0))
      53: #define sternrow(sp)    ((sp)->file->row + dr[(sp)->file->dir])
      54: #define sterncol(sp)    ((sp)->file->col + dc[(sp)->file->dir])
      55:
      56: #define capship(sp) ((sp)->file->captured?(sp)->file->captured:(sp))
      57:
      58: #define readyname(r)    ((r) & R_LOADING ? '*' : ((r) & R_INITIAL ? '!' : ' '))
      59:
      60: /* loadL and loadR, should match loadname[] */
      61: #define L_EMPTY     0       /* should be 0, don't change */
      62: #define L_GRAPE     1
      63: #define L_CHAIN     2
      64: #define L_ROUND     3
      65: #define L_DOUBLE    4
      66: #define L_EXPLODE   5
      67:
      68: /*
      69:  * readyL and readyR, these are bits, except R_EMPTY
      70:  */
      71: #define R_EMPTY     0       /* not loaded and not loading */
      72: #define R_LOADING   1       /* loading */
      73: #define R_DOUBLE    2       /* loading double */
      74: #define R_LOADED    4       /* loaded */
      75: #define R_INITIAL   8       /* loaded initial */
      76:
      77: #define HULL        0
      78: #define RIGGING     1
      79:
      80: #define W_CAPTAIN   1
      81: #define W_CAPTURED  2
      82: #define W_CLASS     3
      83: #define W_CREW      4
      84: #define W_DBP       5
      85: #define W_DRIFT     6
      86: #define W_EXPLODE   7
      87: #define W_FILE      8
      88: #define W_FOUL      9
      89: #define W_GUNL      10
      90: #define W_GUNR      11
      91: #define W_HULL      12
      92: #define W_MOVE      13
      93: #define W_OBP       14
      94: #define W_PCREW     15
      95: #define W_UNFOUL    16
      96: #define W_POINTS    17
      97: #define W_QUAL      18
      98: #define W_UNGRAP    19
      99: #define W_RIGG      20
     100: #define W_COL       21
     101: #define W_DIR       22
     102: #define W_ROW       23
     103: #define W_SIGNAL    24
     104: #define W_SINK      25
     105: #define W_STRUCK    26
     106: #define W_TA        27
     107: #define W_ALIVE     28
     108: #define W_TURN      29
     109: #define W_WIND      30
     110: #define W_FS        31
     111: #define W_GRAP      32
     112: #define W_RIG1      33
     113: #define W_RIG2      34
     114: #define W_RIG3      35
     115: #define W_RIG4      36
     116: #define W_BEGIN     37
     117: #define W_END       38
     118: #define W_DDEAD     39
     119:
     120: #define NLOG 10
     121: struct logs {
     122:     char l_name[20];
     123:     int l_uid;
     124:     int l_shipnum;
     125:     int l_gamenum;
     126:     int l_netpoints;
     127: };
     128:
     129: struct BP {
     130:     short turnsent;
     131:     struct ship *toship;
     132:     short mensent;
     133: };
     134:
     135: struct snag {
     136:     short sn_count;
     137:     short sn_turn;
     138: };
     139:
     140: #define NSCENE  nscene
     141: #define NSHIP   10
     142: #define NBP 3
     143:
     144: #define NNATION 8
     145: #define N_A 0
     146: #define N_B 1
     147: #define N_S 2
     148: #define N_F 3
     149: #define N_J 4
     150: #define N_D 5
     151: #define N_K 6
     152: #define N_O 7
     153:
     154: struct File {
     155:     int index;
     156:     char captain[20];       /* 0 */
     157:     short points;           /* 20 */
     158:     char loadL;         /* 22 */
     159:     char loadR;         /* 24 */
     160:     char readyL;            /* 26 */
     161:     char readyR;            /* 28 */
     162:     struct BP OBP[NBP];     /* 30 */
     163:     struct BP DBP[NBP];     /* 48 */
     164:     char struck;            /* 66 */
     165:     struct ship *captured;      /* 68 */
     166:     short pcrew;            /* 70 */
     167:     char movebuf[10];       /* 72 */
     168:     char drift;         /* 82 */
     169:     short nfoul;
     170:     short ngrap;
     171:     struct snag foul[NSHIP];    /* 84 */
     172:     struct snag grap[NSHIP];    /* 124 */
     173:     char RH;            /* 224 */
     174:     char RG;            /* 226 */
     175:     char RR;            /* 228 */
     176:     char FS;            /* 230 */
     177:     char explode;           /* 232 */
     178:     char sink;          /* 234 */
     179:     char dir;
     180:     short col;
     181:     short row;
     182:     char loadwith;
     183:     char stern;
     184: };
     185:
     186: struct ship {
     187:     char *shipname;         /* 0 */
     188:     struct shipspecs *specs;    /* 2 */
     189:     char nationality;       /* 4 */
     190:     short shiprow;          /* 6 */
     191:     short shipcol;          /* 8 */
     192:     char shipdir;           /* 10 */
     193:     struct File *file;      /* 12 */
     194: };
     195:
     196: struct scenario {
     197:     char winddir;           /* 0 */
     198:     char windspeed;         /* 2 */
     199:     char windchange;        /* 4 */
     200:     char vessels;           /* 12 */
     201:     char *name;         /* 14 */
     202:     struct ship ship[NSHIP];    /* 16 */
     203: };
     204: struct scenario scene[];
     205: int nscene;
     206:
     207: struct shipspecs {
     208:     char bs;
     209:     char fs;
     210:     char ta;
     211:     short guns;
     212:     char class;
     213:     char hull;
     214:     char qual;
     215:     char crew1;
     216:     char crew2;
     217:     char crew3;
     218:     char gunL;
     219:     char gunR;
     220:     char carL;
     221:     char carR;
     222:     char rig1;
     223:     char rig2;
     224:     char rig3;
     225:     char rig4;
     226:     short pts;
     227: };
     228: struct shipspecs specs[];
     229:
     230: struct scenario *cc;        /* the current scenario */
     231: struct ship *ls;        /* &cc->ship[cc->vessels] */
     232:
     233: #define SHIP(s)     (&cc->ship[s])
     234: #define foreachship(sp) for ((sp) = cc->ship; (sp) < ls; (sp)++)
     235:
     236: struct windeffects {
     237:     char A, B, C, D;
     238: };
     239: struct windeffects WET[7][6];
     240:
     241: struct Tables {
     242:     char H, G, C, R;
     243: };
     244: struct Tables RigTable[11][6];
     245: struct Tables HullTable[11][6];
     246:
     247: char AMMO[9][4];
     248: char HDT[9][10];
     249: char HDTrake[9][10];
     250: char QUAL[9][5];
     251: char MT[9][3];
     252:
     253: char *countryname[];
     254: char *classname[];
     255: char *directionname[];
     256: char *qualname[];
     257: char loadname[];
     258:
     259: char rangeofshot[];
     260:
     261: char dr[], dc[];
     262:
     263: int winddir;
     264: int windspeed;
     265: int turn;
     266: int game;
     267: int alive;
     268: int people;
     269: char hasdriver;
     270:
     271: char *info();
     272: char *quality();
     273: double arctan();
     274: char *saywhat();
     275: struct ship *closestenemy();
     276:
     277: char *calloc();
     278: char *rindex();
     279: char *strcpy();
     280: char *strcat();
     281: char *strncpy();
     282: char *getenv();
     283: char *gets();

#### Defined variables

AMMO defined in line 247; used 2 times

- in /usr/src/games/sail/dr_1.c line 342
- in /usr/src/games/sail/pl_3.c line 133

HDT defined in line 248; used 2 times

- in /usr/src/games/sail/dr_1.c line 315
- in /usr/src/games/sail/pl_3.c line 111

HDTrake defined in line 249; used 2 times

- in /usr/src/games/sail/dr_1.c line 317
- in /usr/src/games/sail/pl_3.c line 113

HullTable defined in line 245; used 2 times

- in /usr/src/games/sail/assorted.c line 38
- in /usr/src/games/sail/pl_3.c line 148

MT defined in line 251; used 2 times

- in /usr/src/games/sail/dr_1.c line 138-143(2)

QUAL defined in line 250; used 2 times

- in /usr/src/games/sail/dr_1.c line 320
- in /usr/src/games/sail/pl_3.c line 116

RigTable defined in line 244; used 2 times

- in /usr/src/games/sail/assorted.c line 38
- in /usr/src/games/sail/pl_3.c line 148

WET defined in line 239; used 4 times

- in /usr/src/games/sail/game.c line 48-56(4)

alive defined in line 267; used 3 times

- in /usr/src/games/sail/dr_1.c line 362-363(2)
- in /usr/src/games/sail/sync.c line 368

cc defined in line 230; used 17 times

- in line 233-234(2)
- in /usr/src/games/sail/dr_1.c line 394
- in /usr/src/games/sail/dr_main.c line 29-30(2), 53-54(2)
- in /usr/src/games/sail/pl_7.c line 387-388(2)
- in /usr/src/games/sail/pl_main.c line 62-63(2), 79-80(2), 113, 121-124(2)
- in /usr/src/games/sail/sync.c line 148

classname defined in line 254; used 3 times

- in /usr/src/games/sail/pl_4.c line 100
- in /usr/src/games/sail/pl_7.c line 394
- in /usr/src/games/sail/pl_main.c line 167

countryname defined in line 253; used 4 times

- in /usr/src/games/sail/misc.c line 153
- in /usr/src/games/sail/pl_4.c line 61, 99
- in /usr/src/games/sail/pl_main.c line 117

dc defined in line 261; used 22 times

- in line 54
- in /usr/src/games/sail/dr_2.c line 179, 188
- in /usr/src/games/sail/dr_3.c line 211, 222
- in /usr/src/games/sail/misc.c line 32-34(2), 72-93(11), 115, 131
- in /usr/src/games/sail/pl_7.c line 332, 351

debug defined in line 23; used 1 times

- in /usr/src/games/sail/main.c line 48

directionname defined in line 255; used 1 times

- in /usr/src/games/sail/pl_4.c line 100

dr defined in line 261; used 22 times

- in line 53
- in /usr/src/games/sail/dr_2.c line 178, 187
- in /usr/src/games/sail/dr_3.c line 210, 221
- in /usr/src/games/sail/misc.c line 31-33(2), 72-93(11), 114, 130
- in /usr/src/games/sail/pl_7.c line 332, 351

game defined in line 266; used 18 times

- in /usr/src/games/sail/dr_main.c line 25-29(4)
- in /usr/src/games/sail/main.c line 64-66(2)
- in /usr/src/games/sail/misc.c line 193
- in /usr/src/games/sail/pl_main.c line 42, 54-62(4), 85
- in /usr/src/games/sail/sync.c line 45, 51, 57, 68-69(2)

hasdriver defined in line 269; used 9 times

- in /usr/src/games/sail/pl_1.c line 84, 103
- in /usr/src/games/sail/pl_7.c line 72, 81
- in /usr/src/games/sail/pl_main.c line 85, 91, 153, 163
- in /usr/src/games/sail/sync.c line 387

issetuid defined in line 29; used 3 times

- in /usr/src/games/sail/dr_main.c line 23
- in /usr/src/games/sail/main.c line 28
- in /usr/src/games/sail/sync.c line 71

loadname defined in line 257; used 2 times

- in /usr/src/games/sail/pl_7.c line 277-278(2)

longfmt defined in line 25; used 2 times

- in /usr/src/games/sail/lo_main.c line 50
- in /usr/src/games/sail/main.c line 54

ls defined in line 231; used 5 times

- in line 234
- in /usr/src/games/sail/dr_1.c line 208
- in /usr/src/games/sail/dr_main.c line 30
- in /usr/src/games/sail/pl_main.c line 63, 102

mode defined in line 16; used 9 times

- in /usr/src/games/sail/main.c line 34-45(5), 68-69(2), 77
- in /usr/src/games/sail/sync.c line 262

nobells defined in line 26; used 2 times

- in /usr/src/games/sail/main.c line 57
- in /usr/src/games/sail/sync.c line 263

nscene defined in line 205; used 1 times

- in line 140

people defined in line 268; used 10 times

- in /usr/src/games/sail/dr_1.c line 365-366(2)
- in /usr/src/games/sail/dr_main.c line 55
- in /usr/src/games/sail/lo_main.c line 29, 38(2), 60
- in /usr/src/games/sail/pl_main.c line 107
- in /usr/src/games/sail/sync.c line 379-384(2)

qualname defined in line 256; used 1 times

- in /usr/src/games/sail/pl_main.c line 168

randomize defined in line 24; used 2 times

- in /usr/src/games/sail/main.c line 51
- in /usr/src/games/sail/pl_main.c line 110

rangeofshot defined in line 259; used 1 times

- in /usr/src/games/sail/pl_3.c line 64

restart defined in line 17; used 2 times

- in /usr/src/games/sail/main.c line 67
- in /usr/src/games/sail/pl_main.c line 156

scene defined in line 204; used 7 times

- in /usr/src/games/sail/dr_main.c line 29
- in /usr/src/games/sail/globals.c line 250
- in /usr/src/games/sail/lo_main.c line 55
- in /usr/src/games/sail/misc.c line 187
- in /usr/src/games/sail/pl_main.c line 47-49(2), 62

specs defined in line 228; used 222 times

- in line 188
- in /usr/src/games/sail/assorted.c line 27-34(8), 79-83(4), 232
- in /usr/src/games/sail/dr_1.c line 49-51(3), 60(2), 120-122(3), 129-130(2), 147-148(2), 169-170(2), 178-180(2), 243-245(3), 266-271(4), 320, 343, 373
- in /usr/src/games/sail/dr_2.c line 13(2), 68, 84-87(4), 185
- in /usr/src/games/sail/dr_3.c line 32, 179-180(2), 219, 261-270(4), 302-305(3)
- in /usr/src/games/sail/dr_5.c line 50-52(3)
- in /usr/src/games/sail/game.c line 19, 34-56(10)
- in /usr/src/games/sail/globals.c line 24-247(131)
- in /usr/src/games/sail/lo_main.c line 58
- in /usr/src/games/sail/misc.c line 174, 187
- in /usr/src/games/sail/pl_4.c line 100
- in /usr/src/games/sail/pl_main.c line 119, 146
- in /usr/src/games/sail/sync.c line 269, 287, 300, 306, 312, 326-329(2), 337-346(4), 365

turn defined in line 265; used 14 times

- in line 44-45(2)
- in /usr/src/games/sail/dr_1.c line 361, 393-394(2)
- in /usr/src/games/sail/dr_2.c line 186
- in /usr/src/games/sail/dr_3.c line 220, 243
- in /usr/src/games/sail/pl_5.c line 200
- in /usr/src/games/sail/pl_7.c line 86, 248
- in /usr/src/games/sail/sync.c line 224, 233, 371

winddir defined in line 263; used 44 times

- in line 197
- in /usr/src/games/sail/dr_1.c line 397-417(9), 431
- in /usr/src/games/sail/dr_2.c line 187-188(2)
- in /usr/src/games/sail/dr_3.c line 221-222(2)
- in /usr/src/games/sail/dr_main.c line 54(2)
- in /usr/src/games/sail/game.c line 47-53(11)
- in /usr/src/games/sail/pl_7.c line 261-273(8), 332-333(3), 351(2)
- in /usr/src/games/sail/pl_main.c line 80(2)
- in /usr/src/games/sail/sync.c line 374

windspeed defined in line 264; used 34 times

- in line 198
- in /usr/src/games/sail/dr_1.c line 344-348(3), 366, 394, 418-431(5)
- in /usr/src/games/sail/dr_2.c line 184
- in /usr/src/games/sail/dr_3.c line 31, 218, 303(2)
- in /usr/src/games/sail/dr_main.c line 53(2)
- in /usr/src/games/sail/game.c line 48-56(4)
- in /usr/src/games/sail/pl_3.c line 134-138(3)
- in /usr/src/games/sail/pl_4.c line 19(2)
- in /usr/src/games/sail/pl_5.c line 26
- in /usr/src/games/sail/pl_7.c line 88, 97, 323
- in /usr/src/games/sail/pl_main.c line 79(2)
- in /usr/src/games/sail/sync.c line 375

#### Defined struct's

BP defined in line 129; used 26 times

- in line 162-163(4)
- in /usr/src/games/sail/dr_3.c line 236(2), 256(2)
- in /usr/src/games/sail/dr_5.c line 46(2)
- in /usr/src/games/sail/parties.c line 17-18(4), 30-31(4), 43(2)
- in /usr/src/games/sail/pl_5.c line 178(2)
- in /usr/src/games/sail/sync.c line 206(2), 213(2)

File defined in line 154; used 16 times

- in line 193(2)
- in /usr/src/games/sail/dr_2.c line 125(2)
- in /usr/src/games/sail/dr_main.c line 39(4)
- in /usr/src/games/sail/pl_main.c line 33(2), 69(4)
- in /usr/src/games/sail/player.h line 86(2)

Tables defined in line 241; used 12 times

- in line 244-245(4)
- in /usr/src/games/sail/assorted.c line 24(2)
- in /usr/src/games/sail/globals.c line 353(2), 366(2)
- in /usr/src/games/sail/pl_3.c line 145(2)

logs defined in line 121; used 14 times

- in /usr/src/games/sail/lo_main.c line 31(2)
- in /usr/src/games/sail/misc.c line 164-166(4), 176(2), 189(2), 196-198(4)

scenario defined in line 196; used 8 times

- in line 204(2), 230(2)
- in /usr/src/games/sail/globals.c line 13(2), 250(2)

ship defined in line 186; used 266 times

- in line 131, 165, 202(2), 231(2), 275(2)
- in /usr/src/games/sail/assorted.c line 14(2), 77(2), 154(2), 180(2), 199(2), 225(2)
- in /usr/src/games/sail/dr_1.c line 15-16(4), 38(2), 100-103(4), 203(2), 233-234(4), 367-368(4)
- in /usr/src/games/sail/dr_2.c line 17(2), 47(2), 65(2), 71(2), 77(2), 104(2), 120(2), 153(2), 196(2)
- in /usr/src/games/sail/dr_3.c line 15(2), 25(2), 154(2), 163-165(4), 175(2), 190(2), 231(2), 246(2), 253(2), 286(2), 295-297(4)
- in /usr/src/games/sail/dr_4.c line 14(2), 31(2)
- in /usr/src/games/sail/dr_5.c line 14(2), 39(2)
- in /usr/src/games/sail/dr_main.c line 16(2)
- in /usr/src/games/sail/game.c line 14(2), 29(2)
- in /usr/src/games/sail/lo_main.c line 32(2)
- in /usr/src/games/sail/misc.c line 17(2), 43-51(8), 100(2), 121(2), 141(2), 159(2)
- in /usr/src/games/sail/parties.c line 14-15(4), 27(2), 40(2)
- in /usr/src/games/sail/pl_1.c line 34(2), 40-54(10), 79(2)
- in /usr/src/games/sail/pl_2.c line 15-18(4), 32(2), 50(2), 66-69(4)
- in /usr/src/games/sail/pl_3.c line 24(2), 70(2), 80-86(6), 164-166(4), 177(2), 186(2), 201-204(4), 213(2), 219(2), 228(2), 239-242(4)
- in /usr/src/games/sail/pl_4.c line 24(2), 30(2), 36(2), 55(2), 72(2), 88(2), 94(2)
- in /usr/src/games/sail/pl_5.c line 27(2), 48(2), 76(2), 88(2), 94-99(4), 108(2), 116-121(4), 163(2), 172(2), 198(2), 210(2), 225(2)
- in /usr/src/games/sail/pl_6.c line 24-27(4), 39(2), 91(2), 122(2), 129(2), 137(2), 157(2)
- in /usr/src/games/sail/pl_7.c line 110(2), 135(2), 158(2), 183(2), 224(2)
- in /usr/src/games/sail/pl_main.c line 26(2), 34(2)
- in /usr/src/games/sail/player.h line 85(2)
- in /usr/src/games/sail/sync.c line 28-30(4), 93(2), 201(2)

shipspecs defined in line 207; used 17 times

- in line 188, 228(2)
- in /usr/src/games/sail/globals.c line 252(2)
- in /usr/src/games/sail/pl_6.c line 17(2)
- in /usr/src/games/sail/player.h line 87(2)
- in /usr/src/games/sail/sync.c line 269(2), 300(2), 306(2), 329(2)

snag defined in line 135; used 12 times

- in line 171-172(4)
- in /usr/src/games/sail/sync.c line 220(2), 229(2), 238(2), 250(2)

windeffects defined in line 236; used 4 times

- in line 239(2)
- in /usr/src/games/sail/globals.c line 343(2)

#### Defined macros

HULL defined in line 77; used 2 times

- in /usr/src/games/sail/dr_1.c line 297
- in /usr/src/games/sail/pl_3.c line 75

L_CHAIN defined in line 63; used 7 times

- in /usr/src/games/sail/assorted.c line 45
- in /usr/src/games/sail/dr_1.c line 293-296(2)
- in /usr/src/games/sail/pl_3.c line 68, 156
- in /usr/src/games/sail/pl_6.c line 148
- in /usr/src/games/sail/pl_main.c line 192

L_DOUBLE defined in line 65; used 3 times

- in /usr/src/games/sail/dr_1.c line 295
- in /usr/src/games/sail/pl_6.c line 144
- in /usr/src/games/sail/pl_main.c line 198

L_EMPTY defined in line 61; used 5 times

- in /usr/src/games/sail/pl_2.c line 62-63(2)
- in /usr/src/games/sail/pl_3.c line 54, 168-171(2)

L_EXPLODE defined in line 66; used 1 times

- in /usr/src/games/sail/dr_2.c line 68

L_GRAPE defined in line 62; used 9 times

- in /usr/src/games/sail/assorted.c line 35
- in /usr/src/games/sail/dr_1.c line 290-294(3), 351
- in /usr/src/games/sail/dr_2.c line 37
- in /usr/src/games/sail/pl_3.c line 142
- in /usr/src/games/sail/pl_6.c line 152
- in /usr/src/games/sail/pl_main.c line 189

L_ROUND defined in line 64; used 6 times

- in /usr/src/games/sail/dr_1.c line 289
- in /usr/src/games/sail/dr_main.c line 44-45(2)
- in /usr/src/games/sail/pl_6.c line 140
- in /usr/src/games/sail/pl_main.c line 195, 201

MODE_DRIVER defined in line 19; used 3 times

- in /usr/src/games/sail/main.c line 34, 42
- in /usr/src/games/sail/pl_main.c line 156

MODE_LOGGER defined in line 20; used 2 times

- in /usr/src/games/sail/main.c line 36, 45

MODE_PLAYER defined in line 18; used 2 times

- in /usr/src/games/sail/main.c line 38
- in /usr/src/games/sail/sync.c line 262

NBP defined in line 142; used 14 times

- in line 162-163(2)
- in /usr/src/games/sail/dr_3.c line 239-241(2), 263
- in /usr/src/games/sail/dr_5.c line 54
- in /usr/src/games/sail/parties.c line 18, 31, 46
- in /usr/src/games/sail/pl_5.c line 130-134(2), 185, 203, 213

NLOG defined in line 120; used 11 times

- in /usr/src/games/sail/misc.c line 164, 176-177(2), 185-198(8)

NNATION defined in line 144; used 4 times

- in /usr/src/games/sail/dr_main.c line 17, 35
- in /usr/src/games/sail/pl_main.c line 40, 65

NSCENE defined in line 140; used 3 times

- in /usr/src/games/sail/dr_main.c line 25
- in /usr/src/games/sail/pl_main.c line 45, 58

NSHIP defined in line 141; used 8 times

- in line 171-172(2), 202
- in /usr/src/games/sail/dr_3.c line 18-19(5)

N_A defined in line 145; used 27 times

- in /usr/src/games/sail/globals.c line 24-29(2), 75-80(2), 98-119(6), 126-131(2), 156-159(4), 166, 183, 198-199(2), 206, 218-219(2), 225, 231-233(3)

N_B defined in line 146; used 50 times

- in /usr/src/games/sail/globals.c line 25-38(7), 47-51(5), 60-70(3), 85-88(4), 99-114(4), 120-146(12), 160-173(7), 184, 190, 200, 207-212(3), 220, 226

N_D defined in line 150; used 4 times

- in /usr/src/games/sail/globals.c line 240-243(4)

N_F defined in line 148; used 33 times

- in /usr/src/games/sail/globals.c line 39-43(5), 52-81(10), 89-94(6), 139, 151-152(2), 179, 186-194(5), 202, 213-214(2)

N_J defined in line 149; used 3 times

- in /usr/src/games/sail/globals.c line 234-236(3)

N_K defined in line 151; used 2 times

- in /usr/src/games/sail/globals.c line 244-245(2)

N_O defined in line 152; used 2 times

- in /usr/src/games/sail/globals.c line 246-247(2)

N_S defined in line 147; used 10 times

- in /usr/src/games/sail/globals.c line 147-150(4), 174-178(2), 185, 201, 221, 227

RIGGING defined in line 78; used 5 times

- in /usr/src/games/sail/dr_1.c line 299
- in /usr/src/games/sail/dr_2.c line 68
- in /usr/src/games/sail/pl_3.c line 72, 88, 148

R_DOUBLE defined in line 73; used 3 times

- in /usr/src/games/sail/pl_6.c line 145
- in /usr/src/games/sail/pl_7.c line 63-68(2)

R_EMPTY defined in line 71; used 4 times

- in /usr/src/games/sail/pl_2.c line 64-65(2)
- in /usr/src/games/sail/pl_3.c line 169-172(2)

R_INITIAL defined in line 75; used 9 times

- in line 58
- in /usr/src/games/sail/dr_1.c line 327-331(3)
- in /usr/src/games/sail/dr_main.c line 46-47(2)
- in /usr/src/games/sail/pl_3.c line 123
- in /usr/src/games/sail/pl_main.c line 205-208(2)

R_LOADED defined in line 74; used 8 times

- in /usr/src/games/sail/dr_1.c line 275
- in /usr/src/games/sail/dr_main.c line 46-47(2)
- in /usr/src/games/sail/pl_3.c line 54
- in /usr/src/games/sail/pl_7.c line 66-71(2)
- in /usr/src/games/sail/pl_main.c line 205-208(2)

R_LOADING defined in line 72; used 7 times

- in line 58
- in /usr/src/games/sail/pl_6.c line 162-165(2)
- in /usr/src/games/sail/pl_7.c line 62-69(4)

SHIP defined in line 233; used 18 times

- in /usr/src/games/sail/dr_1.c line 393, 431
- in /usr/src/games/sail/dr_main.c line 30, 43
- in /usr/src/games/sail/pl_7.c line 73, 87
- in /usr/src/games/sail/pl_main.c line 63, 73, 111, 137, 144
- in /usr/src/games/sail/player.h line 82
- in /usr/src/games/sail/sync.c line 175, 208, 215, 221, 230, 284

W_ALIVE defined in line 107; used 1 times

- in /usr/src/games/sail/pl_7.c line 87

W_BEGIN defined in line 116; used 1 times

- in /usr/src/games/sail/pl_main.c line 148

W_CAPTAIN defined in line 80; used 1 times

- in /usr/src/games/sail/pl_main.c line 179

W_CAPTURED defined in line 81; used 2 times

- in /usr/src/games/sail/dr_1.c line 177
- in /usr/src/games/sail/dr_2.c line 88

W_CLASS defined in line 82; never used
W_COL defined in line 100; used 1 times

- in /usr/src/games/sail/dr_3.c line 141

W_CREW defined in line 83; used 2 times

- in /usr/src/games/sail/assorted.c line 110
- in /usr/src/games/sail/dr_5.c line 30

W_DBP defined in line 84; used 3 times

- in /usr/src/games/sail/dr_3.c line 242
- in /usr/src/games/sail/parties.c line 48
- in /usr/src/games/sail/pl_5.c line 199

W_DDEAD defined in line 118; used 1 times

- in /usr/src/games/sail/pl_7.c line 73

W_DIR defined in line 101; used 2 times

- in /usr/src/games/sail/dr_2.c line 60
- in /usr/src/games/sail/dr_3.c line 143

W_DRIFT defined in line 85; used 1 times

- in /usr/src/games/sail/dr_3.c line 145

W_END defined in line 117; used 1 times

- in /usr/src/games/sail/pl_1.c line 80

W_EXPLODE defined in line 86; used 2 times

- in /usr/src/games/sail/assorted.c line 243
- in /usr/src/games/sail/dr_2.c line 59

W_FILE defined in line 87; never used
W_FOUL defined in line 88; used 2 times

- in /usr/src/games/sail/dr_3.c line 107-108(2)

W_FS defined in line 110; used 7 times

- in /usr/src/games/sail/dr_3.c line 317
- in /usr/src/games/sail/pl_4.c line 26-31(2)
- in /usr/src/games/sail/pl_5.c line 97, 106
- in /usr/src/games/sail/pl_7.c line 89-91(2)

W_GRAP defined in line 111; used 4 times

- in /usr/src/games/sail/dr_4.c line 35-36(2)
- in /usr/src/games/sail/pl_3.c line 199-200(2)

W_GUNL defined in line 89; used 2 times

- in /usr/src/games/sail/assorted.c line 101
- in /usr/src/games/sail/pl_6.c line 58

W_GUNR defined in line 90; used 2 times

- in /usr/src/games/sail/assorted.c line 101
- in /usr/src/games/sail/pl_6.c line 65

W_HULL defined in line 91; used 2 times

- in /usr/src/games/sail/assorted.c line 108
- in /usr/src/games/sail/pl_6.c line 49

W_MOVE defined in line 92; used 1 times

- in /usr/src/games/sail/pl_5.c line 115

W_OBP defined in line 93; used 3 times

- in /usr/src/games/sail/dr_3.c line 242
- in /usr/src/games/sail/parties.c line 48
- in /usr/src/games/sail/pl_5.c line 199

W_PCREW defined in line 94; used 2 times

- in /usr/src/games/sail/assorted.c line 106
- in /usr/src/games/sail/dr_5.c line 34

W_POINTS defined in line 96; used 4 times

- in /usr/src/games/sail/assorted.c line 233
- in /usr/src/games/sail/dr_1.c line 166, 181
- in /usr/src/games/sail/dr_2.c line 87

W_QUAL defined in line 97; never used
W_RIG1 defined in line 112; used 1 times

- in /usr/src/games/sail/pl_6.c line 86

W_RIG2 defined in line 113; used 1 times

- in /usr/src/games/sail/pl_6.c line 82

W_RIG3 defined in line 114; used 1 times

- in /usr/src/games/sail/pl_6.c line 78

W_RIG4 defined in line 115; used 1 times

- in /usr/src/games/sail/pl_6.c line 74

W_RIGG defined in line 99; used 1 times

- in /usr/src/games/sail/assorted.c line 112

W_ROW defined in line 102; used 1 times

- in /usr/src/games/sail/dr_3.c line 139

W_SIGNAL defined in line 103; used 8 times

- in /usr/src/games/sail/assorted.c line 246
- in /usr/src/games/sail/dr_1.c line 157, 189-192(2)
- in /usr/src/games/sail/dr_2.c line 85
- in /usr/src/games/sail/pl_4.c line 50
- in /usr/src/games/sail/pl_main.c line 215
- in /usr/src/games/sail/sync.c line 40

W_SINK defined in line 104; used 2 times

- in /usr/src/games/sail/assorted.c line 239
- in /usr/src/games/sail/dr_2.c line 59

W_STRUCK defined in line 105; used 1 times

- in /usr/src/games/sail/assorted.c line 231

W_TA defined in line 106; used 1 times

- in /usr/src/games/sail/assorted.c line 174

W_TURN defined in line 108; used 1 times

- in /usr/src/games/sail/dr_1.c line 393

W_UNFOUL defined in line 95; used 2 times

- in /usr/src/games/sail/assorted.c line 207-208(2)

W_UNGRAP defined in line 98; used 2 times

- in /usr/src/games/sail/assorted.c line 203-204(2)

W_WIND defined in line 109; used 1 times

- in /usr/src/games/sail/dr_1.c line 431

Xfouled2 defined in line 45; used 1 times

- in line 46

Xgrappled2 defined in line 44; used 1 times

- in line 46

Xsnagged2 defined in line 46; used 1 times

- in /usr/src/games/sail/dr_1.c line 53

abs defined in line 33; used 8 times

- in /usr/src/games/sail/misc.c line 13(6), 85-86(2)

capship defined in line 56; used 15 times

- in /usr/src/games/sail/dr_1.c line 23-25(2), 58, 320
- in /usr/src/games/sail/dr_2.c line 24
- in /usr/src/games/sail/dr_4.c line 21(2), 33(2)
- in /usr/src/games/sail/misc.c line 53, 59, 153
- in /usr/src/games/sail/pl_3.c line 198, 209
- in /usr/src/games/sail/pl_5.c line 150

cleanfoul defined in line 49; used 2 times

- in /usr/src/games/sail/dr_1.c line 30
- in /usr/src/games/sail/pl_3.c line 238

cleangrapple defined in line 48; used 2 times

- in /usr/src/games/sail/dr_4.c line 24
- in /usr/src/games/sail/pl_3.c line 211

cleansnag defined in line 50; used 1 times

- in /usr/src/games/sail/dr_2.c line 63

die defined in line 31; used 16 times

- in /usr/src/games/sail/assorted.c line 236
- in /usr/src/games/sail/dr_1.c line 29, 138-143(2), 353, 394-395(2), 419
- in /usr/src/games/sail/dr_2.c line 57
- in /usr/src/games/sail/dr_3.c line 103
- in /usr/src/games/sail/dr_4.c line 23, 33
- in /usr/src/games/sail/pl_3.c line 141, 197, 210, 237

foreachship defined in line 234; used 37 times

- in /usr/src/games/sail/dr_1.c line 20-24(2), 40, 52, 205, 212, 219, 240, 370
- in /usr/src/games/sail/dr_2.c line 20-23(2), 50, 62-66(2), 79
- in /usr/src/games/sail/dr_3.c line 24, 51, 74, 85-89(2), 135, 156, 167, 288, 299
- in /usr/src/games/sail/dr_main.c line 37
- in /usr/src/games/sail/misc.c line 54
- in /usr/src/games/sail/pl_2.c line 75
- in /usr/src/games/sail/pl_3.c line 189, 231
- in /usr/src/games/sail/pl_4.c line 60
- in /usr/src/games/sail/pl_5.c line 147
- in /usr/src/games/sail/pl_7.c line 227
- in /usr/src/games/sail/pl_main.c line 67, 98, 104, 114

fouled defined in line 37; used 2 times

- in line 38
- in /usr/src/games/sail/pl_7.c line 256

fouled2 defined in line 41; used 7 times

- in line 42-45(2)
- in /usr/src/games/sail/dr_1.c line 28
- in /usr/src/games/sail/dr_3.c line 100
- in /usr/src/games/sail/pl_3.c line 232-236(2)
- in /usr/src/games/sail/pl_5.c line 156

grappled defined in line 36; used 2 times

- in line 38
- in /usr/src/games/sail/pl_7.c line 257

grappled2 defined in line 40; used 7 times

- in line 42-44(2)
- in /usr/src/games/sail/dr_2.c line 30
- in /usr/src/games/sail/dr_4.c line 19
- in /usr/src/games/sail/pl_3.c line 192, 207
- in /usr/src/games/sail/pl_5.c line 156

min defined in line 34; used 6 times

- in /usr/src/games/sail/dr_2.c line 224, 234
- in /usr/src/games/sail/misc.c line 38(3)
- in /usr/src/games/sail/pl_5.c line 54

readyname defined in line 58; used 2 times

- in /usr/src/games/sail/pl_7.c line 277-278(2)

snagged defined in line 38; used 9 times

- in /usr/src/games/sail/assorted.c line 211-216(2)
- in /usr/src/games/sail/dr_1.c line 47
- in /usr/src/games/sail/dr_2.c line 61, 185
- in /usr/src/games/sail/dr_3.c line 31, 52, 219
- in /usr/src/games/sail/pl_5.c line 26

snagged2 defined in line 42; used 2 times

- in /usr/src/games/sail/assorted.c line 210
- in /usr/src/games/sail/dr_3.c line 98

sqr defined in line 32; never used
sterncol defined in line 54; used 1 times

- in /usr/src/games/sail/pl_7.c line 238

sterncolour defined in line 52; used 6 times

- in /usr/src/games/sail/pl_4.c line 63
- in /usr/src/games/sail/pl_7.c line 121, 141, 239, 398
- in /usr/src/games/sail/sync.c line 39

sternrow defined in line 53; used 1 times

- in /usr/src/games/sail/pl_7.c line 237

#### Usage of this include

externs.h used 12 times

- in /usr/src/games/sail/assorted.c line 11
- in /usr/src/games/sail/dr_4.c line 11
- in /usr/src/games/sail/dr_5.c line 11
- in /usr/src/games/sail/driver.h line 9
- in /usr/src/games/sail/game.c line 11
- in /usr/src/games/sail/globals.c line 11
- in /usr/src/games/sail/lo_main.c line 17
- in /usr/src/games/sail/main.c line 15
- in /usr/src/games/sail/misc.c line 11
- in /usr/src/games/sail/parties.c line 11
- in /usr/src/games/sail/player.h line 10
- in /usr/src/games/sail/sync.c line 11

Last modified: 1985-05-30 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 2826 |