#include <windows.h>
#include <string.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | tm |
Defines | |
#define | WIN32_LEAN_AND_MEAN |
#define | RANDOM |
#define | TEXTCOLOR |
#define | EXEPATH |
#define | TRADITIONAL_GLYPHMAP |
#define | PC_LOCKING |
#define | SELF_RECOVER |
#define | NOTSTDC |
#define | USER_SOUNDS |
#define | AUTOPICKUP_EXCEPTIONS |
#define | NOCWD_ASSUMPTIONS |
#define | NO_TERMS |
#define | ASCIIGRAPH |
#define | OPTIONS_USED "ttyoptions" |
#define | OPTIONS_FILE OPTIONS_USED |
#define | PORT_HELP "porthelp" |
#define | RUNTIME_PORT_ID |
#define | PATHLEN BUFSZ |
#define | FILENAME BUFSZ |
#define | NO_SIGNAL |
#define | index strchr |
#define | rindex strrchr |
#define | USE_STDARG |
#define | Rand() rand() |
#define | FCMASK 0660 |
#define | regularize nt_regularize |
#define | HLOCK "NHPERM" |
#define | M(c) ((char) (0x80 | (c))) |
#define | C(c) (0x1f & (c)) |
#define | ABORT C('a') |
#define | getuid() 1 |
#define | getlogin() ((char *)0) |
#define | ALLOCA_HACK |
#define | Getchar nhgetch |
#define | NHSTR_BUFSIZE 255 |
#define | NH_W2A(w, a, cb) (strncpy((a), (w), (cb))) |
#define | NH_A2W(a, w, cb) (strncpy((w), (a), (cb))) |
#define | interject_assistance(_1, _2, _3, _4) |
#define | interject(_1) |
#define | kbhit mswin_have_input |
#define | getenv(a) ((char*)NULL) |
#define | perror(a) |
#define | freopen(a, b, c) fopen(a, b) |
#define | _TIME_T_DEFINED |
#define | _TM_DEFINED |
#define | BUFSIZ 255 |
#define | rewind(stream) (void)fseek( stream, 0L, SEEK_SET ) |
#define | DeleteFile(a) unlink(a) |
#define | abort() (void)TerminateProcess(GetCurrentProcess(), 0) |
#define | strdup _strdup |
#define | S_IWRITE GENERIC_WRITE |
#define | S_IREAD GENERIC_READ |
Typedefs | |
typedef __int64 | time_t |
typedef long | off_t |
Functions | |
void | NDECL (win32_abort) |
int | FDECL (set_win32_option,(const char *, const char *)) |
int | mswin_have_input () |
int | isatty (int) |
struct tm *__cdecl | localtime (const time_t *) |
time_t __cdecl | time (time_t *) |
int __cdecl | close (int) |
int __cdecl | creat (const char *, int) |
int __cdecl | eof (int) |
long __cdecl | lseek (int, long, int) |
int __cdecl | open (const char *, int,...) |
int __cdecl | read (int, void *, unsigned int) |
int __cdecl | unlink (const char *) |
int __cdecl | write (int, const void *, unsigned int) |
int __cdecl | rename (const char *, const char *) |
int __cdecl | access (const char *, int) |
int | chdir (const char *dirname) |
char * | getcwd (char *buffer, int maxlen) |
Variables | |
const char * | alllevels |
const char * | allbones |
char | hackdir [] |
#define _TIME_T_DEFINED |
#define _TM_DEFINED |
#define ABORT C('a') |
#define abort | ( | ) | (void)TerminateProcess(GetCurrentProcess(), 0) |
#define ALLOCA_HACK |
#define ASCIIGRAPH |
#define AUTOPICKUP_EXCEPTIONS |
Referenced by autopick(), and dotogglepickup().
#define BUFSIZ 255 |
Referenced by fopen_datafile().
#define C | ( | c ) | (0x1f & (c)) |
#define DeleteFile | ( | a ) | unlink(a) |
Referenced by lock_file(), and unlock_file().
#define EXEPATH |
#define FCMASK 0660 |
#define FILENAME BUFSZ |
#define freopen | ( | a, | |
b, | |||
c | |||
) | fopen(a, b) |
#define Getchar nhgetch |
#define getenv | ( | a ) | ((char*)NULL) |
Referenced by initoptions(), makemaz(), and nh_getenv().
#define getlogin | ( | ) | ((char *)0) |
#define getuid | ( | ) | 1 |
#define HLOCK "NHPERM" |
#define index strchr |
#define interject | ( | _1 ) |
#define interject_assistance | ( | _1, | |
_2, | |||
_3, | |||
_4 | |||
) |
Referenced by init_dungeons().
#define kbhit mswin_have_input |
#define M | ( | c ) | ((char) (0x80 | (c))) |
#define NH_A2W | ( | a, | |
w, | |||
cb | |||
) | (strncpy((w), (a), (cb))) |
#define NH_W2A | ( | w, | |
a, | |||
cb | |||
) | (strncpy((a), (w), (cb))) |
#define NHSTR_BUFSIZE 255 |
#define NO_SIGNAL |
#define NO_TERMS |
#define NOCWD_ASSUMPTIONS |
#define NOTSTDC |
#define OPTIONS_FILE OPTIONS_USED |
#define OPTIONS_USED "ttyoptions" |
#define PATHLEN BUFSZ |
#define PC_LOCKING |
#define perror | ( | a ) |
Referenced by lock_file().
#define PORT_HELP "porthelp" |
#define Rand | ( | ) | rand() |
#define RANDOM |
#define regularize nt_regularize |
#define rewind | ( | stream ) | (void)fseek( stream, 0L, SEEK_SET ) |
Referenced by tt_oname().
#define rindex strrchr |
#define RUNTIME_PORT_ID |
#define S_IREAD GENERIC_READ |
Referenced by check_recordfile().
#define S_IWRITE GENERIC_WRITE |
Referenced by check_recordfile(), and lock_file().
#define SELF_RECOVER |
#define strdup _strdup |
Referenced by parse_config_line(), spo_level_sounds(), spo_levregion(), spo_monster(), spo_object(), and spo_var_init().
#define TEXTCOLOR |
#define TRADITIONAL_GLYPHMAP |
#define USE_STDARG |
#define USER_SOUNDS |
#define WIN32_LEAN_AND_MEAN |
typedef long off_t |
typedef __int64 time_t |
int __cdecl access | ( | const char * | , |
int | |||
) |
int chdir | ( | const char * | dirname ) |
int __cdecl close | ( | int | ) |
Referenced by bclose(), check_recordfile(), currentlevel_rewrite(), dorecover(), dosave0(), getbones(), goto_level(), mread(), restlevelfile(), restore_saved_game(), savebones(), and unlock_file().
int __cdecl creat | ( | const char * | , |
int | |||
) |
Referenced by create_bonesfile(), create_levelfile(), and create_savefile().
int __cdecl eof | ( | int | ) |
int FDECL | ( | set_win32_option | , |
(const char *, const char *) | |||
) |
char* getcwd | ( | char * | buffer, |
int | maxlen | ||
) |
int isatty | ( | int | ) |
Referenced by get_formatted_time(), getlt(), and yyyymmdd().
long __cdecl lseek | ( | int | , |
long | , | ||
int | |||
) |
int mswin_have_input | ( | ) |
void NDECL | ( | win32_abort | ) |
int __cdecl open | ( | const char * | , |
int | , | ||
... | |||
) |
Referenced by check_recordfile(), create_bonesfile(), create_levelfile(), create_savefile(), lock_file(), open_bonesfile(), open_levelfile(), and open_savefile().
int __cdecl read | ( | int | , |
void * | , | ||
unsigned | int | ||
) |
int __cdecl rename | ( | const char * | , |
const char * | |||
) |
Referenced by current_epoch(), done(), dorecover(), newgame(), setrandom(), and u_init().
int __cdecl unlink | ( | const char * | ) |
Referenced by commit_bonesfile(), delete_bonesfile(), delete_levelfile(), delete_savefile(), unlock_file(), and validate_prefix_locations().
int __cdecl write | ( | int | , |
const void * | , | ||
unsigned | int | ||
) |
const char * allbones |
const char* alllevels |
char hackdir[] |