comparison src/c/urweb.c @ 2046:ced78ef1c82f

New .urp directive: file
author Adam Chlipala <adam@chlipala.net>
date Thu, 31 Jul 2014 09:56:41 -0400
parents 1d36654c2d21
children 4ad46302f659
comparison
equal deleted inserted replaced
2045:534577e429e1 2046:ced78ef1c82f
3859 ctx->cleanup_front = ctx->cleanup; 3859 ctx->cleanup_front = ctx->cleanup;
3860 3860
3861 longjmp(ctx->jmp_buf, RETURN_INDIRECTLY); 3861 longjmp(ctx->jmp_buf, RETURN_INDIRECTLY);
3862 } 3862 }
3863 3863
3864 void uw_replace_page(uw_context ctx, const char *data, size_t size) {
3865 uw_buffer_reset(&ctx->page);
3866 ctx_uw_buffer_append(ctx, "page", &ctx->page, data, size);
3867 }
3868
3864 __attribute__((noreturn)) void uw_return_blob_from_page(uw_context ctx, uw_Basis_string mimeType) { 3869 __attribute__((noreturn)) void uw_return_blob_from_page(uw_context ctx, uw_Basis_string mimeType) {
3865 cleanup *cl; 3870 cleanup *cl;
3866 int len; 3871 int len;
3867 char *oldh; 3872 char *oldh;
3868 3873