Source:NetHack 2.3e/extern.h

From NetHackWiki
Jump to navigation Jump to search

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

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

Screenshots and source code from Hack are used under the CWI license.

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