From b4dee10576e9916c0c8d80033bc429dc38a70c1c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 16 Mar 2016 16:54:49 -0400 Subject: Rename SerdChunk to SerdStringView --- src/writer.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'src/writer.c') diff --git a/src/writer.c b/src/writer.c index dce47599..e97af301 100644 --- a/src/writer.c +++ b/src/writer.c @@ -564,8 +564,8 @@ write_uri_node(SerdWriter* const writer, const Field field, const SerdStatementFlags flags) { - SerdNode prefix; - SerdChunk suffix; + SerdNode prefix; + SerdStringView suffix; if (is_inline_start(writer, field, flags)) { ++writer->indent; @@ -579,10 +579,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(suffix.buf, suffix.len)) { @@ -636,10 +632,9 @@ write_curie(SerdWriter* const writer, const Field field, const SerdStatementFlags flags) { - 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: @@ -665,7 +660,6 @@ write_curie(SerdWriter* const writer, write_newline(writer); } } - return true; } -- cgit v1.2.1