From owner-cvs-all Wed Sep 5 16:46:55 2001 Delivered-To: cvs-all@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id 2D12937B405; Wed, 5 Sep 2001 16:46:47 -0700 (PDT) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f85NkkM44144; Wed, 5 Sep 2001 16:46:46 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 9BBAF380A; Wed, 5 Sep 2001 16:46:46 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: obrien@FreeBSD.org Cc: Matt Dillon , 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) In-Reply-To: <20010905085206.B95963@dragon.nuxi.com> Date: Wed, 05 Sep 2001 16:46:46 -0700 From: Peter Wemm Message-Id: <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 "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