SCCS IDs in old code

Bruce Evans brde at optusnet.com.au
Tue Mar 3 19:20:18 PST 2009


On Tue, 3 Mar 2009, Xin LI wrote:

> I'd like to know if there would be any objections if things like:
>
> static char sccsid[] = "@(#)rec_utils.c 8.6 (Berkeley) 7/16/94"
>
> Be moved into the comment right after the copyright header?  Personally

Of course there would be objections.

> I don't see much point keeping 'em just in order to make -DLIBC_SCCS
> work, since these code changes from time to time and the version number
> and dates are no longer relevant, perhaps, they should be better just
> kept in the comment for reference from historical code.

style(9) requires keeping vendor ids unedited and unmoved and
uncommented-out and not attached to the FreeBSD id in `#if 0' blocks.
rec_utils.c follows the no-edit no-move rules but not the other 2.

Bruce


More information about the freebsd-arch mailing list