diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/serdi.c | 4 | ||||
-rw-r--r-- | src/writer.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/serdi.c b/src/serdi.c index 15b97d04..cc7c14cc 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -206,8 +206,8 @@ main(int argc, char** argv) SerdEnv* env = serd_env_new(base); const SerdWriterFlags writer_flags = - ((ascii ? SERD_STYLE_ASCII : 0u) | // - (full_uris ? (SERD_STYLE_UNQUALIFIED | SERD_STYLE_UNRESOLVED) : 0u)); + ((ascii ? SERD_WRITE_ASCII : 0u) | // + (full_uris ? (SERD_WRITE_UNQUALIFIED | SERD_WRITE_UNRESOLVED) : 0u)); const SerdSerialisationFlags serialisation_flags = no_inline ? SERD_NO_INLINE_OBJECTS : 0u; diff --git a/src/writer.c b/src/writer.c index df513342..7a27aa47 100644 --- a/src/writer.c +++ b/src/writer.c @@ -223,7 +223,7 @@ write_character(SerdWriter* writer, const uint8_t* utf8, size_t* size) break; } - if (!(writer->flags & SERD_STYLE_ASCII)) { + if (!(writer->flags & SERD_WRITE_ASCII)) { // Write UTF-8 character directly to UTF-8 output return sink(utf8, *size, writer); } @@ -569,7 +569,7 @@ write_uri_node(SerdWriter* const writer, serd_node_equals(node, writer->world->rdf_nil)) { return sink("()", 2, writer) == 2; } else if (has_scheme && supports_abbrev(writer) && - !(writer->flags & SERD_STYLE_UNQUALIFIED) && + !(writer->flags & SERD_WRITE_UNQUALIFIED) && serd_env_qualify_in_place(writer->env, node, &prefix, &suffix) && is_name(serd_node_string(prefix), serd_node_length(prefix)) && is_name(suffix.buf, suffix.len)) { @@ -580,7 +580,7 @@ write_uri_node(SerdWriter* const writer, } sink("<", 1, writer); - if (!(writer->flags & SERD_STYLE_UNRESOLVED) && + if (!(writer->flags & SERD_WRITE_UNRESOLVED) && serd_env_base_uri(writer->env)) { const SerdURI* base_uri = serd_env_get_parsed_base_uri(writer->env); SerdURI uri; |