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

Defined variables

AM defined in line 30; used 2 times
BS defined in line 22; used 8 times
BW defined in line 30; used 2 times
CL defined in line 22; used 3 times
CM defined in line 23; used 6 times
COLUMNS defined in line 27; used 15 times
DO defined in line 22; used 4 times
HO defined in line 23; used 6 times
KD defined in line 25; used 3 times
KE defined in line 26; used 2 times
KL defined in line 25; used 4 times
KR defined in line 25; used 3 times
KS defined in line 26; used 4 times
KU defined in line 25; used 3 times
Klength defined in line 33; used 3 times
LINES defined in line 27; used 24 times
LL defined in line 24; used 5 times
ND defined in line 22; used 4 times
PC defined in line 29; used 2 times
TA defined in line 24; used 10 times
TE defined in line 26; used 2 times
TI defined in line 26; used 4 times
UP defined in line 22; used 3 times
ccnt defined in line 28; used 18 times
chunk defined in line 34; used 2 times
cursor defined in line 44; used 74 times
lcnt defined in line 28; used 20 times
new defined in line 45; used 5 times
nlttyc defined in line 47; used 4 times
olttyc defined in line 47; used 3 times
orig defined in line 45; used 7 times
tbuf defined in line 31; used 1 times
tbuffer defined in line 20; never used
tcapbuf defined in line 31; used 1 times
xBC defined in line 29; used 1 times

Defined struct's

point defined in line 41; used 74 times
tbuffer defined in line 18; never used

Defined macros

ESC defined in line 16; never used
cashvalue defined in line 38; used 12 times

Usage of this include

Last modified: 1985-05-30
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1313
Valid CSS Valid XHTML 1.0 Strict