X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fshell%2Fconfig.c;h=4208b8665438987f55d834fe700176a8bcbe1362;hb=1a3cd3005f2a5cda8dbdaaf8f153ae5703845876;hp=5ff0c30da3efff402e3fc0c02214c3b61d23e2a0;hpb=181f16e7dc0932027932fee830c5d77876ef53db;p=libucw.git diff --git a/lib/shell/config.c b/lib/shell/config.c index 5ff0c30d..4208b866 100644 --- a/lib/shell/config.c +++ b/lib/shell/config.c @@ -1,7 +1,9 @@ /* - * Sherlock Library -- Shell Interface to Configuration Files + * UCW Library -- Shell Interface to Configuration Files * - * (c) 2002 Martin Mares + * (c) 2002--2005 Martin Mares + * (c) 2006 Robert Spalek + * (c) 2006 Pavel Charvat * * Once we were using this beautiful Shell version, but it turned out * that it doesn't work with nested config files: @@ -17,82 +19,416 @@ #include "lib/lib.h" #include "lib/conf.h" +#include "lib/getopt.h" +#include "lib/conf-internal.h" +#include "lib/clists.h" +#include "lib/mempool.h" +#include "lib/chartype.h" +#include "lib/bbuf.h" #include #include #include - -static struct cfitem *items; -static byte *flags; +#include static void help(void) { - die("Usage: config [-C] [-S
.