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 |