From owner-freebsd-arch Mon Aug 13 6:58:18 2001 Delivered-To: freebsd-arch@freebsd.org Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by hub.freebsd.org (Postfix) with ESMTP id 7B10D37B418; Mon, 13 Aug 2001 06:58:00 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.11.2/8.11.2) id f7DDvss76617; Mon, 13 Aug 2001 16:57:54 +0300 (EEST) (envelope-from ru) Date: Mon, 13 Aug 2001 16:57:54 +0300 From: Ruslan Ermilov To: Bruce Evans , "David O'Brien" Cc: arch@FreeBSD.org Subject: __RCSID() and __VERSION() macros and their ``static const char'' equivalents Message-ID: <20010813165753.A74504@sunbay.com> Mail-Followup-To: Bruce Evans , David O'Brien , arch@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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, __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