Mail Archives: djgpp/1995/11/20/03:04:40
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 -