From: Martin Mares Date: Fri, 10 Oct 2003 18:01:39 +0000 (+0000) Subject: Export cfpool -- sometimes it's much convenient to pass just a pool than X-Git-Tag: holmes-import~1205 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9478d2fba1ec00b88ae7c71999ca6795bba91981;p=libucw.git Export cfpool -- sometimes it's much convenient to pass just a pool than a pointer to an allocation function. --- diff --git a/lib/conf.c b/lib/conf.c index d2c08de2..7e4443be 100644 --- a/lib/conf.c +++ b/lib/conf.c @@ -25,7 +25,7 @@ #define MAX_LEVEL 8 static struct cfitem *cfsection; -static struct mempool *cfpool; +struct mempool *cfpool; byte *cfdeffile = DEFAULT_CONFIG; diff --git a/lib/conf.h b/lib/conf.h index 00746da5..f4ede669 100644 --- a/lib/conf.h +++ b/lib/conf.h @@ -16,6 +16,7 @@ * Allocation in configuration memory pool. */ +extern struct mempool *cfpool; void *cfg_malloc(uns size); byte *cfg_stralloc(byte *s);