Mail Archives: djgpp/1998/08/10/13:59:53
On 10 Aug 98 at 18:50, Eli Zaretskii wrote:
> Assuming the flags required by MIDAS do NOT contradict yours, you can
> call the library function `__djgpp_nearptr_enable' (e.g. at the beginning
> of `main') instead of setting the _CRT0_FLAG_NEARPTR flag. As for the
> _CRT0_FLAG_NONMOVE_SBRK flag, you can set it at run time, inside `main',
> like this:
>
> int main ()
> {
> ....
> _crt0_startup_flags |= _CRT0_FLAG_NONMOVE_SBRK;
> ....
But that won't do anything, because the nonmove sbrk flag is zero.
I think you need to turn off the Unixy sbrk, then turn on non-move
sbrk; this will work whichever of the flags is zero or nonzero:
_crt0_startup_flags &= ~_CRT0_FLAG_UNIX_SBRK;
_crt0_startup_flags |= _CRT0_FLAG_NONMOVE_SBRK;
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -