aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-19 09:39:48 -0400
committerDavid Robillard <d@drobilla.net>2018-11-25 22:12:47 +0100
commitf591a377441dd4ac32c389bd4ef19def580ca267 (patch)
treebcdad49bbe1e4044209bb939dbf41e2ec0cb0d6b /src
parent42ebdc8f2c9f237f676065e1ee8357b8a82b9121 (diff)
downloadserd-f591a377441dd4ac32c389bd4ef19def580ca267.tar.gz
serd-f591a377441dd4ac32c389bd4ef19def580ca267.tar.bz2
serd-f591a377441dd4ac32c389bd4ef19def580ca267.zip
Separate style enum from style flags types
Diffstat (limited to 'src')
-rw-r--r--src/serdi.c4
-rw-r--r--src/writer.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 1e562ff0..0b9f46d5 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -193,7 +193,7 @@ main(int argc, char** argv)
SerdWorld* world = serd_world_new();
SerdEnv* env = serd_env_new(base);
- int output_style = 0;
+ SerdStyleFlags output_style = 0;
if (output_syntax == SERD_NTRIPLES || ascii) {
output_style |= SERD_STYLE_ASCII;
} else if (output_syntax == SERD_TURTLE) {
@@ -215,7 +215,7 @@ main(int argc, char** argv)
SerdWriter* writer = serd_writer_new(world,
output_syntax,
- (SerdStyle)output_style,
+ output_style,
env,
(SerdWriteFunc)fwrite,
out_fd);
diff --git a/src/writer.c b/src/writer.c
index eb574a97..2a886718 100644
--- a/src/writer.c
+++ b/src/writer.c
@@ -863,7 +863,7 @@ serd_writer_finish(SerdWriter* writer)
SerdWriter*
serd_writer_new(SerdWorld* world,
SerdSyntax syntax,
- SerdStyle style,
+ SerdStyleFlags style,
SerdEnv* env,
SerdWriteFunc ssink,
void* stream)