Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Sep 13, 2024
1 parent 4cc6a26 commit 1fe0d63
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/query.c
Original file line number Diff line number Diff line change
Expand Up @@ -1931,7 +1931,7 @@ void query_destroy(query *q)
free(q);
}

query *query_create(module *m, bool is_task)
query *query_create(module *m, bool is_sub_query)
{
static pl_atomic uint64_t g_query_id = 0;
query *q = calloc(1, sizeof(query));
Expand All @@ -1955,10 +1955,10 @@ query *query_create(module *m, bool is_task)

// Allocate these now...

q->frames_size = is_task ? 100 : INITIAL_NBR_FRAMES;
q->choices_size = is_task ? 100 : INITIAL_NBR_CHOICES;
q->slots_size = is_task ? 1000 : INITIAL_NBR_SLOTS;
q->trails_size = is_task ? 1000 : INITIAL_NBR_TRAILS;
q->frames_size = is_sub_query ? 100 : INITIAL_NBR_FRAMES;
q->choices_size = is_sub_query ? 100 : INITIAL_NBR_CHOICES;
q->slots_size = is_sub_query ? 1000 : INITIAL_NBR_SLOTS;
q->trails_size = is_sub_query ? 1000 : INITIAL_NBR_TRAILS;

ensure(q->frames = calloc(q->frames_size, sizeof(frame)), NULL);
ensure(q->choices = calloc(q->choices_size, sizeof(choice)), NULL);
Expand Down

0 comments on commit 1fe0d63

Please sign in to comment.