#ifs and their corresponding #endifs -- in same file?
Henry Spencer
henry at utzoo.uucp
Fri Apr 21 05:32:09 AEST 1989
In article <335 at edg1.UUCP> jsa at edg1.UUCP (J. Stephen Adamczyk) writes:
>Anyone care to venture an opinion or whether or not the pANS requires
>that an #if (or the like) be closed by a corresponding #endif in
>the SAME source file?
If you look hard at the grammar for the preprocessor, it is fairly clearly
the grammar for a *single* file. Everybody I know of who has studied the
matter closely has concluded that #if-#endif must match within the same file.
--
Mars in 1980s: USSR, 2 tries, | Henry Spencer at U of Toronto Zoology
2 failures; USA, 0 tries. | uunet!attcan!utzoo!henry henry at zoo.toronto.edu
More information about the Comp.std.c
mailing list