Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Aug 2001 17:41:14 +0300
From:      Alexey Zelkin <phantom@FreeBSD.ORG>
To:        Ruslan Ermilov <ru@FreeBSD.ORG>
Cc:        Bruce Evans <bde@FreeBSD.ORG>, "David O'Brien" <obrien@FreeBSD.ORG>, arch@FreeBSD.ORG
Subject:   Re: __RCSID() and __VERSION() macros and their ``static const char'' equivalents
Message-ID:  <20010813174114.A26468@phantom.cris.net>
In-Reply-To: <20010813165753.A74504@sunbay.com>; from ru@FreeBSD.ORG on Mon, Aug 13, 2001 at 04:57:54PM %2B0300
References:  <20010813165753.A74504@sunbay.com>

next in thread | previous in thread | raw e-mail | index | archive | help
hi,

I raised almost same questions two months ago. We even came to
conclusion, but David asked to suspend this task until he'll make
some kinds of this black magic in FreeBSD src tree (to avoid merge
conflicts). But I still not hear anything back.

On Mon, Aug 13, 2001 at 04:57:54PM +0300, Ruslan Ermilov wrote:
> Bruce, David!
> 
> What is the reason why we should use the old style VCS ID declarations
> like this:
> 
> static const char rcsid[] =
>   "$FreeBSD$";
> 
> instead of their modern equivalent, <sys/cdefs.h> __RCSID() macro?
> 
> Not only the macro is backwards compatible in the non-gcc or non-ELF
> case, but it also "produces" more compact objects.
> 
> Similarly for copyright[] versus __COPYRIGHT().
> 
> (This is documented in the style(9) policy document.)
> 
> 
> Cheers,
> -- 
> Ruslan Ermilov		Oracle Developer/DBA,
> ru@sunbay.com		Sunbay Software AG,
> ru@FreeBSD.org		FreeBSD committer,
> +380.652.512.251	Simferopol, Ukraine
> 
> http://www.FreeBSD.org	The Power To Serve
> http://www.oracle.com	Enabling The Information Age
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-arch" in the body of the message

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




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