delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/02/14:15:41

From: kagel AT quasar DOT bloomberg DOT com
Date: Tue, 2 Jul 1996 14:08:11 -0400
Message-Id: <9607021808.AA05308@quasar.bloomberg.com >
To: ebp AT dde DOT dk
Cc: djgpp AT delorie DOT com
In-Reply-To: <31D91DC9.5FE0@dde.dk> (message from Erik Bachmann on Tue, 02 Jul 1996 15:02:01 +0200)
Subject: Re: Need help to get start with Djgpp V.2.0
Reply-To: kagel AT dg1 DOT bloomberg DOT com

   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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019