aboutsummaryrefslogtreecommitdiffstats
path: root/include/serd/node_syntax.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/serd/node_syntax.h')
-rw-r--r--include/serd/node_syntax.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/serd/node_syntax.h b/include/serd/node_syntax.h
index 7529c954..2567be03 100644
--- a/include/serd/node_syntax.h
+++ b/include/serd/node_syntax.h
@@ -6,9 +6,9 @@
#include "serd/attributes.h"
#include "serd/env.h"
-#include "serd/memory.h"
#include "serd/node.h"
#include "serd/syntax.h"
+#include "zix/allocator.h"
#include "zix/attributes.h"
SERD_BEGIN_DECLS
@@ -43,10 +43,10 @@ SERD_BEGIN_DECLS
using the world allocator.
*/
SERD_API SerdNode* ZIX_ALLOCATED
-serd_node_from_syntax(SerdAllocator* ZIX_NULLABLE allocator,
- const char* ZIX_NONNULL str,
- SerdSyntax syntax,
- SerdEnv* ZIX_NULLABLE env);
+serd_node_from_syntax(ZixAllocator* ZIX_NULLABLE allocator,
+ const char* ZIX_NONNULL str,
+ SerdSyntax syntax,
+ SerdEnv* ZIX_NULLABLE env);
/**
Return a string representation of `node` in `syntax`.
@@ -66,11 +66,11 @@ serd_node_from_syntax(SerdAllocator* ZIX_NULLABLE allocator,
@param env Environment for the output string. This can be used to
abbreviate things nicely by setting namespace prefixes.
- @return A newly allocated string that must be freed with serd_free() using
- the world allocator.
+ @return A newly allocated string that must be freed with zix_free() using
+ the same `allocator`.
*/
SERD_API char* ZIX_ALLOCATED
-serd_node_to_syntax(SerdAllocator* ZIX_NULLABLE allocator,
+serd_node_to_syntax(ZixAllocator* ZIX_NULLABLE allocator,
const SerdNode* ZIX_NONNULL node,
SerdSyntax syntax,
const SerdEnv* ZIX_NULLABLE env);