HB> I hear ya :) I recently had to find this info out so it was still fresh
in
HB> mind. I knew about _memavl() in Watcom, so I scanned the .H files in
Borlan
HB> directory and came across that little tidbit.
HB>
::> I'll find out in the help files which platforms accept these calls.
HB>
HB> hehe, good luck. I find it's often easier to just go directly to the
header
HB> file. I've found all sorts of info in them in comments that wasn't deemed
HB> "necessary" to put in the help files!
HB>
HB> It can be real frustrating :)
HB>
HB> # Herbert Bushong harchon@centuryinter.net [TEAM OS/2]
#if defined(__DPMI32__)
unsigned _RTLENTRY coreleft(void);
#endif
****
Uh, what? I hate these damn derectives. Does dpmi32 = win32?
#if !defined(__FLAT__)
#if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__)
/* tions currently allowed only in small data models */
#define _nmalloc(size) malloc(size)
#define _nfree(block) free(block)
#define _nrealloc(block,size) realloc(block,size)
#define _ncalloc(num,size) calloc(num,size)
#define _nheapmin() 0
#if !defined(_Windows)
#define _memavl() coreleft()
#endif
#endif /* small data models */
Ok - I guess _memavl() is still coreleft() in _Windows. But which
windows target 16/32?
But for tiny,small,medium only. So what about huge? I'm lost.
Damn standards! at least java has a standard way of getting
free memory.
--- GEcho 1.00
---------------
* Origin: Digital OnLine Magazine! - (409)838-8237 (1:3811/350)
|