Of Standards and Inventions: A Cautionary Tale

Josh Sirota joss at ur-tut
Tue Apr 12 11:34:48 AEST 1988


In article <10353 at steinmetz.ge.com> davidsen at 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 at tut.cc.rochester.edu          BITNET: joss_ss at uordbv.bitnet
          ur-tut!joss at cs.rochester.edu       UUCP: ...!rochester!ur-tut!joss



More information about the Comp.lang.c mailing list