Xref: utzoo comp.sys.amiga:76085 comp.sys.amiga.tech:17619 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!julius.cs.uiuc.edu!zaphod.mps.ohio-state.edu!caen!kuhub.cc.ukans.edu!markv From: markv@kuhub.cc.ukans.edu Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: "chip" in SAS C Message-ID: <27750.2789a95b@kuhub.cc.ukans.edu> Date: 8 Jan 91 17:13:31 GMT References: <1991Jan5.153432.28253@portia.Stanford.EDU> <18471@wehi.dn.mu.oz> <1991Jan6.184905.29163@portia.Stanford.EDU> Organization: University of Kansas Academic Computing Services Lines: 64 >>> >>>I believe the solution to the problem can be had by changing the line to the >>> following (Worked for me!): >>> >>> USHORT chip Image[]={0xF700,0xF700); >> ^ ^ >> brace bracket >> >>Bet it didn't Several points. One, chip and aligned keywords must be on static data, not "auto" data. If you declare such data in a function it is an error, but if you prefix with with "static", ie: void foo() { static USHORT chip Image[]=... } Second, "Image" is a standard Amiga structure tag. While Okay, I find its a bad idea to have multiple instances of the same name that are different things. (Intuition.h, struct Image Image, pretty confusing...). > I consider this -> [ <- a bracket... Correct. []'s are brackets, ()'s are parenthesis, and {} are braces. Look in any current English guide. > Picky, picky, picky! > >Speaking of 'C', anyone have a nice example of how to perform mutual exclusion > on BOOLEAN gadgets? I have been wrestling with it, but for some reason it > hasn't come out quite right! The AmigaMail volume for 1990 has a good article. In general... You must handle exclusion yourself, because it is unimplemented. If you do this in general, mutual exclude gadgets should be TOGGLESELECT, BOOLEAN, and GADIMMEDIATE. GADHBOX should not be used. You also must twiddle the gadgets in a way friendly to Intuition. In general, get a gadget message, check the exclusion, and twiddle the SELECTED bit and refresh the gadgets. > Pls excuse my ignorance in this matter! Nolo probleme, > Danke! > > Michael Maston > GTE Government Systems > Mt. View, CA 94043 Pahzhalsta, -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Mark Gooderum Only... \ Good Cheer !!! Academic Computing Services /// \___________________________ University of Kansas /// /| __ _ Bix: markgood \\\ /// /__| |\/| | | _ /_\ makes it Bitnet: MARKV@UKANVAX \/\/ / | | | | |__| / \ possible... Internet: markv@kuhub.cc.ukans.edu ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~