aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_overflow.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-12-19 17:55:02 -0500
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit0f9816d67bc67a396607291f845ca2a33c2285a7 (patch)
treeb31fd1b344305dc984a2109084fa183573a0ae43 /test/test_overflow.c
parent258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (diff)
downloadserd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.gz
serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.bz2
serd-0f9816d67bc67a396607291f845ca2a33c2285a7.zip
Use ZixAllocator directly
Diffstat (limited to 'test/test_overflow.c')
-rw-r--r--test/test_overflow.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/test_overflow.c b/test/test_overflow.c
index f2ff184b..39fbd00d 100644
--- a/test/test_overflow.c
+++ b/test/test_overflow.c
@@ -4,6 +4,7 @@
#undef NDEBUG
#include "serd/serd.h"
+#include "zix/allocator.h"
#include "zix/string_view.h"
#include <assert.h>
@@ -23,11 +24,11 @@ test_size(SerdWorld* const world,
limits.reader_stack_size = stack_size;
serd_world_set_limits(world, limits);
- SerdNodes* const nodes = serd_world_nodes(world);
- SerdAllocator* const alloc = serd_world_allocator(world);
- SerdSink* const sink = serd_sink_new(alloc, NULL, NULL, NULL);
- SerdEnv* const env = serd_env_new(alloc, zix_empty_string());
- SerdReader* const reader = serd_reader_new(world, syntax, flags, env, sink);
+ SerdNodes* const nodes = serd_world_nodes(world);
+ ZixAllocator* const alloc = serd_world_allocator(world);
+ SerdSink* const sink = serd_sink_new(alloc, NULL, NULL, NULL);
+ SerdEnv* const env = serd_env_new(alloc, zix_empty_string());
+ SerdReader* const reader = serd_reader_new(world, syntax, flags, env, sink);
if (!reader) {
return SERD_BAD_STACK;
}