Of Standards and Inventions: A Cautionary Tale
William E. Davidsen Jr
davidsen at steinmetz.ge.com
Tue Apr 12 00:34:52 AEST 1988
In article <7637 at brl-smoke.ARPA> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
| [...]
| We didn't want to mandate that the preprocessor be integrated into the
| language parser proper. I agree that the language would be nicer if
| it WERE so integrated, but for historical reasons it wasn't.
This would be true for sizeof a user type or variable, but certainly
not for a predefined type, such as sizeof int. 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
--
bill davidsen (wedu at ge-crd.arpa)
{uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me
More information about the Comp.lang.c
mailing list