Annotation of early-roguelike/rogue4/extern.h, Revision 1.1
1.1 ! rubenllo 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, use_savedir, 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, 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 FILE *score_file, *log_file;
! 50:
! 51: extern WINDOW *hw;
! 52:
! 53: /*
! 54: * Function types
! 55: */
! 56:
! 57: void tstp(), endit(int);
! 58:
! 59: long lseek();
! 60:
! 61: extern coord ch_ret;
! 62: extern shint countch;
! 63: extern shint direction;
! 64: extern shint newcount;
! 65: extern int between;
! 66: extern int num_checks;
! 67: extern char lvl_mons[27];
! 68: extern char wand_mons[27];
! 69: extern coord nh;
! 70: extern bool got_genocide;
! 71:
! 72: #if defined(__GLIBC__) || defined(__INTERIX)
! 73: /*
! 74: O_BINARY flag not provided in Interix/SFU or some versions of Linux.
! 75: It is the same as default behavior so we just zero define it here
! 76: to make source code compatible.
! 77: */
! 78: #define O_BINARY 0
! 79: #endif
! 80:
! 81: extern int md_erasechar(void);
! 82: extern FILE *md_fdopen(int fd, char *mode);
! 83: extern int md_fileno(FILE *fp);
! 84: extern char *md_getusername(int uid);
! 85: extern char *md_gethomedir();
! 86: extern int md_getuid(void);
! 87: extern void md_ignore_signals(void);
! 88: extern void md_init(void);
! 89: extern int md_killchar(void);
! 90: extern void md_normaluser(void);
! 91: extern int md_readchar(WINDOW *win);
! 92: extern int md_shellescape(void);
! 93: extern void md_sleep(int s);
! 94: extern int md_unlink(char *file);
! 95: extern int md_unlink_open_file(char *file, FILE *inf);
! 96: extern unsigned int md_random_seed(void);
CVSweb