src/properties.c

changeset 1666
1ac3c150ec56
parent 1603
ffea41207599
equal deleted inserted replaced
1665:b79405fbf91d 1666:1ac3c150ec56
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