From 89be71eabefcc55a3d0a56d7bed7124c4fdafbd8 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 0f97d237..e88234ac 100644 --- a/src/reader.c +++ b/src/reader.c @@ -134,7 +134,7 @@ emit_statement(SerdReader* const reader, const SerdStatus st = serd_sink_write_statement(reader->sink, *ctx.flags, &statement); - *ctx.flags &= SERD_ANON_CONT | SERD_LIST_CONT; // Preserve only cont flags + *ctx.flags = 0; return st; } -- cgit v1.2.1