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:
hyunghwan.chung
2018-11-30 13:37:15 +00:00
parent 4de478a9cc
commit 1cffec34e8
6 changed files with 63 additions and 54 deletions

View File

@@ -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
);
/* ========================================================================= */