From owner-cvs-all Fri Jan 19 4:49:45 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9F08137B400; Fri, 19 Jan 2001 04:49:22 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f0JCnMj21551; Fri, 19 Jan 2001 04:49:22 -0800 (PST) (envelope-from peter) Message-Id: <200101191249.f0JCnMj21551@freefall.freebsd.org> From: Peter Wemm Date: Fri, 19 Jan 2001 04:49:22 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/config config.y configvers.h mkoptions.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG peter 2001/01/19 04:49:22 PST Modified files: usr.sbin/config config.y configvers.h mkoptions.c Log: Implement option strings that we can use in #ifdefs (where unavoidable) as a replacement for the evil #define NFOO. If 'device npx' is in the static kernel, a synthetic option '#define DEV_NPX 1' will be available to stick in an opt_xxx.h file. "#if NNPX > 0" can be replaced with "#ifdef DEV_NPX" and we can get rid of the overloaded meaning of the device count mechanism. Revision Changes Path 1.47 +26 -1 src/usr.sbin/config/config.y 1.25 +2 -2 src/usr.sbin/config/configvers.h 1.22 +2 -2 src/usr.sbin/config/mkoptions.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message