Mail Archives: djgpp/1996/03/16/14:21:58
In article <4i45mo$b4k AT dub-news-svc-6 DOT compuserve DOT com>,
<76003 DOT 3544 AT compuserve DOT com> wrote:
>While I've been programming for awhile, I'm new to DJGPP, and have a
>rather simple question: How does djgpp handle the "NEAR" and "FAR"
>pointer types? Is there a switch to turn these on?
>
>Steven Griffith
>
The easy (but not quite correct) answer is "it doesn't". And if your
program is not too dos dependent you can probably define them away as
follows to get your program to run.
#define NEAR
#define FAR
#define HUGE
If your program calls the "far*" memory management routines, you'll
probably need to define them properly, too.
#define farmalloc(x) malloc(x)
#define farcalloc(x,y) calloc(x,y)
etc.
If your program is dos dependant and requires access to specific memory
locations or calls DOS via interrupts, it's a bit harder. Check out the
FAQ and docs for info on how to do that.
Eric
--
Eric Korpela | An object at rest can never be
korpela AT ssl DOT berkeley DOT edu | stopped.
<a href="http://www.cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpela/w">
Click here for more info.</a>
- Raw text -