www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/20/03:04:40

Date: Mon, 20 Nov 1995 08:15:23 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: r DOT grunwald AT cowan DOT edu DOT au
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu, Holger Vogelsang <vogelsan AT i50s20 DOT ira DOT uka DOT de>
Subject: Re: Question about DJGPP C syntax

On Mon, 20 Nov 1995, Ron Grunwald wrote:

> > Or much easier:
> > 
> > #define far
> 
> Sounds good initially, but this could lead to unexpected side 
> effects. Eg. What happens if there are variables containing the "far" 
> substring such as GET_DISPLAY_FARPNTR?

Nothing.  The C preprocessor doesn't care about `far' being a substring 
of any other identifier, it needs `far' verbatim (and is also 
case-sensitive).  Defining `far' away is the best method of porting DOS 
programs which use that keyword, IMHO.

- Raw text -


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