X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_mm.h;h=36825c90838dbe31216926279350faea64a9eb72;hb=c99bda70e2b46d085d3ba7aa951117bcd737c208;hp=b68eea9c472ba0055b8484bff1f45c5e78dddbb3;hpb=b23775e80d164c1277b528886f536e4950885459;p=16.git diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index b68eea9c..36825c90 100755 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -18,19 +18,18 @@ // ID_MM.H -#ifndef __16_EXMM__ -#define __16_EXMM__ +#ifndef __16_MM__ +#define __16_MM__ #include -#include #include "src/lib/16_head.h" #include "src/lib/16_hc.h" #include "src/lib/16_tail.h" //++++mh #include "src/lib/16_in.h" + #ifdef __DEBUG__ // 1 == Debug/Dev ; 0 == Production/final #define OUT_OF_MEM_MSG "MM_GetPtr: Out of memory!\nYou were short :%lu bytes\n" -extern boolean dbg_debugpm; #else #define OUT_OF_MEM_MSG "\npee\n" #endif @@ -41,7 +40,7 @@ extern boolean dbg_debugpm; #define FREEBLOCK(x) {*x->useptr=NULL;x->next=gvar->mm.mmfree;gvar->mm.mmfree=x;} #define SAVENEARHEAP 0x200 // space to leave in data segment -#define SAVEFARHEAP 0//x400 // space to leave in far heap +#define SAVEFARHEAP 0x400 // space to leave in far heap #define BUFFERSIZE 0x1000 // miscelanious, allways available buffer @@ -137,7 +136,6 @@ extern word XMSVer; word blob; //for data larger than 64k unsigned attributes; memptr *useptr; // pointer to the segment start - //huge struct mmblockstruct huge *next; struct mmblockstruct far *next; } mmblocktype; @@ -146,7 +144,6 @@ typedef struct { memptr bufferseg; boolean mmstarted, bombonerror, mmerror; - //huge void huge *farheap; void far *farheap; #ifdef __BORLANDC__ void *nearheap; @@ -159,7 +156,6 @@ typedef struct unsigned int EMSVer; word numUMBs,UMBbase[MAXUMBS]; //dword numUMBs,UMBbase[MAXUMBS]; - //huge mmblocktype huge mmblocks[MAXBLOCKS],huge *mmhead,huge *mmfree,huge *mmrover,huge *mmnew; mmblocktype far mmblocks[MAXBLOCKS],far *mmhead,far *mmfree,far *mmrover,far *mmnew; } mminfo_t;*/