fixing GLOBAL_HEAP build

This commit is contained in:
Alex Shinn 2011-05-26 08:16:50 +09:00
parent 3d939c7e87
commit 28c227c604

2
gc.c
View file

@ -38,6 +38,7 @@ static size_t sexp_heap_total_size (sexp_heap h) {
return total_size; return total_size;
} }
#if ! SEXP_USE_GLOBAL_HEAP
void sexp_free_heap (sexp_heap heap) { void sexp_free_heap (sexp_heap heap) {
#if SEXP_USE_MMAP_GC #if SEXP_USE_MMAP_GC
munmap(heap, sexp_heap_pad_size(heap->size)); munmap(heap, sexp_heap_pad_size(heap->size));
@ -45,6 +46,7 @@ void sexp_free_heap (sexp_heap heap) {
free(heap); free(heap);
#endif #endif
} }
#endif
sexp_uint_t sexp_allocated_bytes (sexp ctx, sexp x) { sexp_uint_t sexp_allocated_bytes (sexp ctx, sexp x) {
sexp_uint_t res; sexp_uint_t res;