xref: /original-bsd/old/rogue/machdep.h (revision 4c01ad61)
1 /*
2  * Defines for things used in find.c
3  *
4  * $Revision: 1.4 $, $Date: 85/03/31 19:20:07 $
5  */
6 
7 /*
8  * Don't change the constants, since they are used for sizes in many
9  * places in the program.
10  */
11 
12 # define MAXSTR		80	/* maximum length of strings */
13 # define MAXLINES	32	/* maximum number of screen lines used */
14 # define MAXCOLS	80	/* maximum number of screen columns used */
15 
16 # define RN		(((Seed = Seed * 11109 + 13849) >> 16) & 0xffff)
17 # ifdef CTRL
18 #	undef	CTRL
19 # endif	CTRL
20 # define	CTRL(c)		('c' & 037)
21 
22 # undef	unctrl		/* Sigh..., why me??? */
23 
24 /*
25  * Now all the global variables
26  */
27 
28 extern bool	Got_ltc, In_shell, Wizard;
29 
30 extern char	Fruit[], Orig_dsusp, Prbuf[], Whoami[];
31 
32 extern int	Fd;
33 
34 extern unsigned int	Numscores;
35 
36 # ifdef TIOCGLTC
37 extern struct ltchars	Ltc;
38 # endif TIOCGLTC
39 
40 /*
41  * Function types
42  */
43 
44 char	*brk(), *charge_str(), *choose_str(), *ctime(), *getenv(),
45 	*inv_name(), *killname(), *malloc(), *nothing(), *nullstr(),
46 	*num(), *pick_color(), *ring_num(), *sbrk(), *set_mname(),
47 	*sprintf(), *strcat(), *strcpy(), *type_name(), *unctrl(),
48 	*vowelstr();
49 
50 int	auto_save(), come_down(), doctor(), endit(), land(), leave(),
51 	nohaste(), quit(), rollwand(), runners(), sight(), stomach(),
52 	swander(), tstp(), turn_see(), unconfuse(), unsee(), visuals();
53 
54 # ifdef CHECKTIME
55 int	checkout();
56 # endif	CHECKTIME
57 
58 long	lseek(), time();
59