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: 
   7: #ifndef lint
   8: static char sccsid[] = "@(#)init.c	5.1 (Berkeley) 5/29/85";
   9: #endif not lint
  10: 
  11: #include <sgtty.h>
  12: 
  13: /*
  14:  * variable initialization.
  15:  */
  16: 
  17:                 /* name of executable object programs */
  18: char    EXEC[] = "/usr/games/backgammon";
  19: char    TEACH[] = "/usr/games/teachgammon";
  20: 
  21: int pnum    = 2;        /* color of player:
  22: 					-1 = white
  23: 					 1 = red
  24: 					 0 = both
  25: 					 2 = not yet init'ed */
  26: int acnt    = 0;        /* length of args */
  27: int aflag   = 1;        /* flag to ask for rules or instructions */
  28: int bflag   = 0;        /* flag for automatic board printing */
  29: int cflag   = 0;        /* case conversion flag */
  30: int hflag   = 1;        /* flag for cleaning screen */
  31: int mflag   = 0;        /* backgammon flag */
  32: int raflag  = 0;        /* 'roll again' flag for recovered game */
  33: int rflag   = 0;        /* recovered game flag */
  34: int tflag   = 0;        /* cursor addressing flag */
  35: int iroll   = 0;        /* special flag for inputting rolls */
  36: int rfl = 0;
  37: 
  38: char    *color[] = {"White","Red","white","red"};

Defined variables

EXEC defined in line 18; never used
TEACH defined in line 19; never used
acnt defined in line 26; never used
aflag defined in line 27; never used
bflag defined in line 28; never used
cflag defined in line 29; never used
color defined in line 38; never used
hflag defined in line 30; never used
iroll defined in line 35; never used
mflag defined in line 31; never used
pnum defined in line 21; never used
raflag defined in line 32; never used
rfl defined in line 36; never used
rflag defined in line 33; never used
sccsid defined in line 8; never used
tflag defined in line 34; never used
Last modified: 1985-05-29
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 1065
Valid CSS Valid XHTML 1.0 Strict