From 002585aaebbb1105de0935a52a04eda2e4950508 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Oct 2018 20:57:33 +0200 Subject: 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. --- src/reader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/reader.c') 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; } -- cgit v1.2.1