Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!cbmvax!andy From: andy@cbmvax.UUCP (Andy Finkel) Newsgroups: comp.lang.c,comp.sys.atari.st,comp.sys.amiga Subject: Re: 32bit = 16bit x 16bit Message-ID: <2545@cbmvax.UUCP> Date: Mon, 19-Oct-87 18:30:59 EDT Article-I.D.: cbmvax.2545 Posted: Mon Oct 19 18:30:59 1987 Date-Received: Wed, 21-Oct-87 00:32:15 EDT References: <1912@gryphon.CTS.COM> <3294@sol.ARPA> Reply-To: andy@cbmvax.UUCP (Andy Finkel) Organization: Commodore Technology, West Chester, PA Lines: 26 Xref: mnetor comp.lang.c:5032 comp.sys.atari.st:5787 comp.sys.amiga:9628 In article <3294@sol.ARPA> crowl@cs.rochester.edu (Lawrence Crowl) writes: >In article <1912@gryphon.CTS.COM> mhatter@pnet02.CTS.COM >(Patrick E. Hughes) writes: >>I might suggest one thing if you plan on porting many C programs: Don't Use >NO! Char, short, and long do change size. The only thing you can rely on is >that sizeof char <= sizeof short <= sizeof int <= sizeof long. If you want >portable programs, DO NOT USE BASIC TYPES. At the top of the program, define a We at the Banzai Institute always use typedefs :-) Ours are stored in the include file exec/types.h To maintain readability, however, the names were a bit a bit boring, ie LONG, ULONG, WORD, UWORD, BYTE, UBYTE, and VOID. andy -- andy finkel {ihnp4|seismo|allegra}!cbmvax!andy Commodore-Amiga, Inc. "Interfere? Of course we'll interfere. Always do what you're best at, I always say." Any expressed opinions are mine; but feel free to share. I disclaim all responsibilities, all shapes, all sizes, all colors.