comparison src/c/urweb.c @ 1332:4dd5d23bace2

minHeap option in .urp files
author Adam Chlipala <adam@chlipala.net>
date Sat, 11 Dec 2010 15:16:04 -0500
parents 452b14d88a10
children a1aa62b472cf
comparison
equal deleted inserted replaced
1331:a6427d1eda6f 1332:4dd5d23bace2
346 346
347 void uw_app_init(uw_app *app) { 347 void uw_app_init(uw_app *app) {
348 app->client_init(); 348 app->client_init();
349 } 349 }
350 350
351 int uw_time = 0, uw_time_max = 0; 351 int uw_time = 0, uw_time_max = 0, uw_min_heap = 0;
352 352
353 353
354 // Single-request state 354 // Single-request state
355 355
356 typedef struct regions { 356 typedef struct regions {
459 ctx->get_header_data = NULL; 459 ctx->get_header_data = NULL;
460 460
461 buf_init(uw_headers_max, &ctx->outHeaders, 0); 461 buf_init(uw_headers_max, &ctx->outHeaders, 0);
462 buf_init(uw_page_max, &ctx->page, 0); 462 buf_init(uw_page_max, &ctx->page, 0);
463 ctx->returning_indirectly = 0; 463 ctx->returning_indirectly = 0;
464 buf_init(uw_heap_max, &ctx->heap, 0); 464 buf_init(uw_heap_max, &ctx->heap, uw_min_heap);
465 buf_init(uw_script_max, &ctx->script, 1); 465 buf_init(uw_script_max, &ctx->script, 1);
466 ctx->script.start[0] = 0; 466 ctx->script.start[0] = 0;
467 467
468 ctx->inputs = malloc(0); 468 ctx->inputs = malloc(0);
469 ctx->cur_container = NULL; 469 ctx->cur_container = NULL;