Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!iuvax!rutgers!bellcore!texbell!sugar!ficc!peter From: peter@ficc.uu.net (Peter da Silva) Newsgroups: comp.lang.c Subject: Re: C Style Message-ID: <2700@ficc.uu.net> Date: 11 Jan 89 22:02:11 GMT References: <2688@ficc.uu.net> <9336@smoke.BRL.MIL> Organization: Xenix Support Lines: 20 In article <9336@smoke.BRL.MIL>, gwyn@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@ficc.uu.net, +1 713 274 5180. `-_-' Home: bigtex!texbell!sugar!peter, peter@sugar.uu.net. 'U` Opinions may not represent the policies of FICC or the Xenix Support group.