Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Sep 2001 06:15:45 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        "David O'Brien" <obrien@FreeBSD.org>
Cc:        <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/share/man/man9 style.9
Message-ID:  <20010916054620.T29957-100000@delplex.bde.org>
In-Reply-To: <20010915121926.A71700@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 15 Sep 2001, David O'Brien wrote:

> On Sun, Sep 16, 2001 at 04:22:36AM +1000, Bruce Evans wrote:
> > - line containing $FreeBSD$ longer than before.  The $FreeBSD was indented
> >   only 2 spaces to gives some chance of the line not being too long.
>
> how do you suggest we deal with this?

Look at what NetBSD does and ask them what's wrong with it.  NetBSD
seems to use:

---
/*	$NetBSD$ */

<copyright comment>

#include <sys/cdefs.h>
#if defined(LIBC_SCCSID) && !defined(lint)
#if 0
<CSRG sccsid>
#endif
__RCSID($NetBSD$)
#endif /* LIBC_SCCSID) and not lint */
---

in most files in libc/stdio.  I.e.,  add $NetBSD$ in a comment to to the
top of the file; add the cdefs include immediately above the vendor id
stuff and merge the $NetBSD$ rcsid into the vendor id stuff.

I now prefer something like:

---
<copyright comment>

#if 0 /* maybe change to #ifdef VENDOR_ID */
<vendor id stuff>
#endif

#include <sys/cdefs.h>
__FBSDID($NetBSD$)
---

Here <vendor id stuff> may contain another include of cdefs.h and/or
ifdefs and/or __FOOBSDID() macros.  I think it is best to keep the
FreeBSD id stuff completely separate even if this involves duplicating
a line or two.

Bruce


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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