diff --git a/System Abstraction/win32/cdb_memroy.c b/System Abstraction/win32/cdb_memroy.c new file mode 100644 index 0000000..15a2861 --- /dev/null +++ b/System Abstraction/win32/cdb_memroy.c @@ -0,0 +1,17 @@ +#include "../cdb_Sustem.h" +#include + +// returns NULL, if there is no memroy left or an error occured +void * sus_heapAlloc(size_t bytes){ + return HeapAlloc(GetProcessHeap(), 0, bytes); //generic call to the windows heapAlloc function +} + +// returns NULL, if there is no memroy left or an error occured +void * sus_heapResize(void * memroy, size_t newBytes){ + HeapReAlloc(GetProcessHeap(), 0, memroy, newBytes); +} + + // what should this function do, if an error occurse.. +void sus_heapFree(void * memroy){ + HeapFree(GetProcessHeap(), 0, memroy); +}