src/server/config/conf.c

changeset 579
e10457d74fe1
parent 576
5c31cc844c68
equal deleted inserted replaced
578:eb48f716b31c 579:e10457d74fe1
32 #include <string.h> 32 #include <string.h>
33 33
34 int cfg_parse_basic_file(ConfigParser *parser, FILE *in) { 34 int cfg_parse_basic_file(ConfigParser *parser, FILE *in) {
35 parser->lines_begin = NULL; 35 parser->lines_begin = NULL;
36 parser->lines_end = NULL; 36 parser->lines_end = NULL;
37 CxMempool *mp = cxBasicMempoolCreate(512); 37 CxMempool *mp = cxMempoolCreateSimple(512);
38 CxAllocator *a = (CxAllocator*)mp->allocator; 38 CxAllocator *a = (CxAllocator*)mp->allocator;
39 parser->a = a; 39 parser->a = a;
40 parser->mp = mp; 40 parser->mp = mp;
41 41
42 // one logical line over many lines 42 // one logical line over many lines

mercurial