Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.8 $; site ccvaxa Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!ccvaxa!preece From: preece@ccvaxa.UUCP Newsgroups: net.lang.c Subject: Re: Re: Uses of \"short\" ? Message-ID: <2600020@ccvaxa> Date: Tue, 15-Oct-85 11:02:00 EDT Article-I.D.: ccvaxa.2600020 Posted: Tue Oct 15 11:02:00 1985 Date-Received: Thu, 17-Oct-85 23:33:58 EDT References: <2081@brl-tgr.ARPA> Lines: 22 Nf-ID: #R:brl-tgr.ARPA:-208100:ccvaxa:2600020:000:907 Nf-From: ccvaxa.UUCP!preece Oct 15 10:02:00 1985 > /* Written 2:45 am Oct 12, 1985 by gwyn@BRL.ARPA in ccvaxa:net.lang.c > */ There is absolutely no use for types "int8", "int16", and "int32" > since the shortest C types that fit them can always be used: "signed > char", "short", and "long". ---------- At risk of belaboring the obvious, the point is that "int8", "int16", and "int32" mean the same thing everywhere, while "unsigned char", "short", and "long" are machine dependent. If one carefully uses short and long so that code compiles efficiently both on my UTX machine and Guy Harris's PDP-11s, it STILL may break on another machine where short and long are NOT the usual 16 and 32 bits. That's the whole point. If you're going to spend much energy on generating portable code you MUST use typedefs with funny names that actually have specific, machine independent definitions. -- scott preece gould/csd - urbana ihnp4!uiucdcs!ccvaxa!preece