diff options
-rw-r--r-- | serd/serd.h | 2 | ||||
-rw-r--r-- | src/serdi.c | 2 | ||||
-rw-r--r-- | src/writer.c | 2 |
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); } |