aboutsummaryrefslogtreecommitdiff
path: root/src/lib/inc/mem.h
diff options
context:
space:
mode:
authorMarvin Borner2020-08-09 16:51:01 +0200
committerMarvin Borner2020-08-09 16:51:01 +0200
commit162d024a53e1e31e00ff0b6f47dd4590edebc551 (patch)
tree711d3886c300dfaddffdafaa89b690b45eb2101d /src/lib/inc/mem.h
parent79f2fa136f26a0b87917336e089485712ee49bd6 (diff)
Heavy restructuring of libc, kernel and apps
Diffstat (limited to 'src/lib/inc/mem.h')
-rw-r--r--src/lib/inc/mem.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/lib/inc/mem.h b/src/lib/inc/mem.h
deleted file mode 100644
index 2aaf4d8..0000000
--- a/src/lib/inc/mem.h
+++ /dev/null
@@ -1,18 +0,0 @@
-// MIT License, Copyright (c) 2020 Marvin Borner
-
-#ifndef MEM_H
-#define MEM_H
-
-#include <def.h>
-
-#define malloc(n) ((void *)((HEAP += n) - n)) // TODO: Implement real/better malloc/free
-#define free(x)
-
-extern u32 HEAP;
-extern u32 HEAP_START;
-
-void *memcpy(void *dst, const void *src, u32 n);
-void *memset(void *dst, int c, u32 n);
-int memcmp(const void *s1, const void *s2, u32 n);
-
-#endif