comparison xrogue/mach_dep.h @ 133:e6179860cb76

Import XRogue 8.0 from the Roguelike Restoration Project (r1490)
author John "Elwin" Edwards
date Tue, 21 Apr 2015 08:55:20 -0400
parents
children 0d151573bdb0
comparison
equal deleted inserted replaced
124:d10fc4a065ac 133:e6179860cb76
1 /*
2 mach_dep.h - machine dependents
3
4 XRogue: Expeditions into the Dungeons of Doom
5 Copyright (C) 1991 Robert Pietkivitch
6 All rights reserved.
7
8 Based on "Advanced Rogue"
9 Copyright (C) 1984, 1985 Michael Morgan, Ken Dalka and AT&T
10 All rights reserved.
11
12 Based on "Rogue: Exploring the Dungeons of Doom"
13 Copyright (C) 1980, 1981 Michael Toy, Ken Arnold and Glenn Wichman
14 All rights reserved.
15
16 See the file LICENSE.TXT for full copyright and licensing information.
17 */
18
19 /*
20 * define/undefine that the wizard commands exist
21 */
22
23 #if defined(_WIN32)
24 #define fstat _fstat
25 #define stat _stat
26 #define open _open
27 #define popen _popen
28 #define pclose _pclose
29 #if !defined(__MINGW32__)
30 #define PATH_MAX _MAX_PATH
31 #endif
32 #endif
33
34 #define NOOP(x) (x += 0)
35
36 extern char *md_getusername();
37 extern char *md_gethomedir();
38 extern char *md_getroguedir();
39 extern void md_flushinp();
40 extern char *md_getshell();
41 extern char *md_gethostname();
42 extern void md_dobinaryio();
43 extern char *md_getpass();
44 extern void md_init();
45 extern char *xcrypt();
46
47 /*
48 * define if you want to limit scores to one per class per userid
49 */
50
51 /* #define LIMITSCORE 1*/
52 #undef LIMITSCORE
53
54 /*
55 * fudge factor allowed in time for saved game
56 */
57
58 #define FUDGE_TIME 200