aboutsummaryrefslogtreecommitdiffstats
path: root/src/node_spec.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2023-08-30 20:43:05 -0400
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commit258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d (patch)
treed7be35c7b4b3d466049352f2975e2c88c298f4b8 /src/node_spec.h
parentb13ad41a4d65b577b4db67660a9edf3056bdf7af (diff)
downloadserd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.gz
serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.bz2
serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.zip
Use ZixStringView directly
Diffstat (limited to 'src/node_spec.h')
-rw-r--r--src/node_spec.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/node_spec.h b/src/node_spec.h
index 97243bf6..2daee100 100644
--- a/src/node_spec.h
+++ b/src/node_spec.h
@@ -5,7 +5,7 @@
#define SERD_SRC_NODE_SPEC_H
#include "serd/node.h"
-#include "serd/string_view.h"
+#include "zix/string_view.h"
/**
A lightweight "specification" of a node.
@@ -16,23 +16,23 @@
allocate one.
*/
typedef struct {
- SerdNodeType type; ///< Basic type of this node
- SerdStringView string; ///< String contents of this node
- SerdNodeFlags flags; ///< Additional node flags
- SerdStringView meta; ///< String contents of datatype or language node
+ SerdNodeType type; ///< Basic type of this node
+ ZixStringView string; ///< String contents of this node
+ SerdNodeFlags flags; ///< Additional node flags
+ ZixStringView meta; ///< String contents of datatype or language node
} NodeSpec;
static inline NodeSpec
-token_spec(const SerdNodeType type, const SerdStringView string)
+token_spec(const SerdNodeType type, const ZixStringView string)
{
- NodeSpec spec = {type, string, 0U, serd_empty_string()};
+ NodeSpec spec = {type, string, 0U, zix_empty_string()};
return spec;
}
static inline NodeSpec
-literal_spec(const SerdStringView string,
- const SerdNodeFlags flags,
- const SerdStringView meta)
+literal_spec(const ZixStringView string,
+ const SerdNodeFlags flags,
+ const ZixStringView meta)
{
NodeSpec spec = {SERD_LITERAL, string, flags, meta};
return spec;