Include files
Doug Gwyn
gwyn at smoke.BRL.MIL
Tue Jan 31 17:43:37 AEST 1989
In article <10995 at umn-cs.CS.UMN.EDU> raghavan at umn-cs.cs.umn.edu (Vijay Raghavan) writes:
-In article <9526 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
-<The first point is that the standard headers may be included only
-<outside all function bodies (i.e. at file scope level).
- May? Does this mean the same as "are required to"?
No, because you're not required to include the header at all (unless,
of course, you want to use something it declares or defines). You
have official permission to include it ONLY at file scope level.
("may" as in "are allowed to")
-I *know* what the "#ifndef FILE" was attempting to accomplish. All I am
-saying is that the effect is not the same (as without the "#ifndef") when
-the inclusions occur in different mutually non-nesting blocks of the same file.
Thus the injunction against doing that.
More information about the Comp.lang.c
mailing list