diff options
author | David Robillard <d@drobilla.net> | 2016-03-16 16:54:49 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-01-13 15:33:54 -0500 |
commit | faac2e52df494481dc28168a856058a414a913f2 (patch) | |
tree | 96f6d9433fc7f23a0e1aabdffd61404a273a28cc /src/writer.c | |
parent | 97258f0e85834d71b17e3c1997a5c7dc136e0b98 (diff) | |
download | serd-faac2e52df494481dc28168a856058a414a913f2.tar.gz serd-faac2e52df494481dc28168a856058a414a913f2.tar.bz2 serd-faac2e52df494481dc28168a856058a414a913f2.zip |
Rename SerdChunk to SerdStringView
Diffstat (limited to 'src/writer.c')
-rw-r--r-- | src/writer.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/writer.c b/src/writer.c index 84c704ee..c613b00c 100644 --- a/src/writer.c +++ b/src/writer.c @@ -567,8 +567,8 @@ write_uri_node(SerdWriter* const writer, const SerdNode* node, const Field field) { - SerdNode prefix; - SerdChunk suffix; + SerdNode prefix; + SerdStringView suffix; const bool has_scheme = serd_uri_string_has_scheme(node->buf); if (supports_abbrev(writer)) { @@ -576,10 +576,6 @@ write_uri_node(SerdWriter* const writer, return sink("a", 1, writer) == 1; } - if (!strcmp(node->buf, NS_RDF "nil")) { - return sink("()", 2, writer) == 2; - } - if (has_scheme && (writer->style & SERD_STYLE_CURIED) && serd_env_qualify(writer->env, node, &prefix, &suffix) && is_name(prefix.buf, prefix.n_bytes) && @@ -627,10 +623,9 @@ write_uri_node(SerdWriter* const writer, static bool write_curie(SerdWriter* const writer, const SerdNode* const node) { - SerdChunk prefix = {NULL, 0}; - SerdChunk suffix = {NULL, 0}; - SerdStatus st = SERD_SUCCESS; - + SerdStringView prefix = {NULL, 0}; + SerdStringView suffix = {NULL, 0}; + SerdStatus st = SERD_SUCCESS; switch (writer->syntax) { case SERD_NTRIPLES: case SERD_NQUADS: |