www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/13/15:42:33

Xref: news2.mv.net comp.os.msdos.djgpp:8593
From: Erik Max Francis <max AT alcyone DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Pointer variables
Date: Thu, 12 Sep 1996 08:01:44 -0700
Organization: Alcyone Systems
Lines: 17
Message-ID: <323825D8.6A104258@alcyone.com>
References: <517i6b$hqp AT news DOT ghgcorp DOT com>
NNTP-Posting-Host: newton.alcyone.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Rodney Bachtel wrote:

> Last question for a while, I promise. What is the C equiv. of the
> pascal pointer type? In pascal, it is a 32bit ptr, but I can't get DJGPP
> to do a int far *goober as is recommended for TurboC.

The near and far keywords are ANSI C extensions, and are not described by the
ANSI C standard.  They happen to be needed by some segmented architectures.

DJGPP is a 32-bit flat memory model, and so you aren't dealing with near or
far pointers; everything is 32-bit.  That is, int *goober is already a 32-bit
pointer in DJGPP.

-- 
Erik Max Francis, &tSftDotIotE   http://www.alcyone.com/max/   max AT alcyone DOT com
San Jose, California   ICBM 37 20 07 N 121 53 38 W   R^4: the 4th R is respect
"Out from his breast/his soul went to seek/the doom of the just." -- _Beowulf_

- Raw text -


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