A solution to the multiple inclusion problem
Henry Spencer
henry at utzoo.uucp
Sat Oct 28 02:50:23 AEST 1989
In article <FOX.89Oct26215145 at novax.allegra.att.com> fox at allegra.att.com (David Fox) writes:
>A problem with the idea of having the compiler recognize the
>
> #ifndef FOO
> #define FOO
> ...
> #endif
>
>arrangement (I wouldn't call it a construct) is what if the
>including file explicitly #undefs FOO? ...
Then the compiler notices that the magic symbol associated with the file
has been messed with, and suppresses the optimization. Really, it can
be done, and it's not even hard.
--
A bit of tolerance is worth a | Henry Spencer at U of Toronto Zoology
megabyte of flaming. | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.lang.c
mailing list