diff options
Diffstat (limited to 'src/node.h')
-rw-r--r-- | src/node.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -5,7 +5,9 @@ #define SERD_SRC_NODE_H #include "exess/exess.h" +#include "serd/memory.h" #include "serd/node.h" +#include "serd/status.h" #include "zix/attributes.h" #include <stdbool.h> @@ -46,10 +48,14 @@ serd_node_pattern_match(const SerdNode* ZIX_NULLABLE a, } SerdNode* ZIX_ALLOCATED -serd_node_malloc(size_t length, SerdNodeFlags flags, SerdNodeType type); +serd_node_malloc(SerdAllocator* ZIX_NULLABLE allocator, + size_t length, + SerdNodeFlags flags, + SerdNodeType type); -void -serd_node_set(SerdNode* ZIX_NONNULL* ZIX_NONNULL dst, +SerdStatus +serd_node_set(SerdAllocator* ZIX_NULLABLE allocator, + SerdNode* ZIX_NONNULL* ZIX_NONNULL dst, const SerdNode* ZIX_NONNULL src); ZIX_PURE_FUNC size_t |