diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-09-07 12:57:04 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-09-07 12:57:04 +0200 |
commit | 0558244645611f314f47e0fa427f7323ce253eaf (patch) | |
tree | 824bcd55ec8577703345106d0a08e167407500a7 /src/lib/mpmalloc.cc | |
parent | 0248c6352f2117e50fac71dd632a79d8fa4f8737 (diff) |
remove external libraries from main branch
Diffstat (limited to 'src/lib/mpmalloc.cc')
-rw-r--r-- | src/lib/mpmalloc.cc | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/src/lib/mpmalloc.cc b/src/lib/mpmalloc.cc deleted file mode 100644 index 2483a3a..0000000 --- a/src/lib/mpmalloc.cc +++ /dev/null @@ -1,42 +0,0 @@ -#include <stdlib.h> -#include "driver/stdout.h" -#include "lib/mpmalloc.h" - -void* mpcalloc(size_t nmemb, size_t size) -{ - void* ret = calloc(nmemb, size); -#ifdef ADDR_20BIT - kout << "calloc:" << dec << (uint32_t)nmemb << "x" << (uint32_t)size << "@" << ret << endl; -#else - kout << "calloc:" << dec << nmemb << "x" << size << "@" << ret << endl; -#endif - return ret; -} - -void* mpmalloc(size_t size) -{ - void* ret = malloc(size); -#ifdef ADDR_20BIT - kout << "malloc:" << dec << (uint32_t)size << "@" << ret << endl; -#else - kout << "malloc:" << dec << size << "@" << ret << endl; -#endif - return ret; -} - -void* mprealloc(void* addr, size_t size) -{ - void* ret = realloc(addr, size); -#ifdef ADDR_20BIT - kout << "realloc:" << addr << ":" << dec << (uint32_t)size << "@" << ret << endl; -#else - kout << "realloc:" << addr << ":" << dec << size << "@" << ret << endl; -#endif - return ret; -} - -void mpfree(void* addr) -{ - kout << "free:" << addr << endl; - free(addr); -} |