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 /include/serd/node_syntax.h | |
parent | 258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (diff) | |
download | serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.gz serd-0f9816d67bc67a396607291f845ca2a33c2285a7.tar.bz2 serd-0f9816d67bc67a396607291f845ca2a33c2285a7.zip |
Use ZixAllocator directly
Diffstat (limited to 'include/serd/node_syntax.h')
-rw-r--r-- | include/serd/node_syntax.h | 16 |
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); |