summaryrefslogtreecommitdiff
path: root/src/c/urweb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r--src/c/urweb.c10
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;