|
@@ -123,18 +123,22 @@ void set_requested_size(void *ptr, size_t size);
|
|
|
#endif /* FUTURE_FEATURES */
|
|
|
|
|
|
/**
|
|
|
- * Mark the memory block as used
|
|
|
+ * Mark the memory block as used, as well as the previous_size element of the
|
|
|
+ * next block if there is one.
|
|
|
*
|
|
|
+ * \param allocator The pointer to the allocator who manages the block.
|
|
|
* \param ptr The pointer to the data part of the memory block.
|
|
|
*/
|
|
|
-void mark_used(void *ptr);
|
|
|
+void mark_used(allocator_t *allocator, void *ptr);
|
|
|
|
|
|
/**
|
|
|
- * Mark the memory block as free
|
|
|
+ * Mark the memory block as free, as well as the previous_size element of the
|
|
|
+ * next block if there is one.
|
|
|
*
|
|
|
+ * \param allocator The pointer to the allocator who manages the block.
|
|
|
* \param ptr The pointer to the data part of the memory block.
|
|
|
*/
|
|
|
-void mark_free(void *ptr);
|
|
|
+void mark_free(allocator_t *allocator, void *ptr);
|
|
|
|
|
|
/**
|
|
|
* Set the availability and the size of the previous memory block
|