aboutsummaryrefslogtreecommitdiffstats
path: root/src/statement.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-06-03 22:23:28 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:12:04 +0200
commit5329ada96fd9d746aa1302eb353efccf9ba4a1b3 (patch)
tree0024ff2827962f9c791bec8d484f1c7691729b36 /src/statement.h
parent8c4a8baf4f9081bdb9523c08005a529a71fd6722 (diff)
downloadserd-5329ada96fd9d746aa1302eb353efccf9ba4a1b3.tar.gz
serd-5329ada96fd9d746aa1302eb353efccf9ba4a1b3.tar.bz2
serd-5329ada96fd9d746aa1302eb353efccf9ba4a1b3.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/statement.h')
-rw-r--r--src/statement.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/statement.h b/src/statement.h
index 19b4a91f..1cb5345c 100644
--- a/src/statement.h
+++ b/src/statement.h
@@ -27,7 +27,8 @@
typedef const SerdNode* SerdQuad[4];
struct SerdStatementImpl {
- SerdQuad nodes;
+ SerdQuad nodes;
+ SerdCursor* cursor;
};
#endif // SERD_STATEMENT_H