Mail Archives: djgpp-workers/1998/04/20/21:27:02
Nate Eldredge wrote:
>
> Unfortunately, due to the wonderful and inspired structure of C
> preprocessing, you can't. Something like this:
>
> #define coreleft #error Die, Borland luser!
>
> would just expand into something like this:
>
> bytes_free = #error Die, Borland luser!();
How about:
#define coreleft \
#error Die, Borland luser!
Would that not work?
> But, according to Borland's docs, as far as I can see, `coreleft' is only
> documented as telling how much memory is not in use. It does not guarantee
> that one can actually allocate that much. Therefore, since its intended use
> is only as a statistic, I don't see an actual problem with just returning
> the meaningless statistics given by the DPMI functions.
Okay, that's fine with me. I don't see how it can hurt anything, except
that users will come whining instead that they can't allocate as much
memory as coreleft() claims they can.
--
---------------------------------------------------------------------
| John M. Aldrich | "A committee is a life form with six |
| aka Fighteer I | or more legs and no brain." |
| mailto:fighteer AT cs DOT com | |
| http://www.cs.com/fighteer | - Lazarus Long |
---------------------------------------------------------------------
- Raw text -