OSDN Git Service

16_ca need to be used more ok i am going to work on owwolf3d for the cache manager...
authorsparky4 <sparky4@cock.li>
Mon, 20 Feb 2017 14:58:28 +0000 (08:58 -0600)
committersparky4 <sparky4@cock.li>
Mon, 20 Feb 2017 14:58:28 +0000 (08:58 -0600)
src/lib/16_hc.c
src/lib/16_head.h
src/lib/16_map.c
src/lib/16_mm.c
src/lib/16_tdef.h
src/maptest.c

index d2ecdda..d08da3a 100755 (executable)
@@ -24,6 +24,7 @@
 */\r
 \r
 #include "src/lib/16_hc.h"\r
+#include <malloc.h>\r
 \r
 #ifdef __BORLANDC__\r
 void * LargestFreeBlock(size_t* Size)\r
@@ -301,7 +302,7 @@ size_t _basedcoreleft(void)
        if( segu == _NULLSEG ) {\r
                printf( "Unable to allocate based heap\n" );\r
                return 0;\r
-               \r
+\r
        }\r
        else\r
 \r
index 134def2..251d0b6 100755 (executable)
@@ -35,7 +35,6 @@
 #include <stdlib.h>\r
 #include <conio.h> // just for wait\r
 #include <time.h> // just for wait\r
-#include <malloc.h>\r
 #include <ctype.h>\r
 #include <fcntl.h>\r
 #include <io.h>\r
index 946c809..de168ac 100755 (executable)
@@ -21,6 +21,7 @@
  */\r
 \r
 #include "src/lib/16_map.h"\r
+#include <malloc.h>\r
 \r
 // Ideally, preprocess json during compilation and read serialized data\r
 \r
index b338e59..cd99d8c 100755 (executable)
@@ -48,6 +48,7 @@ Open Watcom port by sparky4
 */
 #include "src/lib/16_mm.h"
 #include "src/lib/16_ca.h"
+#include <malloc.h>
 #pragma hdrstop
 
 #pragma warn -pro
index cf5f56e..908dd60 100755 (executable)
@@ -527,7 +527,7 @@ typedef struct
        int                     audiohandle[4]; // handle to AUDIOT / AUDIO\r
 } ca_handle_t;\r
 \r
-typedef struct\r
+typedef struct //TODO: USE THIS!!!!\r
 {\r
        byte    ca_levelbit,ca_levelnum;\r
        ca_handle_t             file;           //files to open\r
index e8e2d53..9ed9e27 100755 (executable)
@@ -20,6 +20,7 @@
  *\r
  */\r
 #include "src/lib/16_map.h"\r
+#include <malloc.h>\r
 \r
 #define DUMP\r
 //#define DUMP_MAP\r