#include <sys/stat.h>\r
#include <mem.h>\r
#include <string.h>\r
+#include <limits.h>\r
#ifdef __WATCOMC__\r
#include <i86.h>\r
#include <unistd.h>\r
extern int profilehandle,debughandle; //make it into game global\r
\r
#define __DEBUG__\r
+#define __DEBUG_PM__\r
\r
#define nil ((void *)0)\r
#ifdef __BORLANDC__\r
#endif\r
#ifdef __WATCOMC__\r
#define _FCORELEFT 0x90000UL+16UL\r
-extern union REGS CPURegs;\r
+static union REGS CPURegs;\r
\r
#define _AX CPURegs.x.ax\r
#define _BX CPURegs.x.bx\r
#define _CX CPURegs.x.cx\r
#define _DX CPURegs.x.dx\r
\r
+#define _SI CPURegs.x.si\r
+\r
#define _AH CPURegs.h.ah\r
#define _AL CPURegs.h.al\r
#define _BH CPURegs.h.bh\r
#ifdef __BORLANDC__\r
void Quit (char *error);\r
#endif\r
+void XMS_CALL(byte v, global_game_variables_t *gvar);\r
byte dirchar(byte in);\r
\r
#endif/*_LIBHEAD_H_*/\r