]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_head.h
ok zcroll compiles and i should clean it w
[16.git] / src / lib / 16_head.h
index 2d080d520a501aa07803c37c4baf746cc10729f6..540093aa2f20f997a48a1e7d35ead1bab95acb8f 100755 (executable)
@@ -28,8 +28,8 @@
 #error i8088 only\r
 #endif\r
 \r
-#ifndef _LIBHEAD_H_\r
-#define _LIBHEAD_H_\r
+#ifndef __16_HEAD_H__\r
+#define __16_HEAD_H__\r
 #include <dos.h>\r
 #include <stdio.h>\r
 #include <stdlib.h>\r
 #include <mem.h>\r
 #include <string.h>\r
 #include <limits.h>\r
+#include <errno.h>\r
+#include <process.h>\r
 #ifdef __WATCOMC__\r
 #include <i86.h>\r
 #include <unistd.h>\r
 #include <alloca.h>\r
 #include <stdint.h> //16_vrs.h\r
 #endif\r
+#ifdef __BORLANDC__\r
+#include <values.h>\r
+#include <dir.h>\r
+#define TILEWH 16\r
+#endif\r
 #include "src/lib/nyan/kitten.h"\r
 #include "src/lib/types.h"\r
 #include "src/lib/typdefst.h"\r
 #define KEY_MENU               (0x75)\r
 */\r
 \r
-static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
+//static word far* clockw= (word far*) 0x046C; /* 18.2hz clock */\r
 extern int                     profilehandle,debughandle;      //make it into game global\r
 \r
-#define __DEBUG__\r
-#define __DEBUG_PM__\r
-//#define __DEBUG_MM__\r
+//#define OLD16_VL\r
 \r
 #define        nil     ((void *)0)\r
 #ifdef __BORLANDC__\r
@@ -162,7 +167,7 @@ extern      int                     profilehandle,debughandle;      //make it into game global
 #endif\r
 #ifdef __WATCOMC__\r
 #define _FCORELEFT 0x90000UL+16UL\r
-static union REGS CPURegs;\r
+/*static union REGS CPURegs;\r
 \r
 #define _AX CPURegs.x.ax\r
 #define _BX CPURegs.x.bx\r
@@ -180,7 +185,7 @@ static union REGS CPURegs;
 #define _DH CPURegs.h.dh\r
 #define _DL CPURegs.h.dl\r
 \r
-#define geninterrupt(n) int86(n,&CPURegs,&CPURegs);\r
+#define geninterrupt(n) int86(n,&CPURegs,&CPURegs);*/\r
 #define peekb(segm,ofs) (*(byte far*)MK_FP((segm),(ofs)))\r
 #define peekw(segm,ofs) (*(word far*)MK_FP((segm),(ofs)))\r
 #define pokeb(segm,ofs,value) (peekb((segm),(ofs)) = (byte)(value))\r
@@ -192,8 +197,6 @@ typedef union REGPACK       regs_t;
 #define INPUT_STATUS_1         0x03da\r
 \r
 /* local function */\r
-void wait(clock_t wait);\r
-\r
 long int filesize(FILE *fp);\r
 void printmeminfoline(byte *strc, const byte *pee, size_t h_total, size_t h_used, size_t h_free);\r
 int US_CheckParm(char *parm,char **strings);\r
@@ -202,4 +205,4 @@ void Quit (char *error);
 #endif\r
 byte dirchar(byte in);\r
 \r
-#endif/*_LIBHEAD_H_*/\r
+#endif/*__16_HEAD_H__*/\r