From owner-freebsd-hackers Fri Dec 11 07:18:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA17095 for freebsd-hackers-outgoing; Fri, 11 Dec 1998 07:18:16 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp1.vnet.net (smtp1.vnet.net [166.82.1.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA17080 for ; Fri, 11 Dec 1998 07:18:14 -0800 (PST) (envelope-from rivers@dignus.com) Received: from dignus.com (ponds.vnet.net [166.82.177.48]) by smtp1.vnet.net (8.9.1a/8.9.1) with ESMTP id KAA26655; Fri, 11 Dec 1998 10:17:57 -0500 (EST) Received: from lakes.dignus.com (lakes.dignus.com [10.0.0.3]) by dignus.com (8.9.1/8.8.5) with ESMTP id KAA04047; Fri, 11 Dec 1998 10:59:18 -0500 (EST) Received: (from rivers@localhost) by lakes.dignus.com (8.9.1/8.6.9) id KAA04220; Fri, 11 Dec 1998 10:18:29 -0500 (EST) Date: Fri, 11 Dec 1998 10:18:29 -0500 (EST) From: Thomas David Rivers Message-Id: <199812111518.KAA04220@lakes.dignus.com> To: bright@hotjobs.com, joelh@gnu.org Subject: Re: inclusion of system headers. Cc: hackers@FreeBSD.ORG, rssh@grad.kiev.ua In-Reply-To: <8667bjgrfd.fsf@detlev.UUCP> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > >>> b) it slows compile time signifigantly > >> it is 3 strings of empty cpp output on one header inclusion. > >> Is it really slow compilation ? Where and when it was ? > > uh, no. Usually the #ifndef is inside the included file, which means > > opening the include files multiple times and parsing them just to abort. > > Many modern compilers (including gcc) will detect when an entire > header file is #ifdef'd, and DTRT. Yes - and many others (unfortunately) won't. A likely counter argument is that doesn't too much matter - why do we care about them... Well - because other people use the header files in other offerings, for example.. I rather support the approach the current header files. - Dave Rivers - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message