From 75f9886bf0429a7b0fca040dd54d217f85cd115b Mon Sep 17 00:00:00 2001 From: sparky4 Date: Wed, 1 Jul 2015 22:22:38 -0500 Subject: [PATCH] wwww modified: exmmtest.exe modified: src/lib/16_mm.c modified: src/lib/16_mm.h --- exmmtest.exe | Bin 39470 -> 39470 bytes src/lib/16_mm.c | 29 +++++++---------------------- src/lib/16_mm.h | 31 +------------------------------ 3 files changed, 8 insertions(+), 52 deletions(-) diff --git a/exmmtest.exe b/exmmtest.exe index 51657d3c8b2045afb8f0d612bce0ff73eaaca198..a4658f2ab1197e765dc5423e4ce34f717aa5dce9 100644 GIT binary patch delta 29 lcmZ3tg=yUurVZUujLe&RqUKsMUYe{mrGb%s^Xe(htN^;63-EMSVer) long extra; scan = last = mm->mmhead; @@ -528,7 +513,7 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi) { int i; dword length; - void far *start; + void huge *start; unsigned segstart,seglength,endfree; if(mm->mmstarted) @@ -565,7 +550,7 @@ void MM_Startup(mminfo_t *mm, mminfotype *mmi) //---- length=coreleft(); _nheapgrow(); length=_memavl(); - start = (void far *)(mm->nearheap = malloc(length)); + start = (void huge *)(mm->nearheap = malloc(length)); length -= 16-(FP_OFF(start)&15); length -= SAVENEARHEAP; diff --git a/src/lib/16_mm.h b/src/lib/16_mm.h index 1fb701a2..7ef05e23 100644 --- a/src/lib/16_mm.h +++ b/src/lib/16_mm.h @@ -90,10 +90,6 @@ typedef struct //========================================================================== -/*extern mminfotype mminfo; -extern memptr bufferseg; -extern boolean mmerror;*/ - extern void (* beforesort) (void); extern void (* aftersort) (void); extern void (* XMSaddr) (void); // far pointer to XMS driver @@ -120,7 +116,7 @@ typedef struct mmblockstruct unsigned start,length; unsigned attributes; memptr *useptr; // pointer to the segment start - struct mmblockstruct far *next; + struct mmblockstruct huge *next; } mmblocktype; @@ -137,11 +133,6 @@ typedef struct mmblocktype huge mmblocks[MAXBLOCKS],huge *mmhead,huge *mmfree,huge *mmrover,huge *mmnew; } mminfo_t; - -//#define GETNEWBLOCK {if(!(mmnew=mmfree))Quit("MM_GETNEWBLOCK: No free blocks!");mmfree=mmfree->next;} -//#define GETNEWBLOCK {if(!mmfree)MML_ClearBlock();mmnew=mmfree;mmfree=mmfree->next;} -//#define FREEBLOCK(x) {*x->useptr=NULL;x->next=mmfree;mmfree=x;} - /* ============================================================================= @@ -150,11 +141,6 @@ typedef struct ============================================================================= */ -/*static mminfotype mminfo; -static memptr bufferseg; - -static void (* beforesort) (void); -static void (* aftersort) (void);*/ /* ============================================================================= @@ -164,21 +150,6 @@ static void (* aftersort) (void);*/ ============================================================================= */ -/*static void huge *hugeheap; -static void far *farheap; -static void *nearheap; - -static mmblocktype far mmblocks[MAXBLOCKS] - ,far *mmhead,far *mmfree,far *mmrover,far *mmnew; - - -static unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle; -static unsigned int EMSVer; - -static void (* XMSaddr) (void); // far pointer to XMS driver - -static unsigned numUMBs,UMBbase[MAXUMBS];*/ - //========================================================================== boolean MML_CheckForEMS(void); -- 2.39.5