Date: Mon, 13 Aug 2001 16:57:54 +0300 From: Ruslan Ermilov <ru@FreeBSD.org> To: Bruce Evans <bde@FreeBSD.org>, "David O'Brien" <obrien@FreeBSD.org> Cc: arch@FreeBSD.org Subject: __RCSID() and __VERSION() macros and their ``static const char'' equivalents Message-ID: <20010813165753.A74504@sunbay.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010813165753.A74504>