diff options
author | David Robillard <d@drobilla.net> | 2018-12-29 20:05:00 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-13 19:15:32 +0200 |
commit | d6060f62d7dd3c9906fb4c58a75874f57d846162 (patch) | |
tree | 57b4c23603415f1d274201aeb7ba086ac07f611e /src | |
parent | c25fb778a07653c70550e58b22dd599627c0a9a9 (diff) | |
download | serd-d6060f62d7dd3c9906fb4c58a75874f57d846162.tar.gz serd-d6060f62d7dd3c9906fb4c58a75874f57d846162.tar.bz2 serd-d6060f62d7dd3c9906fb4c58a75874f57d846162.zip |
Rename SerdStyle to SerdWriterFlags
Diffstat (limited to 'src')
-rw-r--r-- | src/serdi.c | 4 | ||||
-rw-r--r-- | src/writer.c | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/serdi.c b/src/serdi.c index 379ab1b9..4fc9bfaf 100644 --- a/src/serdi.c +++ b/src/serdi.c @@ -202,14 +202,14 @@ main(int argc, char** argv) SerdWorld* world = serd_world_new(); SerdEnv* env = serd_env_new(base); - const SerdStyleFlags output_style = (ascii ? SERD_STYLE_ASCII : 0); + const SerdWriterFlags writer_flags = (ascii ? SERD_STYLE_ASCII : 0); SerdByteSink* byte_sink = serd_byte_sink_new( (SerdWriteFunc)fwrite, out_fd, bulk_write ? 4096 : 1); SerdWriter* writer = serd_writer_new(world, output_syntax, - output_style, + writer_flags, env, (SerdWriteFunc)serd_byte_sink_write, byte_sink); 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; |