1: # include <stdio.h>
   2: # include <assert.h>
   3: # include <sys/types.h>
   4: # include <sgtty.h>
   5: # include <signal.h>
   6: # include <math.h>
   7: 
   8: #define ESC '\033'
   9: #define CTRL(x) ('x' & 037)
  10: 
  11: struct tbuffer {
  12:     long t[4];
  13: } tbuffer;
  14: 
  15: char    *CL, *UP, *DO, *ND, *BS,
  16:     *HO, *CM,
  17:     *TA, *LL,
  18:     *KL, *KR, *KU, *KD,
  19:     *TI, *TE, *KS, *KE;
  20: int LINES, COLUMNS; /* physical screen size. */
  21: int lcnt, ccnt; /* user's idea of screen size */
  22: char    xBC, PC;
  23: int AM, BW;
  24: char    tbuf[1024], tcapbuf[128];
  25: char    *tgetstr(), *tgoto();
  26: int Klength;    /* length of KX strings */
  27: int chunk;      /* amount of money given at a time */
  28: #ifdef  debug
  29: #define cashvalue   (loot-penalty)/25
  30: #else
  31: #define cashvalue   chunk*(loot-penalty)/25
  32: #endif
  33: 
  34: struct point {
  35:     int col, line;
  36: };
  37: struct point cursor;
  38: struct sgttyb orig, new;
  39: #ifdef TIOCLGET
  40: struct ltchars olttyc, nlttyc;
  41: #endif
  42: struct point *point();

Defined variables

AM defined in line 23; used 2 times
BS defined in line 15; used 8 times
BW defined in line 23; used 2 times
CL defined in line 15; used 3 times
CM defined in line 16; used 6 times
COLUMNS defined in line 20; used 15 times
DO defined in line 15; used 4 times
HO defined in line 16; used 6 times
KD defined in line 18; used 3 times
KE defined in line 19; used 2 times
KL defined in line 18; used 4 times
KR defined in line 18; used 3 times
KS defined in line 19; used 4 times
KU defined in line 18; used 3 times
Klength defined in line 26; used 3 times
LINES defined in line 20; used 24 times
LL defined in line 17; used 5 times
ND defined in line 15; used 4 times
PC defined in line 22; used 2 times
TA defined in line 17; used 10 times
TE defined in line 19; used 2 times
TI defined in line 19; used 4 times
UP defined in line 15; used 3 times
ccnt defined in line 21; used 18 times
chunk defined in line 27; used 2 times
cursor defined in line 37; used 74 times
lcnt defined in line 21; used 20 times
new defined in line 38; used 5 times
nlttyc defined in line 40; used 4 times
olttyc defined in line 40; used 3 times
orig defined in line 38; used 7 times
tbuf defined in line 24; used 1 times
tbuffer defined in line 13; never used
tcapbuf defined in line 24; used 1 times
xBC defined in line 22; used 1 times

Defined struct's

point defined in line 34; used 74 times
tbuffer defined in line 11; never used

Defined macros

CTRL defined in line 9; used 7 times
ESC defined in line 8; never used
cashvalue defined in line 31; used 12 times

Usage of this include

Last modified: 1981-01-19
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1086
Valid CSS Valid XHTML 1.0 Strict