From 0f9816d67bc67a396607291f845ca2a33c2285a7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 19 Dec 2022 17:55:02 -0500 Subject: Use ZixAllocator directly --- test/test_statement.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'test/test_statement.c') diff --git a/test/test_statement.c b/test/test_statement.c index e960002f..3cad95bb 100644 --- a/test/test_statement.c +++ b/test/test_statement.c @@ -6,10 +6,10 @@ #include "failing_allocator.h" #include "serd/caret.h" -#include "serd/memory.h" #include "serd/node.h" #include "serd/nodes.h" #include "serd/statement.h" +#include "zix/allocator.h" #include #include @@ -20,7 +20,7 @@ static void test_new(void) { - SerdAllocator* const allocator = serd_default_allocator(); + ZixAllocator* const allocator = zix_default_allocator(); assert(!serd_statement_copy(allocator, NULL)); @@ -49,7 +49,7 @@ test_copy(void) { assert(!serd_statement_copy(NULL, NULL)); - SerdAllocator* const allocator = serd_default_allocator(); + ZixAllocator* const allocator = zix_default_allocator(); assert(!serd_statement_copy(allocator, NULL)); @@ -80,7 +80,7 @@ test_copy_with_caret(void) { assert(!serd_statement_copy(NULL, NULL)); - SerdAllocator* const allocator = serd_default_allocator(); + ZixAllocator* const allocator = zix_default_allocator(); assert(!serd_statement_copy(allocator, NULL)); @@ -115,14 +115,14 @@ test_copy_with_caret(void) static void test_free(void) { - serd_statement_free(serd_default_allocator(), NULL); + serd_statement_free(zix_default_allocator(), NULL); serd_statement_free(NULL, NULL); } static void test_fields(void) { - SerdAllocator* const allocator = serd_default_allocator(); + ZixAllocator* const allocator = zix_default_allocator(); SerdNodes* const nodes = serd_nodes_new(allocator); @@ -194,7 +194,7 @@ test_fields(void) static void test_failed_alloc(void) { - SerdNodes* const nodes = serd_nodes_new(serd_default_allocator()); + SerdNodes* const nodes = serd_nodes_new(zix_default_allocator()); const SerdNode* const f = serd_nodes_get(nodes, serd_a_string("file")); const SerdNode* const s = serd_nodes_get(nodes, serd_a_uri_string(NS_EG "s")); @@ -202,7 +202,7 @@ test_failed_alloc(void) const SerdNode* const o = serd_nodes_get(nodes, serd_a_uri_string(NS_EG "o")); const SerdNode* const g = serd_nodes_get(nodes, serd_a_uri_string(NS_EG "g")); - SerdCaret* const caret = serd_caret_new(serd_default_allocator(), f, 1, 1); + SerdCaret* const caret = serd_caret_new(zix_default_allocator(), f, 1, 1); SerdFailingAllocator allocator = serd_failing_allocator(); @@ -233,7 +233,7 @@ test_failed_alloc(void) serd_statement_free(&allocator.base, copy); serd_statement_free(&allocator.base, statement); - serd_caret_free(serd_default_allocator(), caret); + serd_caret_free(zix_default_allocator(), caret); serd_nodes_free(nodes); } -- cgit v1.2.1