C Style
David Wolverton
daw at houxs.ATT.COM
Fri Jan 13 00:24:02 AEST 1989
In article <9336 at smoke.BRL.MIL>, gwyn at smoke.BRL.MIL (Doug Gwyn ) writes:
>
> 2. If the header just defines macros and structures,
> and declares types of external objects and functions,
> then you don't need to ensure one-time actions, because
> such actions can be repeated safely. Typedefs are the main
> things that need to be protected against a second invocation.
You may still want to use the lockout even when it is safe to include
the header more than once. My gut-level is that your compile time
would be improved if you have long headers WITH lockouts, because then
the preprocessor is effectively the only part of the compiler that must
process/scan that part of the incoming source. Without lockouts,
the compiler must parse that stuff, do bookkeeping, etc. which adds
to the compile time.
Dave Wolverton
daw at houxs.att.com
More information about the Comp.lang.c
mailing list