X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=lib%2Fshell%2Fconfig.c;h=ba60f0350980861c1ee24a21456e7425744efe4f;hb=d5e8872563f6fde8299db971ffb6494c2438c590;hp=95ddce11f3332223fa0e2ac550fbf2488b14da21;hpb=149855f3744354726d12be1a15f4eb6e009e6314;p=libucw.git diff --git a/lib/shell/config.c b/lib/shell/config.c index 95ddce11..ba60f035 100644 --- a/lib/shell/config.c +++ b/lib/shell/config.c @@ -2,6 +2,8 @@ * UCW Library -- Shell Interface to Configuration Files * * (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,29 +19,32 @@ #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; - -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
.