--- a/src/properties.c Sat Nov 02 13:48:53 2024 +0100 +++ b/src/properties.c Sat Nov 02 19:27:45 2024 +0100 @@ -28,7 +28,6 @@ #include "cx/properties.h" -#include <string.h> #include <assert.h> static const int CX_PROPERTIES_FLAG_USE_STACK = 0x01; @@ -106,23 +105,15 @@ return cx_properties_rescuen_input(prop, len); } -void cxPropertiesInput( - CxProperties *prop, - const char *buf, - size_t len -) { - prop->text = buf; - prop->text_size = len; - prop->text_pos = 0; -} - -int cxPropertiesFill( +int cxPropertiesFilln( CxProperties *prop, const char *buf, size_t len ) { if (cx_properties_rescue_input(prop)) return 1; - cxPropertiesInput(prop, buf, len); + prop->text = buf; + prop->text_size = len; + prop->text_pos = 0; return 0; } @@ -429,7 +420,9 @@ } // set the input buffer and read the k/v-pairs - cxPropertiesInput(prop, input.ptr, input.length); + prop->text = input.ptr; + prop->text_size = input.length; + prop->text_pos = 0; CxPropertiesStatus kv_status; do {