From 9fbe309befea3309aaa3b4ba51b0a98b67237143 Mon Sep 17 00:00:00 2001 From: peter Date: Sat, 10 Jun 2000 22:13:40 +0000 Subject: A checkpoint of a part of a work-in-progress. Some more cleanups for config(8). This commit allows control of the creation of the #include "foo.h" files. We now only create them explicitly when needed. BTW; these are mostly bad because they usually imply static limits on numbers of units for devices. eg: struct mysoftc sc[NFOO]; These static limits have Got To Go. --- usr.sbin/config/mkoptions.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'usr.sbin/config/mkoptions.c') diff --git a/usr.sbin/config/mkoptions.c b/usr.sbin/config/mkoptions.c index d53affd..f663331 100644 --- a/usr.sbin/config/mkoptions.c +++ b/usr.sbin/config/mkoptions.c @@ -112,6 +112,13 @@ options() read_options(); for (ol = otab; ol != 0; ol = ol->o_next) do_option(ol->o_name); + for (op = opt; op; op = op->op_next) { + if (!op->op_ownfile) { + printf("%s:%d: unknown option \"%s\"\n", + PREFIX, op->op_line, op->op_name); + exit(1); + } + } } /* -- cgit v1.1