diff --git a/src/api.c b/src/api.c index 3fca106..3738d2c 100644 --- a/src/api.c +++ b/src/api.c @@ -57,17 +57,11 @@ static void open_aux(paw_Env *P, void *arg) { paw_unused(arg); pawG_init(P); -printf("c\n"); pawC_init(P); -printf("d\n"); pawS_init(P); -printf("d\n"); pawP_init(P); -printf("e\n"); pawR_init(P); -printf("f\n"); pawL_init(P); -printf("g\n"); CHECK_GC(P); } @@ -80,15 +74,14 @@ paw_Env *paw_open(paw_Alloc alloc, void *ud) .alloc = alloc, .ud = ud, }; -printf("a\n"); + // TODO: let user pass in options. These options should work for programs that // don't use a huge amount of memory. - const size_t heap_size = 8388608 * 8; // 64 MiB + const size_t heap_size = 8388608 * 2; if (pawZ_init(P, heap_size)) { alloc(ud, P, sizeof(*P), 0); return NULL; } -printf("b\n"); if (pawC_try(P, open_aux, NULL)) { paw_close(P); return NULL;