'sizeof' in preprocessing.
Henry Spencer
henry at zoo.toronto.edu
Sun Oct 7 09:25:23 AEST 1990
In article <1990Oct6.092032.345 at csc.canberra.edu.au> eyal at echo.canberra.edu.au (Eyal Lebedinsky) writes:
>Reading the standard, any 'constant-expression' is valid for #if, and sizeof
>is yielding a constant...
>No separate cpp will do it (unless it learns some C).
>Comments? I was reading 3.8.1 7/88 draft.
You've either missed something or your draft is simply too far out of date.
(I can't remember what this looked like in 7/88.) A very subtle point of
the interpretation of #if expressions is that keywords are not recognized
at all, so there is no way to write a sizeof. This is specifically there to
permit separate preprocessors.
--
Imagine life with OS/360 the standard | Henry Spencer at U of Toronto Zoology
operating system. Now think about X. | henry at zoo.toronto.edu utzoo!henry
More information about the Comp.std.c
mailing list