comparison src/c/urweb.c @ 832:249740301a0a

Fix pathmap bug; expose lower-level heap manipulation from C
author Adam Chlipala <adamc@hcoop.net>
date Sun, 31 May 2009 13:43:02 -0400
parents 5e1a4b12c83a
children 74a1e3bdf430
comparison
equal deleted inserted replaced
831:5e1a4b12c83a 832:249740301a0a
1031 1031
1032 b->start = new_heap; 1032 b->start = new_heap;
1033 } 1033 }
1034 } 1034 }
1035 1035
1036 static void uw_check_heap(uw_context ctx, size_t extra) { 1036 void uw_check_heap(uw_context ctx, size_t extra) {
1037 buf_check_ctx(ctx, &ctx->heap, extra, "heap chunk"); 1037 buf_check_ctx(ctx, &ctx->heap, extra, "heap chunk");
1038 }
1039
1040 char *uw_heap_front(uw_context ctx) {
1041 return ctx->heap.front;
1042 }
1043
1044 void uw_set_heap_front(uw_context ctx, char *fr) {
1045 ctx->heap.front = fr;
1038 } 1046 }
1039 1047
1040 void *uw_malloc(uw_context ctx, size_t len) { 1048 void *uw_malloc(uw_context ctx, size_t len) {
1041 void *result; 1049 void *result;
1042 1050