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-12-31 11:37:48 -0500
commit0edc2af7dde0593eda7c42211be2590c26859a4f (patch)
tree03b62c332e7e5ac259167d77327b4c1acce72a14 /src/reader.c
parent315268f9ed6df68d9a6e3a33c6c77051b6408099 (diff)
downloadserd-0edc2af7dde0593eda7c42211be2590c26859a4f.tar.gz
serd-0edc2af7dde0593eda7c42211be2590c26859a4f.tar.bz2
serd-0edc2af7dde0593eda7c42211be2590c26859a4f.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 39056d4c..dfa80f06 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -131,7 +131,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;
}