Portability vs. Endianness
Blair P. Houghton
bhoughto at hopi.intel.com
Thu Mar 14 11:47:48 AEST 1991
In article <1991Mar13.164840.20615 at zoo.toronto.edu> henry at zoo.toronto.edu (Henry Spencer) writes:
>In article <3005 at inews.intel.com> bhoughto at hopi.intel.com (Blair P. Houghton) writes:
>>#if (((sizeof long)%(sizeof char)) == 0) /* even-numbered modulus */
>
>Bleep. Error. At least, it won't do what you think. "sizeof" is not an
>operator in #if; it is just another unknown identifier.
I'll just mumble something here about "meta-code"
and try not to look too guilty...
And yes, that's been around here once or twice before, too.
>Incidentally, that expression is guaranteed to be true anyway, because
>sizeof char ==== 1. ("====" is the "emphatically equal to" operator. :-))
Yeh. I never were good about making my antecedents agree
with its objects...
--Blair
"Pay no attention to the man
behind the curtain, a-mundo."
More information about the Comp.lang.c
mailing list