last minute fixes for issue #548

Tue, 11 Feb 2025 21:19:20 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 11 Feb 2025 21:19:20 +0100
changeset 1193
cfa44f3f5e3b
parent 1192
1f69336faa63
child 1194
b9654414c087

last minute fixes for issue #548

src/cx/iterator.h file | annotate | diff | comparison | revisions
src/cx/json.h file | annotate | diff | comparison | revisions
src/cx/list.h file | annotate | diff | comparison | revisions
src/cx/properties.h file | annotate | diff | comparison | revisions
src/cx/string.h file | annotate | diff | comparison | revisions
src/properties.c file | annotate | diff | comparison | revisions
--- a/src/cx/iterator.h	Tue Feb 11 21:05:24 2025 +0100
+++ b/src/cx/iterator.h	Tue Feb 11 21:19:20 2025 +0100
@@ -147,8 +147,6 @@
 /**
  * Checks if the iterator points to valid data.
  *
- * This is especially false for past-the-end iterators.
- *
  * @param iter the iterator
  * @retval true if the iterator points to valid data
  * @retval false if the iterator already moved past the end
--- a/src/cx/json.h	Tue Feb 11 21:05:24 2025 +0100
+++ b/src/cx/json.h	Tue Feb 11 21:19:20 2025 +0100
@@ -491,8 +491,7 @@
 /**
  * Writes a JSON value to a buffer or stream.
  *
- * This function blocks until all data is written or an error when trying
- * to write data occurs.
+ * This function blocks until either all data is written, or an error occurs.
  * The write operation is not atomic in the sense that it might happen
  * that the data is only partially written when an error occurs with no
  * way to indicate how much data was written.
--- a/src/cx/list.h	Tue Feb 11 21:05:24 2025 +0100
+++ b/src/cx/list.h	Tue Feb 11 21:19:20 2025 +0100
@@ -80,7 +80,6 @@
 
     /**
      * Member function for inserting a single element.
-     * Implementors SHOULD see to performant implementations for corner cases.
      */
     int (*insert_element)(
             struct cx_list_s *list,
@@ -90,7 +89,6 @@
 
     /**
      * Member function for inserting multiple elements.
-     * Implementors SHOULD see to performant implementations for corner cases.
      *
      * @see cx_list_default_insert_array()
      */
--- a/src/cx/properties.h	Tue Feb 11 21:05:24 2025 +0100
+++ b/src/cx/properties.h	Tue Feb 11 21:19:20 2025 +0100
@@ -59,12 +59,6 @@
     char delimiter;
 
     /**
-     * The character, when appearing at the end of a line, continues that line.
-     * This is '\' by default.
-     */
-    // char continuation; // TODO: line continuation in properties
-
-    /**
      * The first comment character.
      * This is '#' by default.
      */
@@ -81,6 +75,15 @@
      * This is not set by default.
      */
     char comment3;
+
+    /*
+     * The character, when appearing at the end of a line, continues that line.
+     * This is '\' by default.
+     */
+    /**
+     * Reserved for future use.
+     */
+    char continuation;
 };
 
 /**
--- a/src/cx/string.h	Tue Feb 11 21:05:24 2025 +0100
+++ b/src/cx/string.h	Tue Feb 11 21:19:20 2025 +0100
@@ -52,7 +52,6 @@
     /**
      * A pointer to the string.
      * @note The string is not necessarily @c NULL terminated.
-     * Always use the length.
      */
     char *ptr;
     /** The length of the string */
@@ -71,7 +70,6 @@
     /**
      * A pointer to the immutable string.
      * @note The string is not necessarily @c NULL terminated.
-     * Always use the length.
      */
     const char *ptr;
     /** The length of the string */
--- a/src/properties.c	Tue Feb 11 21:05:24 2025 +0100
+++ b/src/properties.c	Tue Feb 11 21:19:20 2025 +0100
@@ -32,10 +32,10 @@
 
 const CxPropertiesConfig cx_properties_config_default = {
         '=',
-        //'\\',
         '#',
         '\0',
-        '\0'
+        '\0',
+    '\\',
 };
 
 void cxPropertiesInit(

mercurial