comparison rogue4/extern.h @ 12:9535a08ddc39

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