aboutsummaryrefslogtreecommitdiffstats
path: root/src/writer.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-10 12:43:14 +0100
committerDavid Robillard <d@drobilla.net>2020-10-27 13:13:58 +0100
commit2504ed048f9e5006bf6845ade3d83771a4885a78 (patch)
tree7c72134eafdced3335e09bbed0355b6859916114 /src/writer.c
parentdf54e2c8de9be51cd16bdce927b0a03ca9ae3a31 (diff)
downloadserd-2504ed048f9e5006bf6845ade3d83771a4885a78.tar.gz
serd-2504ed048f9e5006bf6845ade3d83771a4885a78.tar.bz2
serd-2504ed048f9e5006bf6845ade3d83771a4885a78.zip
Rename writer flags for consistency with enum type
Diffstat (limited to 'src/writer.c')
-rw-r--r--src/writer.c6
1 files changed, 3 insertions, 3 deletions
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;