From owner-cvs-all Wed Jul 11 19: 8:57 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 D95DB37B405; Wed, 11 Jul 2001 19:08:51 -0700 (PDT) (envelope-from dd@FreeBSD.org) Received: (from dd@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f6C28pm48124; Wed, 11 Jul 2001 19:08:51 -0700 (PDT) (envelope-from dd) Message-Id: <200107120208.f6C28pm48124@freefall.freebsd.org> From: Dima Dorfman Date: Wed, 11 Jul 2001 19:08:51 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/config config.h config.y lang.l main.c X-FreeBSD-CVS-Branch: HEAD 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 dd 2001/07/11 19:08:51 PDT Modified files: usr.sbin/config config.h config.y lang.l main.c Log: Introduce an "include" directive. It takes one argument, a filename to be included into this one. This works the same way as #include does in C; as far as the user is concerned, the included file is inlined into the current one. Since config(8) is no longer limited to working on one user-supplied file, printing just a line number in an error message is not sufficient. The new global variable yyfile represents the file currently being parsed, and must be printed as well. Reviewed by: imp Obtained from: OpenBSD Revision Changes Path 1.49 +2 -1 src/usr.sbin/config/config.h 1.55 +16 -9 src/usr.sbin/config/config.y 1.31 +86 -1 src/usr.sbin/config/lang.l 1.53 +2 -1 src/usr.sbin/config/main.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message