C Style

Peter da Silva peter at ficc.uu.net
Thu Jan 12 08:02:11 AEST 1989


In article <9336 at smoke.BRL.MIL>, gwyn at smoke.BRL.MIL (Doug Gwyn ) writes:
> The only thing wrong is your syntax.  You mean
> 	#include "graphics.h"
> in the latter two files.

Yeah, yeah, I know.

> In fact there is no need to place conditionals around those inclusions,
> since the included file will have no effect if it is already in force,
> bacause it checks its one-time lockout flag and avoids redefining things
> after the first time it's included in a translation unit.

Depends on the number of open files the operating system and 'C' library
allows, and on the cost of opening a file. If the files are large, this
extra set of conditionals might significantly enhance compilation speed.
-- 
Peter da Silva, Xenix Support, Ferranti International Controls Corporation.
Work: uunet.uu.net!ficc!peter, peter at ficc.uu.net, +1 713 274 5180.   `-_-'
Home: bigtex!texbell!sugar!peter, peter at sugar.uu.net.                 'U`
Opinions may not represent the policies of FICC or the Xenix Support group.



More information about the Comp.lang.c mailing list