aboutsummaryrefslogtreecommitdiffstats
path: root/src/nodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodes.c')
-rw-r--r--src/nodes.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/nodes.c b/src/nodes.c
index 68d9cf3c..22ee3146 100644
--- a/src/nodes.c
+++ b/src/nodes.c
@@ -14,12 +14,12 @@
#include "serd/memory.h"
#include "serd/nodes.h"
-#include "serd/string_view.h"
#include "serd/write_result.h"
#include "zix/allocator.h"
#include "zix/attributes.h"
#include "zix/digest.h"
#include "zix/hash.h"
+#include "zix/string_view.h"
#include <assert.h>
#include <stdbool.h>
@@ -137,9 +137,9 @@ nodes_key(const NodesEntry* const entry)
}
static ZixHashCode
-token_hash(const ZixHashCode seed,
- const SerdNodeType type,
- const SerdStringView string)
+token_hash(const ZixHashCode seed,
+ const SerdNodeType type,
+ const ZixStringView string)
{
const SerdNode node_header = {string.length, 0U, type};
ZixHashCode h = seed;
@@ -378,9 +378,9 @@ serd_nodes_manage_entry_node(SerdNodes* const nodes, SerdNode* const node)
}
static const SerdNode*
-serd_nodes_token(SerdNodes* const nodes,
- const SerdNodeType type,
- const SerdStringView string)
+serd_nodes_token(SerdNodes* const nodes,
+ const SerdNodeType type,
+ const ZixStringView string)
{
// Calculate a hash code for the token without actually constructing it
const NodeSpec key = token_spec(type, string);
@@ -406,10 +406,10 @@ serd_nodes_token(SerdNodes* const nodes,
}
static const SerdNode*
-serd_nodes_literal(SerdNodes* const nodes,
- const SerdStringView string,
- const SerdNodeFlags flags,
- const SerdStringView meta)
+serd_nodes_literal(SerdNodes* const nodes,
+ const ZixStringView string,
+ const SerdNodeFlags flags,
+ const ZixStringView meta)
{
// Calculate a hash code for the literal without actually constructing it
const NodeSpec spec = literal_spec(string, flags, meta);