Path: utzoo!mnetor!uunet!husc6!bbn!rochester!ur-tut!joss From: joss@ur-tut (Josh Sirota) Newsgroups: comp.lang.c Subject: Re: Of Standards and Inventions: A Cautionary Tale Message-ID: <1758@ur-tut.UUCP> Date: 12 Apr 88 01:34:48 GMT References: <10949@mimsy.UUCP> <1525@dataio.Data-IO.COM> <7637@brl-smoke.ARPA> <10353@steinmetz.ge.com> Reply-To: joss@tut.cc.rochester.edu (Josh Sirota) Organization: Univ. of Rochester, Computing Center Lines: 21 In article <10353@steinmetz.ge.com> davidsen@crdos1.UUCP (bill davidsen) writes: >With programs traveling between 32 bit machines and 16 bit machines >(286, 11s) I want to say: > #if sizeof int < 32 > #define INT long > #else > #define INT int > #endif Christ! Use long all the time ... a simple #define INT long would suffice, if you insist on having this INT thing at all. Why would you want to do this? If you want 4 byte values, specify long on ANY machine. Josh -- Josh Sirota INTERNET: joss@tut.cc.rochester.edu BITNET: joss_ss@uordbv.bitnet ur-tut!joss@cs.rochester.edu UUCP: ...!rochester!ur-tut!joss