/* * Set MUD_LIB to the directory which contains the mud data. */ #if defined WIN32 #define MUD_LIB ".\\mudlib" #else #define MUD_LIB "./mudlib" #endif /* * This is the file which contains names of objects to be * loaded initially. Do not normally change this. */ #if defined WIN32 #define INIT_FILE "room\\init_file" #else #define INIT_FILE "room/init_file" #endif /* * This is the subdirectory where all wizards objects are defined. */ #if defined WIN32 #define PLAYER_DIR "players" #else #define PLAYER_DIR "players" #endif /* * This is the castle that a wiz gets a copy of. */ #if defined WIN32 #define DEFAULT_CASTLE "room\\def_castle.c" #else #define DEFAULT_CASTLE "room/def_castle.c" #endif /* * A command to run the C preprocessor on a C file (or really, an * object definition file). */ #if defined _MSC_VER #define PRE_COMPILE "cl /nologo /E /I.\\room /I.\\obj" #elif defined __BORLANDC__ #define PRE_COMPILE "cpp32 -P- -I.\\room -Ic.\\obj" #else #define PRE_COMPILE "gcc -E -I./room -I./obj" #endif /* * Max number of local variables in a function. */ #define MAX_LOCAL 20 /* * A command that lists files in a directory. * Note that we need the path since vpopen doesn't glob. */ #if defined WIN32 #define LIST_FILES "dir /W" #else #define LIST_FILES "/bin/ls -C -F" #endif /* Maximum number of evaluated nodes/loop. * If this is exceeded, current function is halted. * The worst case yet encountered is over 9000. */ #define MAX_COST (5 * 5000) /* * The following define is used when debuging the memory * allocation. */ /* #define free(x) xfree(x) */ /* * Objects are swapped out if they are not used. * Specify how many resets the object can stay non-referenced until * it is swapped out. * A value if '1' will make swap out the object at every reset. * A value of '0' will never swap out the object. * The count will be cleared by either call_other() or move_object(). */ #define NUM_RESET_TO_SWAP 0 /* * Where to swap out objects. This directory is not used if NUM_RESET_TO_SWAP * is 0. */ #if defined WIN32 #define SWAP_DIR ".\\" #else #define SWAP_DIR "/tmp" #endif /* * Which port to use on this host. The #ifndef is so that we can define * a different port with a -D option to the compiler. */ #ifndef PORTNUM #define PORTNUM 2000 #endif /* * Define this if we want to abort (crash) the program in case of some * flaky (but possibly non-fatal) conditions. */ /* #define DO_ABORT */