delorie.com/archives/browse.cgi | search |
Date: | Tue, 15 Aug 2000 08:24:45 +0200 |
From: | "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il> |
Sender: | halo1 AT zahav DOT net DOT il |
To: | steven DOT watson AT ntlworld DOT com |
Message-Id: | <9003-Tue15Aug2000082445+0300-eliz@is.elta.co.il> |
X-Mailer: | Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b |
CC: | djgpp AT delorie DOT com |
In-reply-to: | <39986125.80837DE6@ntlworld.com> (message from Steven Watson on |
Mon, 14 Aug 2000 22:14:13 +0100) | |
Subject: | Re: newbie makelong? |
References: | <39985C49 DOT 3542BDAC AT ntlworld DOT com> <39986125 DOT 80837DE6 AT ntlworld DOT com> |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
> From: Steven Watson <steven DOT watson AT ntlworld DOT com> > Newsgroups: comp.os.msdos.djgpp > Date: Mon, 14 Aug 2000 22:14:13 +0100 > > #include <sys/nearptr.h> > #include <crt0.h> > > void * MK_FP (unsigned short seg, unsigned short ofs) > { > if ( !(_crt0_startup_flags & _CRT0_FLAG_NEARPTR) ) > if (!__djgpp_nearptr_enable ()) > return (void *)0; > return (void *) (seg*16 + ofs + __djgpp_conventional_base); > } > it works a treat! next time I will try to read all the docs I suggest to start using the index-search command (press `i' and follow the prompts) in the Info browser, it is very efficient in finding things in the FAQ (and any other Info manual) without you having to read the whole document. The file README.1ST explains, in section "Reading the Documentation", how to use the index-search command efficiently. I suggest to read it.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |