#include <malloc.h>
#include "src/lib/16_head.h"
#include "src/lib/16_hc.h"
+#include "src/lib/16_lib.h"
//#include "src/lib/modex16.h"
//++++mh #include "src/lib/16_in.h"
#define BUFFERSIZE 0x1000 // miscelanious, allways available buffer
-#define MAXBLOCKS 1024
+//moved to typdefst
+//#define MAXBLOCKS 1024
//==========================================================================
-typedef struct
+//moved to typdefst
+/*typedef struct
{
dword nearheap,farheap,EMSmem,XMSmem,mainmem;
-} mminfotype;
+} mminfotype;*/
//==========================================================================
#define PURGEMASK 0xfffc
#define BASEATTRIBUTES 0 // unlocked, non purgable
-#define MAXUMBS 12
+//moved to typedefst
+//#define MAXUMBS 12
#define MAPPAGES 4//mm->EMSpagesmapped
-typedef struct mmblockstruct
+//moved to typdefst
+/*typedef struct mmblockstruct
{
word start,length;
//word start; dword length;
//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;
+} mminfo_t;*/
/*
=============================================================================
void MM_SetPurge(memptr *baseptr, int purge, mminfo_t *mm);
void MM_SetLock(memptr *baseptr, boolean locked, mminfo_t *mm);
void MM_SortMem(mminfo_t *mm);
-void MM_ShowMemory(global_game_variables_t *gvar,/*page_t *page, */mminfo_t *mm);
+void MM_ShowMemory(global_game_variables_t *gvar);//,/*page_t *page, */mminfo_t *mm);
void MM_DumpData(mminfo_t *mm);
dword MM_UnusedMemory(mminfo_t *mm);
dword MM_TotalFree(mminfo_t *mm);
-void MM_Report(/*page_t *page, */mminfo_t *mm, mminfotype *mmi);
+void MM_Report_(global_game_variables_t *gvar);
static void MM_EMSerr(byte *stri, byte err);
void MM_BombOnError(boolean bomb, mminfo_t *mm);
//void MM_GetNewBlock(mminfo_t *mm);