summaryrefslogtreecommitdiffstats
path: root/src/alloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloc.h')
-rw-r--r--src/alloc.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/alloc.h b/src/alloc.h
index 1fafbab..c4badc4 100644
--- a/src/alloc.h
+++ b/src/alloc.h
@@ -338,10 +338,8 @@ void varena_init(struct varena *varena, size_t align, size_t offset, size_t size
* The that allocated the object.
* @ptr
* The object to free.
- * @count
- * The length of the flexible array.
*/
-void varena_free(struct varena *varena, void *ptr, size_t count);
+void varena_free(struct varena *varena, void *ptr);
/**
* Arena-allocate a flexible struct.
@@ -363,15 +361,13 @@ void *varena_alloc(struct varena *varena, size_t count);
* The varena to allocate from.
* @ptr
* The object to resize.
- * @old_count
- * The old array length.
- * @new_count
+ * @count
* The new array length.
* @return
* The resized struct, or NULL on failure.
*/
_nodiscard
-void *varena_realloc(struct varena *varena, void *ptr, size_t old_count, size_t new_count);
+void *varena_realloc(struct varena *varena, void *ptr, size_t count);
/**
* Grow a flexible struct by an arbitrary amount.
@@ -380,7 +376,7 @@ void *varena_realloc(struct varena *varena, void *ptr, size_t old_count, size_t
* The varena to allocate from.
* @ptr
* The object to resize.
- * @count
+ * @count[in,out]
* Pointer to the flexible array length.
* @return
* The resized struct, or NULL on failure.