From: "Ron Grunwald" Organization: Edith Cowan University To: djgpp AT sun DOT soe DOT clarkson DOT edu, vogelsan AT i50s20 DOT ira DOT uka DOT de (Holger Vogelsang) Date: Mon, 20 Nov 1995 11:01:28 GMT+800 Subject: Re: Question about DJGPP C syntax Reply-To: r DOT grunwald AT cowan DOT edu DOT au > >Far pointers are used in the real mode segmented memory models. DJGPP > >uses 32-bit linear memory model, and therefore the concept of a far > >pointer makes no sense. > >To compile your code you have to remove all the 'far' attributes from > >your pointer declarations. > > 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? ******************************************************************** | Author.............. Ron Grunwald | | Internet............ r DOT grunwald AT cowan DOT edu DOT au | | Phone............... (09)273 8027 or (09)273 8468 | |------------------------------------------------------------------| | Department.......... Computer Operations and Systems Management | | Division/Faculty.... Information Technology | | Institute........... Edith Cowan University, Churchlands | | Location............ Perth, Western Australia | ******************************************************************** "I don't have any solution but I certainly admire the problem!"