Date: Fri, 12 Apr 2002 19:16:43 +1000 (EST) From: Bruce Evans <bde@zeta.org.au> To: "M. Warner Losh" <imp@village.org> Cc: Alexander@Leidinger.net, <obrien@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org> Subject: Re: cvs commit: src/share/mk bsd.sys.mk Message-ID: <20020412190843.P7772-100000@gamplex.bde.org> In-Reply-To: <20020411.101718.69020559.imp@village.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <sys/foo.h>. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020412190843.P7772-100000>