aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.h')
-rw-r--r--src/reader.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/reader.h b/src/reader.h
index 1dcf926f..a528fcc8 100644
--- a/src/reader.h
+++ b/src/reader.h
@@ -5,6 +5,7 @@
#define SERD_SRC_READER_H
#include "byte_source.h"
+#include "node.h"
#include "stack.h"
#include "serd/attributes.h"
@@ -55,7 +56,7 @@ struct SerdReaderImpl {
Ref rdf_first;
Ref rdf_rest;
Ref rdf_nil;
- SerdNode default_graph;
+ SerdNode* default_graph;
SerdByteSource source;
SerdStack stack;
SerdSyntax syntax;
@@ -80,13 +81,13 @@ push_node_padded(SerdReader* reader,
size_t maxlen,
SerdNodeType type,
const char* str,
- size_t n_bytes);
+ size_t length);
Ref
push_node(SerdReader* reader,
SerdNodeType type,
const char* str,
- size_t n_bytes);
+ size_t length);
SERD_PURE_FUNC size_t
genid_size(const SerdReader* reader);
@@ -181,7 +182,7 @@ push_byte(SerdReader* reader, Ref ref, const int c)
*(s - 1) = (char)c;
*s = '\0';
- ++node->n_bytes;
+ ++node->length;
return SERD_SUCCESS;
}