Blame |
Last modification |
View Log
| Download
| RSS feed
#include "brstdmem.h"
#include "harness/trace.h"
#include <stdlib.h>
// Global variables
br_allocator BrStdlibAllocator = { "malloc", BrStdlibAllocate, BrStdlibFree, BrStdlibInquire, BrStdlibAlign };
br_allocator* _BrDefaultAllocator = &BrStdlibAllocator;
void* BrStdlibAllocate(br_size_t size, br_uint_8 type) {
if (m == NULL) {
/* TODO BrFailure(); call*/
}
return m;
}
void BrStdlibFree(void* mem) {
}
br_size_t BrStdlibInquire(br_uint_8 type) {
return 0;
}
br_uint_32 BrStdlibAlign(br_uint_8 type) {
return sizeof(void*);
}