Subject: Re: CVS commit: basesrc/bin/pax
To: Perry E. Metzger <perry@wasabisystems.com>
From: Todd Vierling <tv@wasabisystems.com>
List: source-changes
Date: 02/01/2002 08:35:12
On 1 Feb 2002, Perry E. Metzger wrote:
: > Of course, if KNF didn't specify direct inclusion of <sys/cdefs.h> at the
: > very top of the file (which it shouldn't, braindead bull$%^t), I wouldn't
: > have to fight this bogosity.
:
: Maybe we should define an #include file that only does _RCSID and
: _COPYRIGHT?
What I was trying to say is that if the __RCSID and __COPYRIGHT macros
lived *below* the include list rather than above it, the inclusion of
"config.h" could easily redefine these, and we wouldn't even need to
explicitly include <sys/cdefs> at all. We don't need another .h file.
However, our style currently mandates that the file be structured as:
#include <sys/cdefs.h>
__RCSID()
#include <everything_else>
--
-- Todd Vierling <tv@wasabisystems.com> * Wasabi & NetBSD: Run with it.
-- CDs, Integration, Embedding, Support -- http://www.wasabisystems.com/