mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[liba] remove a warning
This commit is contained in:
@@ -9,16 +9,6 @@ heap_config_t HeapConfig = {
|
||||
.nHeap = 0
|
||||
};
|
||||
|
||||
static void configure_heap() {
|
||||
HeapConfig.nHeap = (&_liba_heap_end - &_liba_heap_start);
|
||||
HeapConfig.pHeap = &_liba_heap_start;
|
||||
HeapConfig.mnReq = 1;
|
||||
HeapConfig.bMemstat = 0;
|
||||
HeapConfig.xLog = 0;
|
||||
|
||||
memsys5Init(0);
|
||||
}
|
||||
|
||||
// Memsys headers cannot be included easily so we rewrite them here
|
||||
int memsys5Init(void *NotUsed);
|
||||
void memsys5FreeUnsafe(void *pOld);
|
||||
@@ -26,6 +16,15 @@ void * memsys5MallocUnsafe(int nByte);
|
||||
void * memsys5Realloc(void *pPrior, int nBytes);
|
||||
int memsys5Roundup(int n);
|
||||
|
||||
static void configure_heap() {
|
||||
HeapConfig.nHeap = (&_liba_heap_end - &_liba_heap_start);
|
||||
HeapConfig.pHeap = &_liba_heap_start;
|
||||
HeapConfig.mnReq = 1;
|
||||
HeapConfig.bMemstat = 0;
|
||||
HeapConfig.xLog = 0;
|
||||
memsys5Init(0);
|
||||
}
|
||||
|
||||
void free(void *ptr) {
|
||||
if (ptr != NULL) {
|
||||
memsys5FreeUnsafe(ptr);
|
||||
|
||||
Reference in New Issue
Block a user