Far pointer problem resolved
id for use with uunet/usenet
jbayer at ispi.UUCP
Sat Oct 15 01:29:36 AEST 1988
My thanks to the following people who replied to my question about
far pointers:
Ariel A. Aloni att!ctsmain!raphel!ariel
Mark @ ...!gatech!ncrats!iccdev!mark
John Owens john at jetson.UPMA.MD.US uunet!jetson!john
Jayen Vaghani {uunet,ukc,ubc-cs,mcvax}!munnari.oz!jayen
Mike Howard uunet!milhow1!how
Ragnar Paulson ...utzoo!lsuc!dvlmarv!tsgfred!ragnar
Dr. T. Andrews ...!bikini.cis.ufl.edu!ki4pv!cdis-1!tanner ...!bpa!cdin-1!cdis-1!tanner
For those who asked why I was using far pointers, my program is using
Unix V shared memory. On Xenix 286, this type of shared memory is
accessed by far pointers.
The solution which was suggested by most of the above people was:
return ( (struct abc far *)&ptr[x] ) ;
This eliminated the warning messages. A few people also suggested
simply ignoring the warnings. It appeared that the code was being
generated correctly. I was concerned since this code has to be portable
between different machines, and I do not like warning messages at all.
Again, thanks to all of you.
Jonathan Bayer
Intelligent Software Products, Inc.
More information about the Comp.unix.wizards
mailing list