X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fshell%2Fconfig.c;h=a4ac005a40300cbe54a627eb5da1ae808ee41590;hb=6e052a5a07718b9f0ff417b27adf8b8ed8903f36;hp=7fa161175d339f43b8a5e1845a31b1f7ffa5e033;hpb=b6a5054473b03660664647866d41601431e83b07;p=libucw.git diff --git a/lib/shell/config.c b/lib/shell/config.c index 7fa16117..a4ac005a 100644 --- a/lib/shell/config.c +++ b/lib/shell/config.c @@ -3,6 +3,7 @@ * * (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: @@ -19,26 +20,31 @@ #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 -enum flag { - F_STRING = 0, - F_INT = 1, - F_DOUBLE = 2, - F_INT64 = 3, - F_TYPE_MASK = 7, - F_ARRAY = 0x80, -}; - static void help(void) { fputs("\n\ -Usage: config [-C] [-S
.