Function renaming and moving.

This commit is contained in:
metallaxis committed 2026-05-07 10:14:38 +03:00
1 parent e3239bf564
commit 77631299b8
6 files changed
+48 -47

No files matched your search

+3 -1
View File
@@ -24,6 +24,7 @@ void node_pool_init(int max_nodes) {
pool_ptr = 0;
visited_ptr = 0;
for (size_t i = 0; i < HASH_SIZE; ++i) hash_table[i] = NULL;
queue_init(max_nodes);
}
Node* node_pool_alloc() {
@@ -40,6 +41,7 @@ void node_pool_reset() {
void node_pool_destroy() {
if (pool) free(pool);
queue_destroy();
}
int node_pool_usage() {
@@ -67,7 +69,7 @@ static void make_move(char move, Node* curr) {
n->move = move;
n->parent = curr;
n->next = NULL;
q_push(n);
queue_push(n);
}
}
}