Problems with GCC and/or VAX LINK

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Mar 18 10:59:12 AEST 1989


In article <kY89tBy00hYPNFGX1Q at cs.cmu.edu> rpd at cs.cmu.edu (Richard Draves) writes:
>First, I'd like to know if a #if in one file can be matched by a #else or #endif
>in another file.

The preprocessing grammar implies not.  As I recall the debate on this,
generally it was felt that any possible use of such behavior would be
outweighed by the much greater chance of it contributing to mysterious
bugs.  The grammar is also much simpler this way.

>Second, I'd like to know if when one is skipping over tokens looking for a #else
>or #endif, one is entitled to skip #include directives without substituting the
>file.

Not only is one entitled to, one is required to.



More information about the Comp.lang.c mailing list