From owner-cvs-all Thu Apr 11 9:17:40 2002 Delivered-To: cvs-all@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 69B5937B404; Thu, 11 Apr 2002 09:17:31 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g3BGHTi09310; Thu, 11 Apr 2002 10:17:29 -0600 (MDT) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g3BGHSc44484; Thu, 11 Apr 2002 10:17:28 -0600 (MDT) (envelope-from imp@village.org) Date: Thu, 11 Apr 2002 10:17:18 -0600 (MDT) Message-Id: <20020411.101718.69020559.imp@village.org> To: Alexander@Leidinger.net Cc: bde@zeta.org.au, obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/share/mk bsd.sys.mk From: "M. Warner Losh" In-Reply-To: <200204111556.g3BFuaLh001628@Magelan.Leidinger.net> References: <20020411.002144.38305372.imp@village.org> <200204111556.g3BFuaLh001628@Magelan.Leidinger.net> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 In message: <200204111556.g3BFuaLh001628@Magelan.Leidinger.net> Alexander Leidinger writes: : On 11 Apr, M. Warner Losh wrote: : : > : > You did not respond to creating the non-standard /usr/include/scm.h as a : > : > place to put all these various compatibility macros. : > : : > : I like it better than for FreeBSD ids, but think it would : > : just increase unportability. You would still have to edit files to add it, : > : and it is not so easy to kill using Makefile hacks like -D__RCSID=__IGNORE : > : where __IGNORE() expands to nothing. : > : > CFLAGS += -include scm.h : > : > might be a way to deal (at least for gnu compilers) :-) : : I've seen the smiley, but please: don't do this, icc has no equivalent : to to -include. There's always cat :-) (oh wait, I guess I need two smiley faces for that suggestions :-) A big part of the problem is that there's no way to do '#define foo(x)' on the command line (correct me if I'm wrong). You can do '#define foo' on the command line, but that leaves calls of foo expanding to (x). You'd have to have __IGNORE (to go back to bde's example) defined in cdefs.h. And if you are doing that, then why not have __RCSID defined too. It's not like it pollutes the application name space :-). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message