src/cx/properties.h

changeset 1031
8a90552bba29
parent 1013
add8358fc3c3
child 1036
6d29532a76c3
--- a/src/cx/properties.h	Fri Dec 20 15:00:05 2024 +0100
+++ b/src/cx/properties.h	Fri Dec 20 15:00:31 2024 +0100
@@ -39,7 +39,7 @@
 #include "common.h"
 #include "string.h"
 #include "map.h"
-#include "array_list.h"
+#include "buffer.h"
 
 #include <stdio.h>
 #include <string.h>
@@ -169,39 +169,14 @@
     CxPropertiesConfig config;
 
     /**
-     * The text buffer.
-     */
-    const char *text;
-
-    /**
-     * Size of the text buffer.
+     * The text input buffer.
      */
-    size_t text_size;
-
-    /**
-     * Position in the text buffer.
-     */
-    size_t text_pos;
+    CxBuffer input;
 
     /**
-     * Temporary internal buffer.
-     */
-    char *buf;
-
-    /**
-     * Size of the internal buffer.
+     * Internal buffer.
      */
-    size_t buf_size;
-
-    /**
-     * Capacity of the internal buffer.
-     */
-    size_t buf_capacity;
-
-    /**
-     * Internal flags.
-     */
-    int flags;
+    CxBuffer buffer;
 };
 
 /**
@@ -547,7 +522,7 @@
 #endif
 
 /**
- * Specifies stack memory that shall be used by #cxPropertiesFill().
+ * Specifies stack memory that shall be used as internal buffer.
  *
  * @param prop the properties interface
  * @param buf a pointer to stack memory

mercurial