Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!ucbcad!ucbvax!decvax!decwrl!pyramid!nsc!csi!csib!jwhitnel From: jwhitnel@csib.UUCP Newsgroups: comp.sys.mac Subject: Re: MPW C annoyances.... Message-ID: <1081@csib.UUCP> Date: Tue, 31-Mar-87 13:50:40 EST Article-I.D.: csib.1081 Posted: Tue Mar 31 13:50:40 1987 Date-Received: Sat, 4-Apr-87 07:29:00 EST References: <12500007@acf4.UUCP> Reply-To: jwhitnel@csib.UUCP (Jerry Whitnell) Organization: Communications Solutions Inc., San Jose, Ca Lines: 26 In article <12500007@acf4.UUCP> spector@acf4.UUCP (David HM Spector) writes: > >more MPW-isms: > ... >int 32 Range -2,147,483,648 to ..... > >Whats more is that Apple (!!), in Inside Macintosh states that integers are >*16 bits*! (see Inside Macintosh, Vol. I, Pg.86, "Pascal Data Types") > >I mean, I may be too touchy, but this is really annoying. Bill Duvall started >this silly trend of 32bit ints on a Mac with MacC, and he was wrong too. > >Hmmph! Grumble, grumble. >David HM Spector David, 32 bit ints for C on the 68K started when UNIX was ported over. All of the UNIX C compilers use 32 bits so that's the defacto standard. Since MPW is a port of the Greenhills C compiler which used 32 bits int, it's not surpising that they kept it for MPW. So the mac compilers that use 16 bits are the exception, not the rule for 68K C compilers. I agree it is a pain and in the future I'm going to use typedefs wherever the size of the int is important. Jerry Whitnell Communications Solutions, Inc.