From owner-cvs-all Fri Apr 12 2:18:29 2002 Delivered-To: cvs-all@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 9B9DD37B405; Fri, 12 Apr 2002 02:18:24 -0700 (PDT) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id TAA20232; Fri, 12 Apr 2002 19:16:48 +1000 Date: Fri, 12 Apr 2002 19:16:43 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: "M. Warner Losh" Cc: Alexander@Leidinger.net, , , Subject: Re: cvs commit: src/share/mk bsd.sys.mk In-Reply-To: <20020411.101718.69020559.imp@village.org> Message-ID: <20020412190843.P7772-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 11 Apr 2002, M. Warner Losh wrote: > 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 OK. There is a way: just do it. This is unportable but works for gcc. > '#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 :-). I used __IGNORE without any args for portability. Oh, I left out a :-)/2. Putting -D__FOOID=__IGNORE in hundreds of makefiles would be uglier than putting __FOOID once in . However, it is easier if only one program uses __FOOID. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message