renamed moo_allocheapmem() to moo_allocheapspace() and changed its second parameter from moo_heap_t* to moo_space_t*
added moo_space_t changed moo_makeheap() to create a single heap and split it to multiple spaces
This commit is contained in:
@@ -1073,15 +1073,15 @@ void moo_killheap (
|
||||
);
|
||||
|
||||
/**
|
||||
* The moo_allocheapmem() function allocates \a size bytes in the heap pointed
|
||||
* The moo_allocheapspace() function allocates \a size bytes in the heap pointed
|
||||
* to by \a heap.
|
||||
*
|
||||
* \return memory pointer on success and #MOO_NULL on failure.
|
||||
*/
|
||||
void* moo_allocheapmem (
|
||||
moo_t* moo,
|
||||
moo_heap_t* heap,
|
||||
moo_oow_t size
|
||||
void* moo_allocheapspace (
|
||||
moo_t* moo,
|
||||
moo_space_t* space,
|
||||
moo_oow_t size
|
||||
);
|
||||
|
||||
/* ========================================================================= */
|
||||
|
||||
Reference in New Issue
Block a user