diff options
author | David Robillard <d@drobilla.net> | 2023-08-30 20:43:05 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:08 -0500 |
commit | 258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (patch) | |
tree | d7be35c7b4b3d466049352f2975e2c88c298f4b8 /src/nodes.c | |
parent | b13ad41a4d65b577b4db67660a9edf3056bdf7af (diff) | |
download | serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.gz serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.bz2 serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.zip |
Use ZixStringView directly
Diffstat (limited to 'src/nodes.c')
-rw-r--r-- | src/nodes.c | 22 |
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); |