Path: utzoo!utgpu!watmath!clyde!att!pacbell!ames!oliveb!amiga!cbmvax!thomas From: thomas@cbmvax.UUCP (Dave Thomas QA) Newsgroups: comp.sys.amiga Subject: Re: Examine and ExNext return codes Message-ID: <5643@cbmvax.UUCP> Date: 9 Jan 89 14:06:33 GMT References: <246@dsacg2.UUCP> <247@dsacg2.UUCP> <5596@cbmvax.UUCP> <1088@ardent.UUCP> <5631@cbmvax.UUCP> <574@boing.UUCP> <10261@well.UUCP> Reply-To: thomas@cbmvax.UUCP (Dave Thomas QA) Organization: Commodore Technology, West Chester, PA Lines: 33 In article <10261@well.UUCP> ewhac@well.UUCP (Leo 'Bols Ewhac' Schwab) writes: > In article <574@boing.UUCP> dale@boing.UUCP (Dale Luck) writes: > :This makes printing structures out easy. > :For example: > :struct point > :{ > : short x,y; > :}; > : > :struct point a; > : > : could be printed out via > : > : printf("point(%d,%d)\n",a); > : > This assumes that the compiler pushes a copy of the structure onto > the stack. I think there was a version of Manx that did something else (but > I'm not sure). What does ANSI have to say about this operation? > > _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ > Leo L. Schwab -- The Guy in The Cape INET: well!ewhac@ucbvax.Berkeley.EDU This wouldn't work on older C compilers. They would place a pointer to the structure on the stack instead of the contents of the structure. The ANSI standard says that the structure itself should be pushed. Dave -- ============================================================================= Dave Thomas COMMODORE AMIGA TEST ENGINEERING // /_ |\/||/_ /_ UUCP ...{allegra,ihnp4,rutgers}!cbmvax!thomas \X/ / \| ||\// \ PHONE 215-431-9328 =============================================================================