Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 1998 10:18:29 -0500 (EST)
From:      Thomas David Rivers <rivers@dignus.com>
To:        bright@hotjobs.com, joelh@gnu.org
Cc:        hackers@FreeBSD.ORG, rssh@grad.kiev.ua
Subject:   Re: inclusion of system headers.
Message-ID:  <199812111518.KAA04220@lakes.dignus.com>
In-Reply-To: <8667bjgrfd.fsf@detlev.UUCP>

next in thread | previous in thread | raw e-mail | index | archive | help
> >>> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812111518.KAA04220>