Mail Archives: djgpp/1996/10/20/08:31:05
> On Fri, 18 Oct 1996, Alexander V. Lukyanov wrote:
>
> > Are you serious? I don't think huge pointers can make life much easier
> > in BC, since NO LIBRARY FUNCTIONS can take such pointers,
>
> I don't think this is correct. A huge pointer is just a 32-bit pointer,
> so any function which expects a far pointer should work. It is true that
> if that function handles a buffer, you still cannot pass it a buffer or a
> data structure which is more than 64KB long, but that's all there is to
> it.
I meant quite that. Huge pointers was introduced to handle huge
structures, and since library functions can't handle them what's the
use of huge pointers? read,write,memcpy etc have to be rewritten with
huge pointers to allow normal using of huge arrays.
> > I once tried to port a my unix program to dos using BC and huge
> > pointers - it was a nightmare.
>
> Nightmare: yes; impossible: no.
It became possible after rewritting some library functions.
- Raw text -