Xref: utzoo comp.sys.amiga:75929 comp.sys.amiga.tech:17532 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!samsung!munnari.oz.au!brolga!bunyip.cc.uq.oz.au!marlin.jcu.edu.au!zlnem From: zlnem@marlin.jcu.edu.au (N Milward) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: "chip" in SAS C Message-ID: <1991Jan7.094304.7981@marlin.jcu.edu.au> Date: 7 Jan 91 09:43:04 GMT References: <1991Jan4.031246.20044@cs.uoregon.edu> Organization: James Cook University of North Queensland Lines: 29 In article <1991Jan4.031246.20044@cs.uoregon.edu> rlittle@comix.cs.uoregon.edu (Robert A. Little) writes: > > >Q: Why does the following not work? > >.... >USHORT chip Image={0xF700,0xF700}; >.... > >The SAS C5.10 compiler produces "Error 25: modifiable lvalue required" > >If I remove the "chip" designation, the error does not occur...If I use >far/near/const etc. the error likewise does not occur... Why? Why should >chip cause the error... (BTW: this line was copied from the AmigaDOS >RK 1.3 manual) > >Thanks... > >rob Image is a reserved word it probably should read ImageData. Image points to the actual image structure. This is defined in the include files. The Image structure points to the ImageData. Should read USHORT chip ImageData={..,..}; Hope this helps. Ross Milward.