X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_head.h;h=e6e590b425a787167dc33155ae5f1e8bb3fb794a;hb=d89b4d35446e64b0b8fd7c8fdcff32bcd0845e32;hp=84a4a9eba1de7a53fba390ab1786bf4fa3d44577;hpb=3b3f3b4bc62245426ea4dec22cbfaa7cfbf13645;p=16.git diff --git a/src/lib/16_head.h b/src/lib/16_head.h index 84a4a9eb..e6e590b4 100644 --- a/src/lib/16_head.h +++ b/src/lib/16_head.h @@ -30,27 +30,31 @@ #ifndef _LIBHEAD_H_ #define _LIBHEAD_H_ -#include #include #include +#include #include // just for wait #include // just for wait -#include #include #include -#include #include +#include #include #include +#include +#ifdef __WATCOMC__ +#include +#include #include +#endif #include "src/lib/nyan/kitten.h" #include "src/lib/types.h" //0000 test type def wwww -struct list { +/*struct list { struct list __based(__self) *next; int value; -}; +};*/ /* Control codes for all keys on the keyboard */ //here temperarly @@ -151,17 +155,23 @@ extern int profilehandle,debughandle; //make it into game global #define nil ((void *)0) +#ifdef __WATCOMC__ #define peekb(segm,ofs) (*(byte far*)MK_FP((segm),(ofs))) #define peekw(segm,ofs) (*(word far*)MK_FP((segm),(ofs))) #define pokeb(segm,ofs,value) (peekb((segm),(ofs)) = (byte)(value)) #define pokew(segm,ofs,value) (peekw((segm),(ofs)) = (word)(value)) typedef union REGPACK regs_t; -//typedef struct SREGS sregs_t; -//sregs_t sregs; +#endif + typedef enum {false,true} boolean; -//I hope this is correct! + +#ifdef __WATCOMC__ typedef void __based(__self) * memptr; +#endif +#ifdef __BORLANDC__ +typedef void _seg * memptr; +#endif typedef struct { int old_mode; //old video mode before game! @@ -178,8 +188,6 @@ void wait(clock_t wait); long int filesize(FILE *fp); void printmeminfoline(byte *strc, const byte *pee, size_t h_total, size_t h_used, size_t h_free); -void print_normal_entry(char *text, dword total, dword used, dword free, byte *str); -void convert(const char *format, dword num); int US_CheckParm(char *parm,char **strings); extern void CA_OpenDebug (void);