::> HB> file. I've found all sorts of info in them in comments that wasn't
ee
::> HB> "necessary" to put in the help files!
::> HB> It can be real frustrating :)
::> #if defined(__DPMI32__)
::> unsigned _RTLENTRY coreleft(void);
::> #endif
::> Uh, what? I hate these damn derectives. Does dpmi32 = win32?
No, means 32bit Dos Protected Mode Interface (probably with a DOS Extender).
::> #if !defined(__FLAT__)
::> #if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__)
::> #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?
Neither. __FLAT__ is defined for 32bit compiles (Protected Mode DOS, Win32)
If it's not defined, your compiling for DOS (S/C/T/M/L/H) or Win16.
If you are compiling for a small data model __TINY__, __SMALL__, or
_MEDIUM__
will be defined and the section will be compiled in.
If _Windows is NOT defined, then _memavl() will be defined as coreleft().
::> But for tiny,small,medium only. So what about huge? I'm lost.
Not available.
::> Damn standards! at least java has a standard way of getting
::> free memory.
I don't believe getting free memory is in the C standards. Too system
dependent.
# Herbert Bushong harchon@centuryinter.net [TEAM OS/2]
- Blackbeard's BBS Intelec: 239:600/0
+ Fido: 1:19/19 http://www.intelec.com/software/
---
RM 1.31 2508 Valley DOS: Like, gag-me-with-a-spoon command, for sure!
---------------
* Origin: Blackbeard's BBS - Ville Platte, LA - 318-468-3385 (1:19/19)
|