Xref: utzoo comp.sys.amiga:75811 comp.sys.amiga.tech:17455 Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!hacgate!SDFSUN1!johnl From: johnl@SDFSUN1.hac.com (John Lee) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: "chip" in SAS C Message-ID: <12502@hacgate.UUCP> Date: 5 Jan 91 00:13:47 GMT References: <1991Jan4.031246.20044@cs.uoregon.edu> Sender: news@hacgate.UUCP Reply-To: johnl@SDFSUN1.hac.com (John Lee) Organization: Hughes Aircraft Co., El Segundo, CA Lines: 23 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}; Shouldn't that be: USHORT chip Image[2] = {0xF700,0xF700}; since you're using two initializers? The SAS/C compiler's error message seems a little oblique--I think it's complaining that the second initializer can't be be assigned to anything. The "chip" keyword itself works fine (with or without the leading double underscores.) I've used it with no problems. ------------------------------------------------------------------------------- The crew faces deadly GURUs! Next time on AmigaDOS: The Next Generation. +--------+ John Lee | HUGHES | +--------+ ARPAnet: jhlee@hac2arpa.hac.com Hughes Aircraft Company The above opinions are those of the user and not of those of this machine.