--- /dev/null
+Seg:0 Size:5212 Owner:0x76ff\r
+Seg:145c Size:256 Owner:0x6552\r
+Seg:155c Size:273 Owner:0x92aa\r
+Seg:1af9 Size:17 Owner:0x6532\r
+Seg:1cfa Size:49926 Owner:0x0\r
+Seg:e000 Size:4294909951 Owner:0x5bba\r
printf( "---------------- -------- -------- --------\n");
printf("coreleft = %lu\n", (dword)_coreleft());
printf("farcoreleft = %lu\n", (dword)_farcoreleft());
+printf("GetFreeSize = %lu\n", (dword)GetFreeSize());
+printf("GetNearFreeSize = %lu\n", (dword)GetNearFreeSize());
+printf("GetFarFreeSize = %lu\n", (dword)GetFarFreeSize());
printf("memavl = %lu\n", (dword)_memavl());
printf("stackavail = %u\n", stackavail());
}
//---- length=coreleft();
printf(" nearheap making!\n");
_nheapgrow();
- length=(dword)_coreleft();//(dword)_memmax();//(dword)GetFreeSize();
+ length=(dword)_memavl();//(dword)GetFreeSize();
start = (void huge *)(mm->nearheap = _nmalloc(length));
length -= 16-(FP_OFF(start)&15);
length -= SAVENEARHEAP;
//---- length=farcoreleft();
printf(" farheap making!\n");
_fheapgrow();
- length=(dword)_farcoreleft();//(dword)GetFarFreeSize();//0xffffUL*4UL;
+ length=(dword)GetFarFreeSize();//0xffffUL*4UL;
//start = mm->farheap = halloc(length, 1);
start = mm->farheap = _fmalloc(length);
length -= 16-(FP_OFF(start)&15);
//++++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"
+#define OUT_OF_MEM_MSG "MM_GetPtr: Out of memory!\nYou were short :%lu bytes\n"
#else
#define OUT_OF_MEM_MSG "\npee\n"
#endif