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; |