diff options
author | David Robillard <d@drobilla.net> | 2022-12-19 17:55:02 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 0f9816d67bc67a396607291f845ca2a33c2285a7 (patch) | |
tree | b31fd1b344305dc984a2109084fa183573a0ae43 /test/test_terse_write.c | |
parent | 258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (diff) | |
download | serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.gz serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.bz2 serd-0f9816d67bc67a396607291f845ca2a33c2285a7.zip |
Use ZixAllocator directly
Diffstat (limited to 'test/test_terse_write.c')
-rw-r--r-- | test/test_terse_write.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/test_terse_write.c b/test/test_terse_write.c index 0c55eb9d..c6a14d7d 100644 --- a/test/test_terse_write.c +++ b/test/test_terse_write.c @@ -5,7 +5,6 @@ #include "serd/buffer.h" #include "serd/env.h" -#include "serd/memory.h" #include "serd/node.h" #include "serd/nodes.h" #include "serd/output_stream.h" @@ -14,6 +13,7 @@ #include "serd/syntax.h" #include "serd/world.h" #include "serd/writer.h" +#include "zix/allocator.h" #include "zix/string_view.h" #include <assert.h> @@ -40,11 +40,11 @@ check_output(SerdWriter* writer, SerdBuffer* buffer, const char* expected) static int test(void) { - SerdWorld* world = serd_world_new(NULL); - SerdAllocator* alloc = serd_world_allocator(world); - SerdBuffer buffer = {NULL, NULL, 0}; - SerdEnv* env = serd_env_new(alloc, zix_empty_string()); - SerdNodes* nodes = serd_nodes_new(alloc); + SerdWorld* world = serd_world_new(NULL); + ZixAllocator* alloc = serd_world_allocator(world); + SerdBuffer buffer = {NULL, NULL, 0}; + SerdEnv* env = serd_env_new(alloc, zix_empty_string()); + SerdNodes* nodes = serd_nodes_new(alloc); const SerdNode* b1 = serd_nodes_get(nodes, serd_a_blank_string("b1")); const SerdNode* l1 = serd_nodes_get(nodes, serd_a_blank_string("l1")); @@ -102,7 +102,7 @@ test(void) serd_writer_free(writer); serd_close_output(&output); - serd_free(NULL, buffer.buf); + zix_free(NULL, buffer.buf); serd_nodes_free(nodes); serd_env_free(env); serd_world_free(world); |