use reallocate instead of re-allocate

Tue, 11 Feb 2025 19:41:02 +0100

author
Mike Becker <universe@uap-core.de>
date
Tue, 11 Feb 2025 19:41:02 +0100
changeset 1185
d825aca193d3
parent 1184
34d60b1664f2
child 1186
7fc882813125

use reallocate instead of re-allocate

src/cx/allocator.h file | annotate | diff | comparison | revisions
src/cx/string.h file | annotate | diff | comparison | revisions
--- a/src/cx/allocator.h	Tue Feb 11 19:37:53 2025 +0100
+++ b/src/cx/allocator.h	Tue Feb 11 19:41:02 2025 +0100
@@ -132,7 +132,7 @@
 );
 
 /**
- * Re-allocate a previously allocated block and changes the pointer in-place,
+ * Reallocate a previously allocated block and changes the pointer in-place,
  * if necessary.
  *
  * @par Error handling
@@ -153,7 +153,7 @@
 );
 
 /**
- * Re-allocate a previously allocated block and changes the pointer in-place,
+ * Reallocate a previously allocated block and changes the pointer in-place,
  * if necessary.
  *
  * The size is calculated by multiplying @p nemb and @p size.
@@ -179,7 +179,7 @@
 );
 
 /**
- * Re-allocate a previously allocated block and changes the pointer in-place,
+ * Reallocate a previously allocated block and changes the pointer in-place,
  * if necessary.
  *
  * @par Error handling
@@ -194,7 +194,7 @@
 #define cx_reallocate(mem, n) cx_reallocate_((void**)(mem), n)
 
 /**
- * Re-allocate a previously allocated block and changes the pointer in-place,
+ * Reallocate a previously allocated block and changes the pointer in-place,
  * if necessary.
  *
  * The size is calculated by multiplying @p nemb and @p size.
@@ -246,7 +246,7 @@
 );
 
 /**
- * Re-allocate the previously allocated block in @p mem, making the new block
+ * Reallocate the previously allocated block in @p mem, making the new block
  * @p n bytes long.
  * This function may return the same pointer that was passed to it, if moving
  * the memory was not necessary.
@@ -256,7 +256,7 @@
  * @param allocator the allocator
  * @param mem pointer to the previously allocated block
  * @param n the new size in bytes
- * @return a pointer to the re-allocated memory
+ * @return a pointer to the reallocated memory
  */
 cx_attr_nodiscard
 cx_attr_nonnull_arg(1)
@@ -270,7 +270,7 @@
 );
 
 /**
- * Re-allocate the previously allocated block in @p mem, making the new block
+ * Reallocate the previously allocated block in @p mem, making the new block
  * @p n bytes long.
  * This function may return the same pointer that was passed to it, if moving
  * the memory was not necessary.
@@ -285,7 +285,7 @@
  * @param mem pointer to the previously allocated block
  * @param nmemb the number of elements
  * @param size the size of each element
- * @return a pointer to the re-allocated memory
+ * @return a pointer to the reallocated memory
  */
 cx_attr_nodiscard
 cx_attr_nonnull_arg(1)
@@ -300,7 +300,7 @@
 );
 
 /**
- * Re-allocate a previously allocated block and changes the pointer in-place,
+ * Reallocate a previously allocated block and changes the pointer in-place,
  * if necessary.
  * This function acts like cxRealloc() using the pointer pointed to by @p mem.
  *
@@ -325,7 +325,7 @@
 );
 
 /**
- * Re-allocate a previously allocated block and changes the pointer in-place,
+ * Reallocate a previously allocated block and changes the pointer in-place,
  * if necessary.
  * This function acts like cxRealloc() using the pointer pointed to by @p mem.
  *
@@ -344,7 +344,7 @@
     cxReallocate_(allocator, (void**)(mem), n)
 
 /**
- * Re-allocate a previously allocated block and changes the pointer in-place,
+ * Reallocate a previously allocated block and changes the pointer in-place,
  * if necessary.
  * This function acts like cxReallocArray() using the pointer pointed to
  * by @p mem.
@@ -373,7 +373,7 @@
 );
 
 /**
- * Re-allocate a previously allocated block and changes the pointer in-place,
+ * Reallocate a previously allocated block and changes the pointer in-place,
  * if necessary.
  * This function acts like cxReallocArray() using the pointer pointed to
  * by @p mem.
--- a/src/cx/string.h	Tue Feb 11 19:37:53 2025 +0100
+++ b/src/cx/string.h	Tue Feb 11 19:41:02 2025 +0100
@@ -680,7 +680,7 @@
  * @param string the string to split
  * @param delim  the delimiter
  * @param limit the maximum number of split items
- * @param output a pre-allocated array of at least @p limit length
+ * @param output a preallocated array of at least @p limit length
  * @return the actual number of split items
  */
 cx_attr_nodiscard
@@ -735,7 +735,7 @@
  * @param string the string to split
  * @param delim  the delimiter
  * @param limit the maximum number of split items
- * @param output a pre-allocated array of at least @p limit length
+ * @param output a preallocated array of at least @p limit length
  * @return the actual number of split items
  */
 cx_attr_nodiscard

mercurial