Previous commit was a blunder. This commit setups up Malloc proper and includes a working string concat.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
#ifndef __MEMORYMANAGER_H
|
||||
#define __MEMORYMANAGER_H
|
||||
|
||||
#include "system.h"
|
||||
|
||||
typedef struct MemoryChunk
|
||||
{
|
||||
struct MemoryChunk* Prev;
|
||||
struct MemoryChunk* Next;
|
||||
size_t Size;
|
||||
bool Allocated;
|
||||
};
|
||||
|
||||
void MemoryManager(size_t start, size_t size);
|
||||
|
||||
void* Malloc(size_t size);
|
||||
|
||||
void Free(void* ptr);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user