]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/lib_head.h
wwww
[16.git] / src / lib / lib_head.h
index 560ea8adf4e4c8d9b4da77c152c50428b772387b..ca5d2de60f6919bb350d755b7c6a438538deda02 100644 (file)
@@ -4,7 +4,8 @@
 #include <stdio.h>
 #include <conio.h> // just for wait
 #include <time.h> // just for wait
-#include "src\lib\types.h"
+#include <stdlib.h>
+#include "src/lib/types.h"
 
 /* Control codes for all keys on the keyboard */
 //here temperarly
 #define KEY_MENU               (0x75)
 */
 
-//typedef unsigned char byte;
-//typedef unsigned int word;
-//typedef unsigned short syte;
+//#define      FARPTR(S, O)    MK_FP(S, O)\r
+\r
+//#define      inportb(P)      inp(P)\r
+//#define      outportb(P,V)   outp(P,V)\r
+//#define      outportw(P,V)   outpw(P,V)\r
+\r
+//#define      R_AX            w.ax\r
+//#define      R_BX            w.bx\r
+//#define      R_BP            w.bp\r
+//#define      R_ES            w.es\r
+\r
+/* WARNING: for 32-bit code, unused fields of regs_t\r
+must be zeroed before using this macro */\r
+//#define      trap(N,R)       intr(N,R)\r
+
+typedef union REGPACK  regs_t;
 
 void wait(clock_t wait);
+void* AllocateLargestFreeBlock(size_t* Size);
+size_t GetFreeSize(void);
+long int filesize(FILE *fp);
 
 /* THIS FUNCTION CONVERTS A POINTER TO AN INTEL LONG              */\r
 //int long ptr2long(char *p);