summaryrefslogtreecommitdiff
path: root/src/unit/test_arena_allocator.c
diff options
context:
space:
mode:
authorLinnnus <[email protected]>2025-04-12 00:27:43 +0000
committerLinnnus <[email protected]>2025-04-15 01:08:30 +0000
commita140d00b5cb36a729cbe7d8bcc591472befaa49d (patch)
tree4137a990582e30f14a8e2ffea05ec8e6fb60035f /src/unit/test_arena_allocator.c
parentd15dd976b98b4c39a899b3d68047dc752699dca7 (diff)
refactor(core): Rename sand_{new => get}_std_allocator, void parameters
This patch just renames the function for getting a std allocator. This matches the terminology used for the page allocator. There aren't actually any (non-global) resources associated with these allocators so the "get" name makes more sense. It also fixes some (potential) issues with empty parameter specifications in sand_get_std_allocator() and sand_get_page_allocator(). Apparently () is not the same as (void)...
Diffstat (limited to 'src/unit/test_arena_allocator.c')
-rw-r--r--src/unit/test_arena_allocator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unit/test_arena_allocator.c b/src/unit/test_arena_allocator.c
index 5a6e3d8..eb0ad33 100644
--- a/src/unit/test_arena_allocator.c
+++ b/src/unit/test_arena_allocator.c
@@ -8,7 +8,7 @@
SUITE(arena_allocator) {
#define RUN_WITH_ARENA(test) \
do { \
- SandAllocator parent = sand_new_std_allocator(); \
+ SandAllocator parent = sand_get_std_allocator(); \
SandArena arena = sand_create_arena(&parent); \
SandAllocator a = sand_get_allocator_for_arena(&arena); \
RUN_TEST1(test, &a); \