Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0e9f3f5c52
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (14 sloc) 0.566 kB
#include "emalloc.h"
// TMP
// Also make tmps roots when assigned to. Make enough room with GROWROOTS
// When copying, make sure that the addresses stored at the roots are updated.
// Actually, should the root set be the addresses of the local variables? Then
// when they are copied, they can be updated with the new location.
extern ALLOCATOR allocate;
extern REALLOCATOR reallocate;
void* e_malloc(VMState* vm, size_t size) {
return (VAL)allocate(size);
}
void* e_realloc(VMState* vm, void* ptr, size_t size) {
return (VAL)reallocate(ptr, size);
}
Jump to Line
Something went wrong with that request. Please try again.