aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-10-21 20:57:33 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:12:04 +0200
commit002585aaebbb1105de0935a52a04eda2e4950508 (patch)
tree040d4e46c9aa7e3a37ac08194d6495c6e9a47f6c /src/reader.c
parent50e90b77425b9c4f852e62a3e74b9015e7c806f0 (diff)
downloadserd-002585aaebbb1105de0935a52a04eda2e4950508.tar.gz
serd-002585aaebbb1105de0935a52a04eda2e4950508.tar.bz2
serd-002585aaebbb1105de0935a52a04eda2e4950508.zip
Simplify streaming API and improve pretty printing
This removes the obligation from the caller to correctly maintain flags to describe the current anonymous context, instead making the writer handle this itself as much as possible. Flags remain for the cases the writer can not infer from context: the start of anonymous subject and object nodes.
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c
index c7e0feab..1337a6a4 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -133,7 +133,7 @@ emit_statement(SerdReader* reader, ReadContext ctx, SerdNode* o)
const SerdStatus st = reader->sink->statement(
reader->sink->handle, *ctx.flags, &statement);
- *ctx.flags &= SERD_ANON_CONT|SERD_LIST_CONT; // Preserve only cont flags
+ *ctx.flags = 0;
return st;
}