Path: utzoo!attcan!uunet!lll-winken!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn ) Newsgroups: comp.lang.c Subject: Re: C Style Message-ID: <9345@smoke.BRL.MIL> Date: 12 Jan 89 05:21:28 GMT References: <2688@ficc.uu.net> <9336@smoke.BRL.MIL> <2700@ficc.uu.net> Reply-To: gwyn@brl.arpa (Doug Gwyn (VLD/VMB) ) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 14 In article <2700@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: -In article <9336@smoke.BRL.MIL>, gwyn@smoke.BRL.MIL (Doug Gwyn ) writes: -> 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. Well, a good reason for nonetheless letting the compiler take care of it for you is that otherwise the user of the header needs to also know the special lock symbol for the header. General design principles argue that the symbol should be the private property of the header.