From d6060f62d7dd3c9906fb4c58a75874f57d846162 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 29 Dec 2018 20:05:00 -0500 Subject: Rename SerdStyle to SerdWriterFlags --- src/writer.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/writer.c') diff --git a/src/writer.c b/src/writer.c index 09bffeef..72ecc4ed 100644 --- a/src/writer.c +++ b/src/writer.c @@ -104,7 +104,7 @@ struct SerdWriterImpl { SerdWorld* world; SerdSink iface; SerdSyntax syntax; - SerdStyleFlags style; + SerdWriterFlags flags; SerdEnv* env; SerdNode* root_node; SerdURI root_uri; @@ -195,7 +195,7 @@ write_character(SerdWriter* writer, const uint8_t* utf8, size_t* size) break; } - if (!(writer->style & SERD_STYLE_ASCII)) { + if (!(writer->flags & SERD_STYLE_ASCII)) { // Write UTF-8 character directly to UTF-8 output return sink(utf8, *size, writer); } @@ -898,18 +898,18 @@ serd_writer_finish(SerdWriter* writer) } SerdWriter* -serd_writer_new(SerdWorld* world, - SerdSyntax syntax, - SerdStyleFlags style, - SerdEnv* env, - SerdWriteFunc write_func, - void* stream) +serd_writer_new(SerdWorld* world, + SerdSyntax syntax, + SerdWriterFlags flags, + SerdEnv* env, + SerdWriteFunc write_func, + void* stream) { const WriteContext context = WRITE_CONTEXT_NULL; SerdWriter* writer = (SerdWriter*)calloc(1, sizeof(SerdWriter)); writer->world = world; writer->syntax = syntax; - writer->style = style; + writer->flags = flags; writer->env = env; writer->root_node = NULL; writer->root_uri = SERD_URI_NULL; -- cgit v1.2.1