aboutsummaryrefslogtreecommitdiffstats
path: root/src/describe.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 /src/describe.c
parent258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (diff)
downloadserd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.gz
serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.bz2
serd-0f9816d67bc67a396607291f845ca2a33c2285a7.zip
Use ZixAllocator directly
Diffstat (limited to 'src/describe.c')
-rw-r--r--src/describe.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/describe.c b/src/describe.c
index a7012cf9..41d5b67a 100644
--- a/src/describe.c
+++ b/src/describe.c
@@ -11,7 +11,6 @@
#include "serd/cursor.h"
#include "serd/describe.h"
-#include "serd/memory.h"
#include "serd/model.h"
#include "serd/node.h"
#include "serd/sink.h"
@@ -31,7 +30,7 @@
typedef enum { NAMED, ANON_S, ANON_O, LIST_S, LIST_O } NodeStyle;
typedef struct {
- SerdAllocator* allocator; // Allocator for auxiliary structures
+ ZixAllocator* allocator; // Allocator for auxiliary structures
const SerdModel* model; // Model to read from
const SerdSink* sink; // Sink to write description to
ZixHash* list_subjects; // Nodes written in the current list or null
@@ -286,7 +285,7 @@ write_range_statement(const DescribeContext* const ctx,
}
SerdStatus
-serd_describe_range(SerdAllocator* const allocator,
+serd_describe_range(ZixAllocator* const allocator,
const SerdCursor* const range,
const SerdSink* sink,
const SerdDescribeFlags flags)
@@ -300,7 +299,7 @@ serd_describe_range(SerdAllocator* const allocator,
SerdCursor copy = *range;
ZixHash* const list_subjects =
- zix_hash_new((ZixAllocator*)allocator, identity, ptr_hash, ptr_equals);
+ zix_hash_new(allocator, identity, ptr_hash, ptr_equals);
SerdStatus st = SERD_BAD_ALLOC;
if (list_subjects) {