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>2018-11-25 22:12:47 +0100
commit505209a2ff35c2b880cc64712932fd4d11aeaf8d (patch)
tree32a4a3536b699e1f02dba1379fcd69f78ab4eb20 /src/reader.c
parentea4ade33a6d6ed11d870600b9e54a3f8e34ddb29 (diff)
downloadserd-505209a2ff35c2b880cc64712932fd4d11aeaf8d.tar.gz
serd-505209a2ff35c2b880cc64712932fd4d11aeaf8d.tar.bz2
serd-505209a2ff35c2b880cc64712932fd4d11aeaf8d.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 94387171..e286fd4e 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -128,7 +128,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;
}