Source:NetHack 2.2a/extern.h

Below is the full text to extern.h from the source code of NetHack 2.2a. To link to a particular line, write [[NetHack 2.2a/extern.h#line123 ]], for example.

Warning! This is the source code from an old release. For the latest release, see Source code

1.   /*	SCCS Id: @(#)extern.h	2.1	87/10/19 2.   /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ 3.     4.    #include "config.h"  5. 6.   #ifndef MSDOS 7.   extern char *sprintf; 8.   #endif 9.    10.   extern long *alloc; 11.   12.   extern xchar xdnstair, ydnstair, xupstair, yupstair; /* stairs up and down. */ 13.    14.   extern xchar dlevel; 15.   16.   #ifdef SPELLS 17.  #include "spell.h"  18. extern	struct spell spl_book[]; 19.  #endif 20.   21.   extern int occtime; 22.  extern char *occtxt;		/* defined when occupation != NULL */ 23.   24.   #ifdef REDO 25.  extern int in_doagain; 26.  #endif 27.   28.   extern char *HI, *HE;		/* set up in termcap.c */ 29.  #ifdef MSDOSCOLOR 30.  extern char *HI_MON, *HI_OBJ;	/* set up in termcap.c */ 31.  #endif 32.   33.   #include "obj.h"  34. extern struct obj *invent, *uwep, *uarm, *uarm2, *uarmh, *uarms, *uarmg, 35.  	*uleft, *uright, *fcobj; 36.  extern struct obj *uchain;	/* defined iff PUNISHED */ 37.  extern struct obj *uball;	/* defined if PUNISHED */ 38.  struct obj *o_at, *getobj, *sobj_at; 39.   40.   extern char *traps[]; 41.  extern char *monnam, *Monnam, *amonnam, *Amonnam, 42.  	*doname, *aobjnam; 43.  extern char readchar; 44.  extern char vowels[]; 45.   46.   #include "you.h"  47. 48.  extern struct you u;  49. 50.  extern xchar curx,cury;	/* cursor location on screen */ 51.   52.   extern xchar seehx,seelx,seehy,seely; /* where to see*/ 53.  extern char *save_cm,*killer; 54.   55.   extern xchar dlevel, maxdlevel; /* dungeon level */ 56.   57.   extern long moves; 58.   59.   extern int multi; 60.   61.   extern char lock[];