Date: Wed, 11 Jul 2001 19:08:51 -0700 (PDT) From: Dima Dorfman <dd@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/config config.h config.y lang.l main.c Message-ID: <200107120208.f6C28pm48124@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200107120208.f6C28pm48124>
