| 310 #ifndef CX_PROPERTIES_LOAD_BUF_SIZE |
310 #ifndef CX_PROPERTIES_LOAD_BUF_SIZE |
| 311 #define CX_PROPERTIES_LOAD_BUF_SIZE 256 |
311 #define CX_PROPERTIES_LOAD_BUF_SIZE 256 |
| 312 #endif |
312 #endif |
| 313 const unsigned cx_properties_load_buf_size = CX_PROPERTIES_LOAD_BUF_SIZE; |
313 const unsigned cx_properties_load_buf_size = CX_PROPERTIES_LOAD_BUF_SIZE; |
| 314 |
314 |
| 315 CxPropertiesStatus cx_properties_load(CxPropertiesConfig config, |
315 CxPropertiesStatus cx_properties_load(const CxAllocator *allocator, |
| 316 const CxAllocator *allocator, cxstring filename, CxMap *target) { |
316 cxstring filename, CxMap *target, CxPropertiesConfig config) { |
| 317 if (allocator == NULL) { |
317 if (allocator == NULL) { |
| 318 allocator = cxDefaultAllocator; |
318 allocator = cxDefaultAllocator; |
| 319 } |
319 } |
| 320 |
320 |
| 321 // sanity check for the map |
321 // sanity check for the map |