#endif
-#define SAVENEARHEAP 0x400 // space to leave in data segment
+#define SAVENEARHEAP 0x200 // space to leave in data segment
#define SAVEFARHEAP 0 // space to leave in far heap
#define BUFFERSIZE 0x1000 // miscelanious, allways available buffer
typedef struct
{
- dword nearheap,farheap/*,hugeheap*/,EMSmem,XMSmem,mainmem;
+ dword nearheap,farheap,EMSmem,XMSmem,mainmem;
} mminfotype;
//==========================================================================
typedef struct mmblockstruct
{
- unsigned start,length;
+ word start,length;
//dword start,length;
+ //word start;
+ //dword length;
unsigned attributes;
memptr *useptr; // pointer to the segment start
struct mmblockstruct huge *next;
{
memptr bufferseg;
boolean mmstarted, bombonerror, mmerror;
- //void huge *hugeheap;
void huge *farheap;
void *nearheap;
unsigned totalEMSpages,freeEMSpages,EMSpageframe,EMSpagesmapped,EMShandle;
unsigned int EMSVer;
- unsigned numUMBs,UMBbase[MAXUMBS];
+ word numUMBs,UMBbase[MAXUMBS];
//dword numUMBs,UMBbase[MAXUMBS];
mmblocktype huge mmblocks[MAXBLOCKS],huge *mmhead,huge *mmfree,huge *mmrover,huge *mmnew;
} mminfo_t;
boolean MML_CheckForXMS(mminfo_t *mm);
void MML_SetupXMS(mminfo_t *mm, mminfotype *mmi);
void MML_ShutdownXMS(mminfo_t *mm);
-void MML_UseSpace(unsigned segstart, dword seglength, mminfo_t *mm);
+void MML_UseSpace(/*d*/word segstart, dword seglength, mminfo_t *mm);
void MML_ClearBlock(mminfo_t *mm);
void MM_Startup(mminfo_t *mm, mminfotype *mmi);