diff options
author | 2009-05-31 13:43:02 -0400 | |
---|---|---|
committer | 2009-05-31 13:43:02 -0400 | |
commit | 004aab09629c2bb54b31ea86fddae1b288df27b2 (patch) | |
tree | 51ecf2038eca9a8eed5601a561c0510ebba247c7 /src/c | |
parent | a6424094365f7d63b6c9dade8f8f72ef26e92b45 (diff) |
Fix pathmap bug; expose lower-level heap manipulation from C
Diffstat (limited to 'src/c')
-rw-r--r-- | src/c/urweb.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index ffef10e7..0c6eefd5 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -1033,10 +1033,18 @@ static void buf_check_ctx(uw_context ctx, buf *b, size_t extra, const char *desc } } -static void uw_check_heap(uw_context ctx, size_t extra) { +void uw_check_heap(uw_context ctx, size_t extra) { buf_check_ctx(ctx, &ctx->heap, extra, "heap chunk"); } +char *uw_heap_front(uw_context ctx) { + return ctx->heap.front; +} + +void uw_set_heap_front(uw_context ctx, char *fr) { + ctx->heap.front = fr; +} + void *uw_malloc(uw_context ctx, size_t len) { void *result; |