Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-byers committed Aug 13, 2024
1 parent 1e7a03f commit b6782f3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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;
Expand Down

0 comments on commit b6782f3

Please sign in to comment.