Mail Archives: djgpp/1996/07/02/14:15:41
From: Erik Bachmann <ebp AT dde DOT dk>
Date: Tue, 02 Jul 1996 15:02:01 +0200
Erik Bachman wrote:
<SNIP request for info about MK_FP etc>
Jeremy Nelson replied:
<SNIP a useful reply>
Erik Bachman replied:
OK - let's try again: How do you fake Borland's MK_FP ???
in dos.h:
#define MK_FP(seg,ofs) ((void _seg *)(seg) + (void near *)(ofs))
#define FP_SEG(fp) ((unsigned)(void _seg *)(void far *)(fp))
#define FP_OFF(fp) ((unsigned)(fp))
OK. You cannot do this, you do not want to do this, there is no need to do
this! Tell us what it is you want to do and someone will help you. There are
no segments and no offsets in the 32bit flat memory model architecture that
DJGPP employs. The only valid #define for these_FP is:
#define MK_FP(s,o) o
#define FP_SEG(p) 0
#define FP_OFF(p) p
Repeating your question is like asking again "How do I sharpen my flint knife
when there are no nice round striking stones, only these steel tools." after
being told that one of the tools is a steel knife!
Tell us how you intend to use the flint knife and we will tell you which steel
tool will do the job!
--
Art S. Kagel, kagel AT quasar DOT bloomberg DOT com
A proverb is no proverb to you 'till life has illustrated it. -- John Keats
- Raw text -