X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fshell%2Fconfig.c;h=4208b8665438987f55d834fe700176a8bcbe1362;hb=91c499892f07ad6494351a1c1985a0d3e2600a25;hp=e00ca8f4f595f8ad944ccbdd8150a88580cb7354;hpb=8dcdd3ce09608202e04735cfbb488606a895d902;p=libucw.git diff --git a/lib/shell/config.c b/lib/shell/config.c index e00ca8f4..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,83 +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 #include -static struct cfitem *items; -static byte *flags; - static void help(void) { - die("Usage: config [-C] [-S
.