361 */ |
361 */ |
362 cx_attr_nonnull |
362 cx_attr_nonnull |
363 void cxPropertiesDestroy(CxProperties *prop); |
363 void cxPropertiesDestroy(CxProperties *prop); |
364 |
364 |
365 /** |
365 /** |
|
366 * Destroys and re-initializes the properties interface. |
|
367 * |
|
368 * You might want to use this, to reset the parser after |
|
369 * encountering a syntax error. |
|
370 * |
|
371 * @param prop the properties interface |
|
372 */ |
|
373 cx_attr_nonnull |
|
374 static inline void cxPropertiesReset(CxProperties *prop) { |
|
375 CxPropertiesConfig config = prop->config; |
|
376 cxPropertiesDestroy(prop); |
|
377 cxPropertiesInit(prop, config); |
|
378 } |
|
379 |
|
380 /** |
366 * Initialize a properties parser with the default configuration. |
381 * Initialize a properties parser with the default configuration. |
367 * |
382 * |
368 * @param prop the properties interface |
383 * @param prop the properties interface |
369 * @see cxPropertiesInit() |
384 * @see cxPropertiesInit() |
370 */ |
385 */ |