Subject: Re: CVS commit: src/sys/sys
To: Hubert Feyrer <hubert@feyrer.de>
From: Steven J. Dovich <dovich@lethe.tiac.net>
List: source-changes
Date: 01/04/2004 00:32:26
Hubert Feyrer wrote:
> On Sun, 4 Jan 2004, Matthias Scheler wrote:
> > Because it is broken by design if a header file doesn't include header
> > files it requires itself. And because this is a regression. The application
>
> I'm with Matthias on this issue - IMHO every header should pull in all the
> things it needs.
And that coddles the lazy at the expense of compile time. Consider
the lexing costs for all the redundant including of required headers
which have already been included. That can amount to a measurable
difference in compile time, particularly when extended across the
entire NetBSD source tree.
If it is known what the dependency requirements are, or it can be
understood with a little bit of investigation, then we ought to
expect that those who profess to be competent at system programming
should be able to get this right. Even if headers do not do all the
work for them. The NetBSD community is competent enough to handle
the extra effort.
I really understand the convenience and sympathize with the desire,
but I am too aware of the costs involved. Sorry.
/sjd