#include <stdlib.h>
#include "log.h"
+#warning This module needs some serious cleanup. !!! FIX !!!
+
// Useful structs (for doubly linked list in this case)
typedef struct sMemBlockInfo
alias->info = info;
}
-void InitMemory(void)
+void MemoryInit(void)
{
memoryInfo.next = memoryInfo.prev = NULL;
currentAllocatedMemory = maximumAllocatedMemory = 0;
if (ptr == NULL)
{
WriteLog("Failed!\n");
- log_done();
+ LogDone();
-//BAD, BAD, BAD! Need to do better than this!!!
-//And since we ARE keeping track of all memory allocations, we should unwind the stack here as well...!
-// !!! FIX !!!
+#warning BAD, BAD, BAD! Need to do better than this!!!
+#warning And since we ARE keeping track of all memory allocations, we should unwind the stack here as well...!
+#warning !!! FIX !!!
exit(0);
}