Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Sep 2001 16:46:46 -0700
From:      Peter Wemm <peter@wemm.org>
To:        obrien@FreeBSD.org
Cc:        Matt Dillon <dillon@earth.backplane.com>, Kris Kennaway <kris@obsecurity.org>, "Andrey A. Chernov" <ache@nagual.pp.ru>, Mark Peek <mark@whistle.com>, 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) 
Message-ID:  <20010905234646.9BBAF380A@overcee.netplex.com.au>
In-Reply-To: <20010905085206.B95963@dragon.nuxi.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
"David O'Brien" wrote:
> On Tue, Sep 04, 2001 at 03:05:34PM -0700, Matt Dillon wrote:
> > :Please!  I already have a prototype in works.  I'm sure there are other
> > :things for people to work on.
> > 
> >     sys/cdefs.h ?  I think it's perfect, lets use it... I don't understand
> >     why you haven't instrumented all the library source files already,
> >     though, or at least more then have been,
> 
> 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


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




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