X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2F16_mm.h;h=2db7556144c0530e9463c8606a289e1c4df9e368;hb=221553c7aa69dddd3f2ed960062080c60fcacf58;hp=4bb9f69367258f3b6cc931c809858d968c9c7994;hpb=31377c25387fcc208b2efb0b89a5cefbcab947f3;p=16.git diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 4bb9f693..2db75561 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -35,9 +35,9 @@ #endif //#define GETNEWBLOCK {if(!(mmnew=mmfree))Quit("MM_GETNEWBLOCK: No free blocks!") ;mmfree=mmfree->next;} -#define GETNEWBLOCK {if(!mm->mmfree)MML_ClearBlock(mm);mm->mmnew=mm->mmfree;mm->mmfree=mm->mmfree->next;mm->endid++;} +#define GETNEWBLOCK {if(!mm->mmfree)MML_ClearBlock(mm);mm->mmnew=mm->mmfree;mm->mmfree=mm->mmfree->next;} -#define FREEBLOCK(x) {*x->useptr=NULL;x->next=mm->mmfree;mm->mmfree=x;mm->endid--;} +#define FREEBLOCK(x) {*x->useptr=NULL;x->next=mm->mmfree;mm->mmfree=x;} #define AARED "\x1b[41;31m" #define AABLUE "\x1b[44;34m" @@ -131,7 +131,7 @@ typedef struct mmblockstruct { //word start,length; word start; dword length; - word blob; //fore data larger than 64k + word blob; //for data larger than 64k unsigned attributes; memptr *useptr; // pointer to the segment start struct mmblockstruct huge *next; @@ -153,7 +153,6 @@ typedef struct unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle; unsigned int EMSVer; word numUMBs,UMBbase[MAXUMBS]; - word endid; //end of list //dword numUMBs,UMBbase[MAXUMBS]; mmblocktype huge mmblocks[MAXBLOCKS],huge *mmhead,huge *mmfree,huge *mmrover,huge *mmnew; } mminfo_t;