\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
+#include "src/lib/typdefst.h"\r
\r
-//0000 test type def wwww\r
-struct list {\r
- struct list __based(__self) *next;\r
- int value;\r
-};\r
+#define VERSION __DATE__ " " __TIME__\r
\r
/* Control codes for all keys on the keyboard */\r
//here temperarly\r
#define KEY_MENU (0x75)\r
*/\r
\r
-static dword far* clockdw= (dword 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
\r
#define nil ((void *)0)\r
-\r
+#ifdef __BORLANDC__\r
+#define _FCORELEFT 0x90000UL-16UL\r
+#endif\r
#ifdef __WATCOMC__\r
+#define _FCORELEFT 0x90000UL+16UL\r
+\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
typedef union REGPACK regs_t;\r
#endif\r
\r
-typedef enum {false,true} boolean;\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
- word frames_per_second;\r
- clock_t t;\r
- dword tiku;\r
- word far* clock;\r
- //handles for log files of the game gose here if wwww\r
- //int heaphandle;\r
-} global_game_variables_t;\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
-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
-extern void CA_CloseDebug (void);\r
-\r
#endif/*_LIBHEAD_H_*/\r