-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathextern.h
91 lines (73 loc) · 2.37 KB
/
extern.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
* Defines for things used in mach_dep.c
*
* @(#)extern.h 4.3 (Berkeley) 4/2/82
*
* Rogue: Exploring the Dungeons of Doom
* Copyright (C) 1980, 1981, 1982 Michael Toy, Ken Arnold and Glenn Wichman
* All rights reserved.
*
* See the file LICENSE.TXT for full copyright and licensing information.
*/
/*
* Don't change the constants, since they are used for sizes in many
* places in the program.
*/
#define MAXSTR 80 /* maximum length of strings */
#define MAXLINES 32 /* maximum number of screen lines used */
#define MAXCOLS 80 /* maximum number of screen columns used */
#define RN (((seed = seed*11109+13849) >> 16) & 0xffff)
/*
* Now all the global variables
*/
extern bool after, amulet, askme, door_stop, fight_flush,
firstmove, in_shell, jump, noscore, p_know[], passgo,
playing, r_know[], running, s_know[], save_msg,
slow_invent, terse, wizard, ws_know[];
extern const char *p_colors[], *r_stones[], *w_names[],
*a_names[], *ws_made[];
extern char _flags[], _level[], file_name[], fruit[],
home[], huh[], outbuf[], *p_guess[],
prbuf[], *r_guess[], *release, runch,
*s_guess[], *s_names[], take, whoami[],
*ws_guess[], *ws_type[];
extern int a_chances[], a_class[], count, dnum, food_left,
fung_hit, fd, group, hungry_state, inpack, lastscore,
level, max_level, mpos, no_command, no_food, no_move,
ntraps, purse, quiet, total;
extern long seed;
extern WINDOW *hw;
/*
* Function types
*/
char *charge_str(), *ctime(), *getenv(), *inv_name(),
*killname(), *nothing(), *num(), *ring_num(),
*tr_name(),
*unctrol(), *vowelstr();
void leave(int), quit(int), tstp(), auto_save(int), endit(int);
int doctor(), nohaste(),
rollwand(), runners(), sight(), stomach(), swander(),
turn_see(), unconfuse(), unsee();
void checkout();
long lseek();
extern coord ch_ret;
extern shint countch;
extern shint direction;
extern shint newcount;
extern int between;
extern int num_checks;
extern char lvl_mons[27];
extern char wand_mons[27];
extern coord nh;
extern bool got_genocide;
#if defined(__GLIBC__) || defined(__INTERIX)
/*
O_BINARY flag not provided in Interix/SFU or some versions of Linux.
It is the same as default behavior so we just zero define it here
to make source code compatible.
*/
#define O_BINARY 0
#endif
extern FILE *md_fdopen(int fd, char *mode);
extern char *md_getusername(int uid);
extern char *md_gethomedir();