src/properties.c

changeset 1670
56f55f2f70c0
parent 1668
3ffdfe1776b4
parent 1666
1ac3c150ec56
equal deleted inserted replaced
1669:d416628d6c7d 1670:56f55f2f70c0
336 cx_strfree(&fname); 336 cx_strfree(&fname);
337 return CX_PROPERTIES_FILE_ERROR; 337 return CX_PROPERTIES_FILE_ERROR;
338 } 338 }
339 339
340 // initialize the parser 340 // initialize the parser
341 char linebuf[cx_properties_load_buf_size]; 341 char linebuf[CX_PROPERTIES_LOAD_BUF_SIZE];
342 char fillbuf[cx_properties_load_fill_size]; 342 char fillbuf[CX_PROPERTIES_LOAD_FILL_SIZE];
343 CxPropertiesStatus status; 343 CxPropertiesStatus status;
344 CxProperties parser; 344 CxProperties parser;
345 cxPropertiesInit(&parser, config); 345 cxPropertiesInit(&parser, config);
346 cxPropertiesUseStack(&parser, linebuf, cx_properties_load_buf_size); 346 cxPropertiesUseStack(&parser, linebuf, CX_PROPERTIES_LOAD_BUF_SIZE);
347 347
348 // read/fill/parse loop 348 // read/fill/parse loop
349 status = CX_PROPERTIES_NO_DATA; 349 status = CX_PROPERTIES_NO_DATA;
350 size_t keys_found = 0; 350 size_t keys_found = 0;
351 while (true) { 351 while (true) {

mercurial