aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-03-10 12:43:14 +0100
committerDavid Robillard <d@drobilla.net>2019-04-13 19:48:23 +0200
commit5cd753ba82535641b6dccb0064110f1bc8e22804 (patch)
tree6e2b01cf0183c039b0c49990f1e3b9e9db3ca0f3
parentb568e02a8cb0ec81e297847f31e1f59ce0c7997a (diff)
downloadserd-5cd753ba82535641b6dccb0064110f1bc8e22804.tar.gz
serd-5cd753ba82535641b6dccb0064110f1bc8e22804.tar.bz2
serd-5cd753ba82535641b6dccb0064110f1bc8e22804.zip
Rename SERD_STYLE_ASCII to SERD_WRITE_ASCII
-rw-r--r--serd/serd.h2
-rw-r--r--src/serdi.c2
-rw-r--r--src/writer.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/serd/serd.h b/serd/serd.h
index 024ba9e8..abdb7708 100644
--- a/serd/serd.h
+++ b/serd/serd.h
@@ -284,7 +284,7 @@ typedef struct {
always ASCII).
*/
typedef enum {
- SERD_STYLE_ASCII = 1 << 0, ///< Escape all non-ASCII characters
+ SERD_WRITE_ASCII = 1 << 0, ///< Escape all non-ASCII characters
} SerdWriterFlag;
/// Bitwise OR of SerdWriterFlag values
diff --git a/src/serdi.c b/src/serdi.c
index ce76b88d..a9e25c14 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -210,7 +210,7 @@ main(int argc, char** argv)
SerdWorld* world = serd_world_new();
SerdEnv* env = serd_env_new(base);
- const SerdWriterFlags writer_flags = (ascii ? SERD_STYLE_ASCII : 0U);
+ const SerdWriterFlags writer_flags = (ascii ? SERD_WRITE_ASCII : 0U);
const SerdSerialisationFlags serialisation_flags =
no_inline ? SERD_NO_INLINE_OBJECTS : 0U;
diff --git a/src/writer.c b/src/writer.c
index 08e9ae17..62dcc3b3 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -195,7 +195,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);
}