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/node_syntax.c | |
parent | b13ad41a4d65b577b4db67660a9edf3056bdf7af (diff) | |
download | serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.gz serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.tar.bz2 serd-258ea2ff59bbd2127ea446cf4b9676ad3d7fe53d.zip |
Use ZixStringView directly
Diffstat (limited to 'src/node_syntax.c')
-rw-r--r-- | src/node_syntax.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/node_syntax.c b/src/node_syntax.c index b40bc0dc..a66c6e22 100644 --- a/src/node_syntax.c +++ b/src/node_syntax.c @@ -16,10 +16,10 @@ #include "serd/sink.h" #include "serd/statement.h" #include "serd/status.h" -#include "serd/string_view.h" #include "serd/syntax.h" #include "serd/world.h" #include "serd/writer.h" +#include "zix/string_view.h" #include <assert.h> #include <stdio.h> @@ -112,7 +112,7 @@ serd_node_from_syntax(SerdAllocator* const allocator, if (env) { node = serd_node_from_syntax_in(temp_world, str, syntax, env); } else { - SerdEnv* const temp_env = serd_env_new(allocator, serd_empty_string()); + SerdEnv* const temp_env = serd_env_new(allocator, zix_empty_string()); if (temp_env) { node = serd_node_from_syntax_in(temp_world, str, syntax, temp_env); } @@ -177,7 +177,7 @@ serd_node_to_syntax(SerdAllocator* const allocator, if (env) { string = serd_node_to_syntax_in(temp_world, node, syntax, env); } else { - SerdEnv* const temp_env = serd_env_new(allocator, serd_empty_string()); + SerdEnv* const temp_env = serd_env_new(allocator, zix_empty_string()); if (temp_env) { string = serd_node_to_syntax_in(temp_world, node, syntax, temp_env); } |