]> mj.ucw.cz Git - libucw.git/commitdiff
Export cfpool -- sometimes it's much convenient to pass just a pool than
authorMartin Mares <mj@ucw.cz>
Fri, 10 Oct 2003 18:01:39 +0000 (18:01 +0000)
committerMartin Mares <mj@ucw.cz>
Fri, 10 Oct 2003 18:01:39 +0000 (18:01 +0000)
a pointer to an allocation function.

lib/conf.c
lib/conf.h

index d2c08de23b5e0ded212290866de3a5675c82f8a5..7e4443bea453a9a2697e0cee85650510e4f8edab 100644 (file)
@@ -25,7 +25,7 @@
 #define        MAX_LEVEL       8
 
 static struct cfitem *cfsection;
-static struct mempool *cfpool;
+struct mempool *cfpool;
 
 byte *cfdeffile = DEFAULT_CONFIG;
 
index 00746da5d346cc704fc32108083281b45b23f620..f4ede6699942429c10c1efa29c5521c15f14d32f 100644 (file)
@@ -16,6 +16,7 @@
  * Allocation in configuration memory pool.
  */
 
+extern struct mempool *cfpool;
 void *cfg_malloc(uns size);
 byte *cfg_stralloc(byte *s);