src/server/config/conf.c

changeset 99
b9a6af0ae41a
parent 95
74a81d9e19d0
child 115
51d9a15eac98
equal deleted inserted replaced
98:59656cd16411 99:b9a6af0ae41a
31 #include <string.h> 31 #include <string.h>
32 32
33 int cfg_parse_basic_file(ConfigParser *parser, FILE *in) { 33 int cfg_parse_basic_file(ConfigParser *parser, FILE *in) {
34 parser->lines = NULL; 34 parser->lines = NULL;
35 UcxMempool *mp = ucx_mempool_new(512); 35 UcxMempool *mp = ucx_mempool_new(512);
36 parser->mp = ucx_mempool_allocator(mp); 36 parser->mp = mp->allocator;
37 37
38 // one logical line over many lines 38 // one logical line over many lines
39 sstr_t mline; 39 sstr_t mline;
40 mline.ptr = NULL; 40 mline.ptr = NULL;
41 mline.length = 0; 41 mline.length = 0;

mercurial