Add wrappers for malloc/realloc/free. See #43.

This commit is contained in:
Stephen Dolan committed 2012-12-18 16:53:51 +00:00
1 parent 75421cbfe3
commit 04daafbde3
15 files changed
+106 -51

No files matched your search

+6 -1
View File
@@ -195,6 +195,11 @@
#include "jv_dtoa.h"
#include "jv_alloc.h"
#define MALLOC jv_mem_alloc
#define FREE jv_mem_free
#ifndef Long
#define Long long
@@ -572,7 +577,7 @@ void jvp_dtoa_context_free(struct dtoa_context* C) {
while (C->freelist[k]) {
Bigint* v = C->freelist[k];
C->freelist[k] = v->next;
free(v);
FREE(v);
}
}
}