2 * UCW Library -- Configuration files: memory allocation
4 * (c) 2001--2006 Robert Spalek <robert@ucw.cz>
5 * (c) 2003--2006 Martin Mares <mj@ucw.cz>
7 * This software may be freely distributed and used according to the terms
8 * of the GNU Lesser General Public License.
13 #include "lib/mempool.h"
15 struct mempool *cf_pool; // current pool for loading new configuration
20 return mp_alloc(cf_pool, size);
24 cf_malloc_zero(uns size)
26 return mp_alloc_zero(cf_pool, size);
30 cf_strdup(const char *s)
32 return mp_strdup(cf_pool, s);
36 cf_printf(const char *fmt, ...)
40 char *res = mp_vprintf(cf_pool, fmt, args);