aboutsummaryrefslogtreecommitdiffstats
path: root/src/node_syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_syntax.c')
-rw-r--r--src/node_syntax.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/node_syntax.c b/src/node_syntax.c
index a66c6e22..5fe0ae44 100644
--- a/src/node_syntax.c
+++ b/src/node_syntax.c
@@ -8,7 +8,6 @@
#include "serd/env.h"
#include "serd/event.h"
#include "serd/input_stream.h"
-#include "serd/memory.h"
#include "serd/node.h"
#include "serd/node_syntax.h"
#include "serd/output_stream.h"
@@ -19,6 +18,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>
@@ -26,8 +26,8 @@
#include <string.h>
typedef struct {
- SerdAllocator* allocator;
- SerdNode* object;
+ ZixAllocator* allocator;
+ SerdNode* object;
} NodeSyntaxContext;
static SerdStatus
@@ -54,7 +54,7 @@ serd_node_from_syntax_in(SerdWorld* const world,
static const char* const prelude =
"_:s <http://www.w3.org/2000/01/rdf-schema#object>";
- SerdAllocator* const alloc = serd_world_allocator(world);
+ ZixAllocator* const alloc = serd_world_allocator(world);
const size_t str_len = strlen(str);
const size_t doc_len = strlen(prelude) + str_len + 5;
@@ -96,10 +96,10 @@ serd_node_from_syntax_in(SerdWorld* const world,
}
SerdNode*
-serd_node_from_syntax(SerdAllocator* const allocator,
- const char* const str,
- const SerdSyntax syntax,
- SerdEnv* const env)
+serd_node_from_syntax(ZixAllocator* const allocator,
+ const char* const str,
+ const SerdSyntax syntax,
+ SerdEnv* const env)
{
assert(str);
@@ -161,7 +161,7 @@ serd_node_to_syntax_in(SerdWorld* const world,
}
char*
-serd_node_to_syntax(SerdAllocator* const allocator,
+serd_node_to_syntax(ZixAllocator* const allocator,
const SerdNode* const node,
const SerdSyntax syntax,
const SerdEnv* const env)