Function renaming and moving.
This commit is contained in:
6 files changed
+48
-47
No files matched your search
+3
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user