\r
#ifndef _LIBHEAD_H_\r
#define _LIBHEAD_H_\r
-#include <i86.h>\r
#include <dos.h>\r
#include <stdio.h>\r
+#include <stdlib.h>\r
#include <conio.h> // just for wait\r
#include <time.h> // just for wait\r
-#include <stdlib.h>\r
#include <malloc.h>\r
#include <ctype.h>\r
-#include <unistd.h>\r
#include <fcntl.h>\r
+#include <io.h>\r
#include <sys/stat.h>\r
#include <mem.h>\r
+#include <string.h>\r
+#ifdef __WATCOMC__\r
+#include <i86.h>\r
+#include <unistd.h>\r
#include <alloca.h>\r
+#endif\r
#include "src/lib/nyan/kitten.h"\r
#include "src/lib/types.h"\r
\r
//0000 test type def wwww\r
-struct list {\r
+/*struct list {\r
struct list __based(__self) *next;\r
int value;\r
-};\r
+};*/\r
\r
/* Control codes for all keys on the keyboard */\r
//here temperarly\r
\r
#define nil ((void *)0)\r
\r
+#ifdef __WATCOMC__\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
#define pokew(segm,ofs,value) (peekw((segm),(ofs)) = (word)(value))\r
\r
typedef union REGPACK regs_t;\r
-//typedef struct SREGS sregs_t;\r
-//sregs_t sregs;\r
+#endif\r
+\r
typedef enum {false,true} boolean;\r
-//I hope this is correct!\r
+\r
+#ifdef __WATCOMC__\r
typedef void __based(__self) * memptr;\r
+#endif\r
+#ifdef __BORLANDC__\r
+typedef void _seg * memptr;\r
+#endif\r
typedef struct\r
{\r
int old_mode; //old video mode before game!\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
-void print_normal_entry(char *text, dword total, dword used, dword free, byte *str);\r
-void convert(const char *format, dword num);\r
int US_CheckParm(char *parm,char **strings);\r
\r
extern void CA_OpenDebug (void);\r