Added a way to print out instead of stdout but to a file (everything about the process but errors (those still go to stderr) and made it so now someone can actually use echo -e "" | ./bin/stergios (prior this was impossible to do due to readline quirks)
Stergios Upload Compile Checker / Explore-Gitea-Actions (push) Successful in 7s
Stergios Upload Compile Checker / Explore-Gitea-Actions (push) Successful in 7s
This commit is contained in:
10 files changed
+191
-63
No files matched your search
@@ -31,14 +31,6 @@ void node_pool_init(int32_t max_nodes) {
|
||||
for (size_t i = 0; i < HASH_SIZE; ++i) hash_table[i] = NULL;
|
||||
}
|
||||
|
||||
Node* node_pool_alloc() {
|
||||
if (pool_ptr >= pool_capacity) {
|
||||
fprintf(stderr, "\nNode Pool Overflow! Need more than %i nodes.\n", pool_capacity);
|
||||
return NULL;
|
||||
}
|
||||
return &pool[pool_ptr++];
|
||||
}
|
||||
|
||||
void node_pool_reset() {
|
||||
pool_ptr = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user