Path: utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!ames!oliveb!amiga!boing!dale From: dale@boing.UUCP (Dale Luck) Newsgroups: comp.sys.amiga Subject: Re: Examine and ExNext return codes Keywords: ints, Examine Message-ID: <574@boing.UUCP> Date: 5 Jan 89 23:01:44 GMT References: <246@dsacg2.UUCP> <247@dsacg2.UUCP> <5596@cbmvax.UUCP> <1088@ardent.UUCP> <5631@cbmvax.UUCP> Reply-To: dale@boing.UUCP (Dale Luck) Organization: Boing, Milpitas, Ca. Lines: 31 In article <5631@cbmvax.UUCP> higgin@cbmvax.UUCP (Paul Higginbottom MKT) writes: =In article <1088@ardent.UUCP> rap@ardent.UUCP (Rob Peck) writes: =$Actually the "l' (small L) prepending that I had done shows my early =$involvement with the Amiga OS, in that the printf built into the ROM =$(or WCS), and accessible by linking in amiga.lib first, requires =$all parameters to be longs. = =But the tools you were using (Greenhills) had ints the same size as =longs anyway (32 bit), so wasn't the l unnecessary? Nope, the tools were not Greenhills but Whitesmith C running on Sages. We are talking history, ie BC (thats Before Commodore). When we moved over to Sun's alot of the old practices did not change. Also the DoFmt (or whatever it is called) in exec/debug library assume 16 bit ints. 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); -- Dale Luck GfxBase/Boing, Inc. {uunet!cbmvax|pyramid}!amiga!boing!dale