#define _LIBHEAD_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 <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
-#include "src/lib/nyan/kitten.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 __based(__self) *next;\r
- int value;\r
-};\r
-\r
/* Control codes for all keys on the keyboard */\r
//here temperarly\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
#ifdef __BORLANDC__\r
typedef void _seg * memptr;\r
#endif\r
+\r
+typedef struct\r
+{\r
+// int showmemhandle;\r
+ int profilehandle,debughandle;\r
+ int heaphandle;\r
+} handle_t;\r
+\r
typedef struct\r
{\r
int old_mode; //old video mode before game!\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
+ handle_t handle; //handles for file logging\r
} global_game_variables_t;\r
\r
/* local function */\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