aboutsummaryrefslogtreecommitdiffstats
path: root/src/read_turtle.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-06-28 23:26:48 +0200
committerDavid Robillard <d@drobilla.net>2023-12-02 18:49:08 -0500
commita083c64f506175029280ff76defa0ad7d7ae2ea0 (patch)
tree5e666749e352659d225d9c45c60bee06bd2bfe5c /src/read_turtle.c
parent20eb7727954f9d8b7164146895904bbe595f5932 (diff)
downloadserd-a083c64f506175029280ff76defa0ad7d7ae2ea0.tar.gz
serd-a083c64f506175029280ff76defa0ad7d7ae2ea0.tar.bz2
serd-a083c64f506175029280ff76defa0ad7d7ae2ea0.zip
Simplify input stream API
Diffstat (limited to 'src/read_turtle.c')
-rw-r--r--src/read_turtle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/read_turtle.c b/src/read_turtle.c
index 19a47ebf..828818ba 100644
--- a/src/read_turtle.c
+++ b/src/read_turtle.c
@@ -49,7 +49,7 @@ read_whitespace(SerdReader* const reader)
case '\n':
case '\r':
case ' ':
- return serd_byte_source_advance(&reader->source);
+ return serd_byte_source_advance(reader->source);
case '#':
return read_comment(reader);
default:
@@ -1019,7 +1019,7 @@ read_turtle_statement(SerdReader* const reader)
SerdStatus
read_turtleDoc(SerdReader* const reader)
{
- while (!reader->source.eof) {
+ while (!reader->source->eof) {
const size_t orig_stack_size = reader->stack.size;
const SerdStatus st = read_turtle_statement(reader);