From 50c584a74800b279d48a83fd7d276056f0b87054 Mon Sep 17 00:00:00 2001 From: jwalz Date: Sat, 5 Jan 2002 21:05:48 +0000 Subject: [PATCH] *** empty log message *** --- include/ntconf.h | 135 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 include/ntconf.h diff --git a/include/ntconf.h b/include/ntconf.h new file mode 100644 index 000000000..31ca6a8eb --- /dev/null +++ b/include/ntconf.h @@ -0,0 +1,135 @@ +/* SCCS Id: @(#)ntconf.h 3.3 96/10/14 */ +/* Copyright (c) NetHack PC Development Team 1993, 1994. */ +/* NetHack may be freely redistributed. See license for details. */ + +#ifndef NTCONF_H +#define NTCONF_H + +/* #define SHELL /* nt use of pcsys routines caused a hang */ + +#define RANDOM /* have Berkeley random(3) */ + +#define TEXTCOLOR /* Color text */ + +#define PATHLEN 64 /* maximum pathlength */ +#define FILENAME 80 /* maximum filename length (conservative) */ +#define EXEPATH /* Allow .exe location to be used as HACKDIR */ +#define TRADITIONAL_GLYPHMAP /* Store glyph mappings at level change time */ +#ifdef WIN32CON +#define LAN_FEATURES /* Include code for lan-aware features. */ +#endif + +#define PC_LOCKING /* Prevent overwrites of aborted or in-progress games */ + /* without first receiving confirmation. */ +#define NOCWD_ASSUMPTIONS /* Allow paths to be specified for HACKDIR, + LEVELDIR, SAVEDIR, BONESDIR, DATADIR, + SCOREDIR, LOCKDIR, and CONFIGDIR */ + +/* + * ----------------------------------------------------------------- + * The remaining code shouldn't need modification. + * ----------------------------------------------------------------- + */ +/* #define SHORT_FILENAMES /* All NT filesystems support long names now */ + +#define MICRO /* always define this! */ +#define NO_TERMS +#define ASCIIGRAPH + +/* The following is needed for prototypes of certain functions */ +#if defined(_MSC_VER) +#include /* Provides prototypes of exit(), spawn() */ +#endif + +#include /* Provides prototypes of strncmpi(), etc. */ +#ifdef STRNCMPI +#define strncmpi(a,b,c) strnicmp(a,b,c) +#endif + +#include +#include +#ifdef __BORLANDC__ +#undef randomize +#undef random +#endif + +#define NO_SIGNAL +#define index strchr +#define rindex strrchr +#include +#define USE_STDARG +#ifdef RANDOM +/* Use the high quality random number routines. */ +#define Rand() random() +#else +#define Rand() rand() +#endif + +#define FCMASK 0660 /* file creation mask */ +#define regularize nt_regularize +#define HLOCK "NHPERM" + +#ifndef M +#define M(c) ((char) (0x80 | (c))) +/* #define M(c) ((c) - 128) */ +#endif + +#ifndef C +#define C(c) (0x1f & (c)) +#endif + +#if defined(DLB) +#define FILENAME_CMP stricmp /* case insensitive */ +#endif + +#ifdef MICRO +# ifndef MICRO_H +#include "micro.h" /* contains necessary externs for [os_name].c */ +# endif +#endif + +#include +#ifndef __BORLANDC__ +#include +#include +#else +int _RTLENTRY _EXPFUNC _chdrive(int __drive); +int _RTLENTRYF _EXPFUNC32 chdir( const char _FAR *__path ); +char _FAR * _RTLENTRY _EXPFUNC getcwd( char _FAR *__buf, int __buflen ); +int _RTLENTRY _EXPFUNC write (int __handle, const void _FAR *__buf, unsigned __len); +int _RTLENTRY _EXPFUNC creat (const char _FAR *__path, int __amode); +int _RTLENTRY _EXPFUNC close (int __handle); +int _RTLENTRY _EXPFUNC open (const char _FAR *__path, int __access,... /*unsigned mode*/); +#endif +#include +#undef kbhit /* Use our special NT kbhit */ +#define kbhit (*nt_kbhit) + +#ifdef LAN_FEATURES +#define MAX_LAN_USERNAME 20 +#define LAN_RO_PLAYGROUND /* not implemented in 3.3.0 */ +#define LAN_SHARED_BONES /* not implemented in 3.3.0 */ +#include "nhlan.h" +#endif + +#ifndef alloca +#define ALLOCA_HACK /* used in util/panic.c */ +#endif + +#ifndef REDO +#undef Getchar +#define Getchar nhgetch +#endif + +#ifdef _MSC_VER +#if 0 +#pragma warning(disable:4018) /* signed/unsigned mismatch */ +#pragma warning(disable:4305) /* init, conv from 'const int' to 'char' */ +#endif +#pragma warning(disable:4761) /* integral size mismatch in arg; conv supp*/ +#ifdef YYPREFIX +#pragma warning(disable:4102) /* unreferenced label */ +#endif +#endif + +#endif /* NTCONF_H */