# 2.11BSD#431 - /usr/src/games/warp/config.h

##### Macros

    BERKNAMES         X
    CHARSPRINTF       X
    FCNTL             X
    FTIMER            X
    GETHOSTNAME       X
    HAVETERMLIB       X
    HOSTNAME          X
    IOCTL             X
    MYDOMAIN          X
    M_VOID            X
    NORMSIG           X
    PASSNAMES         X
    PORTABLE          X
    PREFSHELL         X
    PRIVLIB           X
    RANDBITS          X
    ROOTID            X
    Reg1              X
    Reg10             X
    Reg11             X
    Reg12             X
    Reg13             X
    Reg14             X
    Reg15             X
    Reg16             X
    Reg2              X
    Reg3              X
    Reg4              X
    Reg5              X
    Reg6              X
    Reg7              X
    Reg8              X
    Reg9              X
    SIGNEDCHAR        X
    VOIDFLAGS         X
    VOIDUSED          X
    void              X

       1: /* config.h
       2:  * This file was produced by running the config.h.SH script, which
       3:  * gets its values from config.sh, which is generally produced by
       4:  * running Configure.
       5:  *
       6:  * Feel free to modify any of this as the need arises.  Note, however,
       7:  * that running config.h.SH again will wipe out any changes you've made.
       8:  * For a more permanent change edit config.sh and rerun config.h.SH.
       9:  */
      10:
      11:
      12: /* EUNICE:
      13:  *	This symbol, if defined, indicates that the program is being compiled
      14:  *	under the EUNICE package under VMS.  The program will need to handle
      15:  *	things like files that don't go away the first time you unlink them,
      16:  *	due to version numbering.  It will also need to compensate for lack
      17:  *	of a respectable link() command.
      18:  */
      19: /* VMX:
      20:  *	This symbol, if defined, indicates that the program is running under
      21:  *	VMS.  It is currently only set in conjunction with the EUNICE symbol.
      22:  */
      23: #/*undef	EUNICE		/**/
      24: #/*undef	VMS		/**/
      25:
      26: /* CHARSPRINTF:
      27:  *	This symbol is defined if this system declares "char *sprintf()" in
      28:  *	stdio.h.  The trend seems to be to declare it as "int sprintf()".  It
      29:  *	is up to the package author to declare sprintf correctly based on the
      30:  *	symbol.
      31:  */
      32: #define CHARSPRINTF     /**/
      33:
      34: /* FCNTL:
      35:  *	This symbol, if defined, indicates to the C program that it should
      36:  *	include fcntl.h.
      37:  */
      38: #define FCNTL       /**/
      39:
      40: /* FTIMER:
      41:  *	This symbol, if defined, indicates that the ftime() routine exists.
      42:  */
      43: #define FTIMER      /**/
      44:
      45: /* GETHOSTNAME:
      46:  *	This symbol, if defined, indicates that the C program may use the
      47:  *	gethostname() routine to derive the host name.  See also DOUNAME
      48:  *	and PHOSTNAME.
      49:  */
      50: /* DOUNAME:
      51:  *	This symbol, if defined, indicates that the C program may use the
      52:  *	uname() routine to derive the host name.  See also GETHOSTNAME and
      53:  *	PHOSTNAME.
      54:  */
      55: /* PHOSTNAME:
      56:  *	This symbol, if defined, indicates that the C program may use the
      57:  *	contents of PHOSTNAME as a command to feed to the popen() routine
      58:  *	to derive the host name.  See also GETHOSTNAME and DOUNAME.
      59:  */
      60: #define GETHOSTNAME /**/
      61: #/*undef	DOUNAME		/**/
      62: #/*undef	PHOSTNAME "hostname"	/**/
      63:
      64: /* GETPWENT:
      65:  *	This symbol, if defined, indicates that the getpwent() routine
      66:  *	should be used instead of the getpw() routine.
      67:  */
      68: #/*undef	GETPWENT	/**/
      69:
      70: /* HAVETERMLIB:
      71:  *	This symbol, when defined, indicates that termlib-style routines
      72:  *	are available.  There is nothing to include.
      73:  */
      74: #define HAVETERMLIB /**/
      75:
      76: /* index:
      77:  *	This preprocessor symbol is defined, along with rindex, if the system
      78:  *	uses the strchr and strrchr routines instead.
      79:  */
      80: /* rindex:
      81:  *	This preprocessor symbol is defined, along with index, if the system
      82:  *	uses the strchr and strrchr routines instead.
      83:  */
      84: #/*undef	index strchr	/* cultural */
      85: #/*undef	rindex strrchr	/*  differences? */
      86:
      87: /* IOCTL:
      88:  *	This symbol, if defined, indicates that sys/ioctl.h exists and should
      89:  *	be included.
      90:  */
      91: #define IOCTL       /**/
      92:
      93: /* NORMSIG:
      94:  *	This symbol, if defined, indicates that normal signal handling routines
      95:  *	should be used, as opposed to the ones in 4.1bsd (sigset, etc.).
      96:  */
      97: #define NORMSIG     /**/
      98:
      99: /* PORTABLE:
     100:  *	This symbol, if defined, indicates to the C program that it should
     101:  *	not assume that it is running on the machine it was compiled on.
     102:  *	The program should be prepared to look up the host name, translate
     103:  *	generic filenames, use PATH, etc.
     104:  */
     105: #define PORTABLE    /**/
     106:
     107: /* RDCHK:
     108:  *	This symbol, if defined, indicates that the rdchk routine is available
     109:  *	to find out if there is input pending on an IO channel.  Generally
     110:  *	the routine is used only if FIONREAD and O_NDELAY aren't available.
     111:  */
     112: #/*undef	RDCHK		/**/
     113:
     114: /* SCOREFULL:
     115:  *	This symbol, if defined, indicates that any scoreboard kept by the
     116:  *	program should be kept on the basis of the user's full name as opposed
     117:  *	to the user's login name.  If the user can change his full name he
     118:  *	can enter multiple scores if this is defined.
     119:  */
     120: #/*undef	SCOREFULL	/**/
     121:
     122: /* SIGNEDCHAR:
     123:  *	This symbol, if defined, indicates that characters are a signed type.
     124:  *	If not defined, things declared as signed characters (and that make
     125:  *	use of negative values) should probably be declared as shorts instead.
     126:  */
     127: #define SIGNEDCHAR  /**/
     128:
     129: /* TERMIO:
     130:  *	This symbol, if defined, indicates that the program should include
     131:  *	termio.h rather than sgtty.h.  There are also differences in the
     132:  *	ioctl() calls that depend on the value of this symbol.
     133:  */
     134: #/*undef	TERMIO		/**/
     135:
     136: /* USENDIR:
     137:  *	This symbol, if defined, indicates that the program should compile
     138:  *	the ndir.c code provided with the package.
     139:  */
     140: /* LIBNDIR:
     141:  *	This symbol, if defined, indicates that the program should include the
     142:  *	system's version of ndir.h, rather than the one with this package.
     143:  */
     144: #/*undef	USENDIR		/**/
     145: #/*undef	LIBNDIR		/**/
     146:
     147: /* WHOAMI:
     148:  *	This symbol, if defined, indicates that the program may include
     149:  *	whoami.h.
     150:  */
     151: #/*undef	WHOAMI		/**/
     152:
     153: /* HOSTNAME:
     154:  *	This symbol contains name of the host the program is going to run on.
     155:  *	The domain is not kept with hostname, but must be gotten from MYDOMAIN.
     156:  *	The dot comes with MYDOMAIN, and need not be supplied by the program.
     157:  *	If gethostname() or uname() exist, HOSTNAME may be ignored.
     158:  */
     159: /* MYDOMAIN:
     160:  *	This symbol contains the domain of the host the program is going to
     161:  *	run on.  The domain must be appended to HOSTNAME to form a complete
     162:  *	host name.  The dot comes with MYDOMAIN, and need not be supplied by
     163:  *	the program.  If the host name is derived from PHOSTNAME, the domain
     164:  *	may or may not already be there, and the program should check.
     165:  */
     166: #define HOSTNAME "kazoo"        /**/
     167: #define MYDOMAIN ".uucp"        /**/
     168:
     169: /* PASSNAMES:
     170:  *	This symbol, if defined, indicates that full names are stored in
     171:  *	the /etc/passwd file.
     172:  */
     173: /* BERKNAMES:
     174:  *	This symbol, if defined, indicates that full names are stored in
     175:  *	the /etc/passwd file in Berkeley format (name first thing, everything
     176:  *	up to first comma, with & replaced by capitalized login id, yuck).
     177:  */
     178: /* USGNAMES:
     179:  *	This symbol, if defined, indicates that full names are stored in
     180:  *	the /etc/passwd file in USG format (everything after - and before ( is
     181:  *	the name).
     182:  */
     183: #define PASSNAMES /*  (undef to take name from ~/.fullname) */
     184: #define BERKNAMES /* (that is, ":name,stuff:") */
     185: #/*undef	USGNAMES  /* (that is, ":stuff-name(stuff):") */
     186:
     187: /* PREFSHELL:
     188:  *	This symbol contains the full name of the preferred user shell on this
     189:  *	system.  Usual values are /bin/csh, /bin/ksh, /bin/sh.
     190:  */
     191: #define PREFSHELL "/bin/csh"        /**/
     192:
     193: /* RANDBITS:
     194:  *	This symbol contains the number of bits of random number the rand()
     195:  *	function produces.  Usual values are 15, 16, and 31.
     196:  */
     197: #define RANDBITS 15     /**/
     198:
     199: /* Reg1:
     200:  *	This symbol, along with Reg2, Reg3, etc. is either the word "register"
     201:  *	or null, depending on whether the C compiler pays attention to this
     202:  *	many register declarations.  The intent is that you don't have to
     203:  *	order your register declarations in the order of importance, so you
     204:  *	can freely declare register variables in sub-blocks of code and as
     205:  *	function parameters.  Do not use Reg<n> more than once per routine.
     206:  */
     207:
     208: #define Reg1 register       /**/
     209: #define Reg2 register       /**/
     210: #define Reg3 register       /**/
     211: #define Reg4        /**/
     212: #define Reg5        /**/
     213: #define Reg6        /**/
     214: #define Reg7        /**/
     215: #define Reg8        /**/
     216: #define Reg9        /**/
     217: #define Reg10       /**/
     218: #define Reg11       /**/
     219: #define Reg12       /**/
     220: #define Reg13       /**/
     221: #define Reg14       /**/
     222: #define Reg15       /**/
     223: #define Reg16       /**/
     224:
     225: /* ROOTID:
     226:  *	This symbol contains the uid of root, normally 0.
     227:  */
     228: #define ROOTID 0        /**/
     229:
     230: /* VOIDFLAGS:
     231:  *	This symbol indicates how much support of the void type is given by this
     232:  *	compiler.  What various bits mean:
     233:  *
     234:  *	    1 = supports declaration of void
     235:  *	    2 = supports arrays of pointers to functions returning void
     236:  *	    4 = supports comparisons between pointers to void functions and
     237:  *		    addresses of void functions
     238:  *
     239:  *	The package designer should define VOIDUSED to indicate the requirements
     240:  *	of the package.  This can be done either by #defining VOIDUSED before
     241:  *	including config.h, or by defining defvoidused in Myinit.U.
     242:  */
     243: #ifndef VOIDUSED
     244: #define VOIDUSED 7
     245: #endif
     246: #define VOIDFLAGS 7
     247: #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
     248: #define void int        /* is void to be avoided? */
     249: #define M_VOID      /* Xenix strikes again */
     250: #endif
     251:
     252: /* warp private library, may use ~ expansion, %x and %l */
     253: #define PRIVLIB "/usr/games/lib/warp"       /**/

#### Defined macros

BERKNAMES defined in line 184; used 1 times

- in /usr/src/games/warp/intrp.c line 619

CHARSPRINTF defined in line 32; used 1 times

- in /usr/src/games/warp/warp.h line 329

FCNTL defined in line 38; used 1 times

- in /usr/src/games/warp/warp.h line 108

FTIMER defined in line 43; used 1 times

- in /usr/src/games/warp/warp.h line 118

GETHOSTNAME defined in line 60; used 2 times

- in /usr/src/games/warp/intrp.c line 31, 101

HAVETERMLIB defined in line 74; used 1 times

- in /usr/src/games/warp/term.c line 141

HOSTNAME defined in line 166; used 7 times

- in /usr/src/games/warp/intrp.c line 33, 39-48(3), 126-131(3)

IOCTL defined in line 91; used 1 times

- in /usr/src/games/warp/warp.h line 104

MYDOMAIN defined in line 167; used 1 times

- in /usr/src/games/warp/intrp.c line 132

M_VOID defined in line 249; never used
NORMSIG defined in line 97; used 1 times

- in /usr/src/games/warp/warp.h line 212

PASSNAMES defined in line 183; used 2 times

- in /usr/src/games/warp/intrp.c line 615
- in /usr/src/games/warp/warp.h line 300

PORTABLE defined in line 105; never used
PREFSHELL defined in line 191; used 1 times

- in /usr/src/games/warp/warp.h line 282

PRIVLIB defined in line 253; used 2 times

- in /usr/src/games/warp/warp.h line 51-52(2)

RANDBITS defined in line 197; used 4 times

- in /usr/src/games/warp/util.c line 80-83(2)
- in /usr/src/games/warp/warp.c line 145, 152

ROOTID defined in line 228; used 2 times

- in /usr/src/games/warp/util.c line 185
- in /usr/src/games/warp/warp.h line 208

Reg1 defined in line 208; used 44 times

- in /usr/src/games/warp/bang.c line 36, 61, 112
- in /usr/src/games/warp/init.c line 39
- in /usr/src/games/warp/intrp.c line 149, 286, 352
- in /usr/src/games/warp/move.c line 40, 71, 610, 640, 662
- in /usr/src/games/warp/object.c line 28, 64, 76
- in /usr/src/games/warp/play.c line 36
- in /usr/src/games/warp/score.c line 34, 252, 518, 535
- in /usr/src/games/warp/sm.c line 16
- in /usr/src/games/warp/term.c line 119, 327, 377, 432, 532, 565, 640, 730, 807
- in /usr/src/games/warp/them.c line 46, 336
- in /usr/src/games/warp/us.c line 40, 166
- in /usr/src/games/warp/util.c line 39, 118, 133, 155, 262, 311
- in /usr/src/games/warp/weapon.c line 37, 107, 446, 611

Reg10 defined in line 217; used 1 times

- in /usr/src/games/warp/weapon.c line 115

Reg11 defined in line 218; never used
Reg12 defined in line 219; never used
Reg13 defined in line 220; never used
Reg14 defined in line 221; never used
Reg15 defined in line 222; never used
Reg16 defined in line 223; never used
Reg2 defined in line 209; used 35 times

- in /usr/src/games/warp/bang.c line 37, 62, 113
- in /usr/src/games/warp/init.c line 40
- in /usr/src/games/warp/intrp.c line 153, 353
- in /usr/src/games/warp/move.c line 41, 72, 611, 641, 663
- in /usr/src/games/warp/play.c line 37
- in /usr/src/games/warp/score.c line 35, 536
- in /usr/src/games/warp/sm.c line 17
- in /usr/src/games/warp/term.c line 328, 378, 433, 533, 641, 731, 809
- in /usr/src/games/warp/them.c line 47, 337
- in /usr/src/games/warp/us.c line 41, 167
- in /usr/src/games/warp/util.c line 40, 117, 132, 156, 263
- in /usr/src/games/warp/weapon.c line 41, 108, 447, 612

Reg3 defined in line 210; used 28 times

- in /usr/src/games/warp/bang.c line 39, 80, 114
- in /usr/src/games/warp/init.c line 41
- in /usr/src/games/warp/intrp.c line 354
- in /usr/src/games/warp/move.c line 42, 73, 614, 644, 666
- in /usr/src/games/warp/play.c line 38
- in /usr/src/games/warp/score.c line 537
- in /usr/src/games/warp/sm.c line 46
- in /usr/src/games/warp/term.c line 329, 434, 534, 727
- in /usr/src/games/warp/them.c line 48, 342
- in /usr/src/games/warp/us.c line 168
- in /usr/src/games/warp/util.c line 41, 120, 134, 154
- in /usr/src/games/warp/weapon.c line 38, 109, 448, 613

Reg4 defined in line 211; used 19 times

- in /usr/src/games/warp/bang.c line 115
- in /usr/src/games/warp/init.c line 42
- in /usr/src/games/warp/intrp.c line 357
- in /usr/src/games/warp/move.c line 38, 74, 612, 642, 664
- in /usr/src/games/warp/play.c line 39
- in /usr/src/games/warp/term.c line 330, 435
- in /usr/src/games/warp/them.c line 49, 343
- in /usr/src/games/warp/us.c line 350, 374
- in /usr/src/games/warp/weapon.c line 39, 110, 449, 607

Reg5 defined in line 212; used 14 times

- in /usr/src/games/warp/bang.c line 117
- in /usr/src/games/warp/init.c line 43
- in /usr/src/games/warp/intrp.c line 358
- in /usr/src/games/warp/move.c line 209, 615, 645, 667
- in /usr/src/games/warp/play.c line 40
- in /usr/src/games/warp/term.c line 331
- in /usr/src/games/warp/them.c line 50, 344
- in /usr/src/games/warp/weapon.c line 111, 443, 608

Reg6 defined in line 213; used 11 times

- in /usr/src/games/warp/bang.c line 118
- in /usr/src/games/warp/init.c line 44
- in /usr/src/games/warp/move.c line 240, 616, 646, 668
- in /usr/src/games/warp/them.c line 51, 339
- in /usr/src/games/warp/weapon.c line 112, 444, 615

Reg7 defined in line 214; used 9 times

- in /usr/src/games/warp/bang.c line 116
- in /usr/src/games/warp/init.c line 47, 518
- in /usr/src/games/warp/move.c line 207, 617
- in /usr/src/games/warp/them.c line 340
- in /usr/src/games/warp/weapon.c line 105, 442, 606

Reg8 defined in line 215; used 2 times

- in /usr/src/games/warp/move.c line 208
- in /usr/src/games/warp/weapon.c line 113

Reg9 defined in line 216; used 1 times

- in /usr/src/games/warp/weapon.c line 114

SIGNEDCHAR defined in line 127; never used
VOIDFLAGS defined in line 246; used 1 times

- in line 247

VOIDUSED defined in line 244; used 3 times

- in line 243-247(3)

void defined in line 248; never used

#### Usage of this include

config.h used 2 times

- in /usr/src/games/warp/sm.c line 11
- in /usr/src/games/warp/warp.h line 20

Last modified: 1987-08-29 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 842 |