From owner-cvs-all Fri Sep 14 20:43:44 2001 Delivered-To: cvs-all@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id C6B3237B40D; Fri, 14 Sep 2001 20:43:40 -0700 (PDT) Received: (from dillon@localhost) by earth.backplane.com (8.11.6/8.11.2) id f8F3hPm21574; Fri, 14 Sep 2001 20:43:25 -0700 (PDT) (envelope-from dillon) Date: Fri, 14 Sep 2001 20:43:25 -0700 (PDT) From: Matt Dillon Message-Id: <200109150343.f8F3hPm21574@earth.backplane.com> To: Peter Wemm Cc: obrien@FreeBSD.org, Kris Kennaway , "Andrey A. Chernov" , Mark Peek , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: macro recommendation (Was Re: cvs commit: src/lib/libc/stdlib strtol.3 strtol.c strtoll.c strtoq.c strtoul.3 strtoul.c strtoull.c strtouq.c) References: <20010905234646.9BBAF380A@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG :... :> I have been working out the style issues with BDE for several months. :> Also, if you want a truely portable usage, we cannot use __RCSID() :> because too much NetBSD and vendor sources use it. Peter's hack will not :> work for all compilers. I would have prefered a __FBSD() and __CSRG() :> macro for the same reasons we switched to $FreeBSD$ from $Id$. These :> would have worked for all compilers, but I cannot complete with an effort :> backed by Peter. : :I dont care if it's called __FRED(). My hack will work for all :compilers, in *.c files. It only gets hairy if you try and add them to :headers (probably a bad idea anyway). : :Feel free to add __FOO(), __FBSD(), __GRANDMA() or whatever you like. The :tools are there, just pick a new prefix name. : :Cheers, :-Peter :-- :Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au :"All of this is for nothing if we don't go to the stars" - JMS/B5 Ok, I've added __FBSDID() to sys/cdefs.h in -current and also commited changes to use __FBSDID() in one of the smaller libraries ... libatm. Interested parties should take a look at the results and we can move the debate on from that. Once we get enough of a concensus I and hopefully others can start working on the libraries in -current and perhaps even -stable. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message