diff options
author | Adam Chlipala <adamc@hcoop.net> | 2009-05-31 13:43:02 -0400 |
---|---|---|
committer | Adam Chlipala <adamc@hcoop.net> | 2009-05-31 13:43:02 -0400 |
commit | 8c06af6123389e9f4a2302e08230b1e5aaadb590 (patch) | |
tree | 51ecf2038eca9a8eed5601a561c0510ebba247c7 /src/c/urweb.c | |
parent | f28d649eedad9ebd39dab473150faa9001bcb017 (diff) |
Fix pathmap bug; expose lower-level heap manipulation from C
Diffstat (limited to 'src/c/urweb.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; |