diff options
author | David Robillard <d@drobilla.net> | 2018-06-03 22:23:28 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-12-31 11:37:48 -0500 |
commit | b6197eb59799c2933bd776ea22760fea5e97b4bd (patch) | |
tree | 7d924d86285ca33d6d7cf241501811f3616429aa /src/reader.c | |
parent | 5246440bc489b9b8168d0e26700cf5f343895169 (diff) | |
download | serd-b6197eb59799c2933bd776ea22760fea5e97b4bd.tar.gz serd-b6197eb59799c2933bd776ea22760fea5e97b4bd.tar.bz2 serd-b6197eb59799c2933bd776ea22760fea5e97b4bd.zip |
Add cursor to statement
This allows the file and position of statements to be used in sinks, for
example for more helpful error reporting outside the parser.
Diffstat (limited to 'src/reader.c')
-rw-r--r-- | src/reader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c index 79e2315e..fb06bdc3 100644 --- a/src/reader.c +++ b/src/reader.c @@ -126,7 +126,8 @@ emit_statement(SerdReader* reader, ReadContext ctx, SerdNode* o) serd_node_zero_pad(o); const SerdStatement statement = { - { ctx.subject, ctx.predicate, o, graph } + { ctx.subject, ctx.predicate, o, graph }, + &reader->source.cur }; const SerdStatus st = reader->sink->statement( |