diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/node.c | 8 | ||||
-rw-r--r-- | src/node.h | 4 | ||||
-rw-r--r-- | src/reader.c | 18 | ||||
-rw-r--r-- | src/reader.h | 15 |
4 files changed, 24 insertions, 21 deletions
@@ -54,7 +54,7 @@ string_sink(const void* const buf, const size_t len, void* const stream) } SerdNode -serd_node_from_string(SerdType type, const char* const str) +serd_node_from_string(const SerdNodeType type, const char* const str) { if (!str) { return SERD_NODE_NULL; @@ -67,9 +67,9 @@ serd_node_from_string(SerdType type, const char* const str) } SerdNode -serd_node_from_substring(const SerdType type, - const char* const str, - const size_t len) +serd_node_from_substring(const SerdNodeType type, + const char* const str, + const size_t len) { if (!str) { return SERD_NODE_NULL; @@ -11,7 +11,7 @@ struct SerdNodeImpl { size_t n_bytes; /**< Size in bytes (not including null) */ SerdNodeFlags flags; /**< Node flags (e.g. string properties) */ - SerdType type; /**< Node type */ + SerdNodeType type; /**< Node type */ }; static inline char* SERD_NONNULL @@ -27,7 +27,7 @@ serd_node_buffer_c(const SerdNode* SERD_NONNULL node) } SerdNode* SERD_ALLOCATED -serd_node_malloc(size_t n_bytes, SerdNodeFlags flags, SerdType type); +serd_node_malloc(size_t n_bytes, SerdNodeFlags flags, SerdNodeType type); void serd_node_set(SerdNode* SERD_NULLABLE* SERD_NONNULL dst, diff --git a/src/reader.c b/src/reader.c index 45f5f157..8bd80d37 100644 --- a/src/reader.c +++ b/src/reader.c @@ -71,11 +71,11 @@ serd_file_read_byte(void* const buf, } Ref -push_node_padded(SerdReader* const reader, - const size_t maxlen, - const SerdType type, - const char* const str, - const size_t n_bytes) +push_node_padded(SerdReader* const reader, + const size_t maxlen, + const SerdNodeType type, + const char* const str, + const size_t n_bytes) { void* mem = serd_stack_push_aligned( &reader->stack, sizeof(SerdNode) + maxlen + 1, sizeof(SerdNode)); @@ -98,10 +98,10 @@ push_node_padded(SerdReader* const reader, } Ref -push_node(SerdReader* const reader, - const SerdType type, - const char* const str, - const size_t n_bytes) +push_node(SerdReader* const reader, + const SerdNodeType type, + const char* const str, + const size_t n_bytes) { return push_node_padded(reader, n_bytes, type, str, n_bytes); } diff --git a/src/reader.h b/src/reader.h index 05774abe..ce2d1a59 100644 --- a/src/reader.h +++ b/src/reader.h @@ -70,14 +70,17 @@ SerdStatus r_err(SerdReader* reader, SerdStatus st, const char* fmt, ...); Ref -push_node_padded(SerdReader* reader, - size_t maxlen, - SerdType type, - const char* str, - size_t n_bytes); +push_node_padded(SerdReader* reader, + size_t maxlen, + SerdNodeType type, + const char* str, + size_t n_bytes); Ref -push_node(SerdReader* reader, SerdType type, const char* str, size_t n_bytes); +push_node(SerdReader* reader, + SerdNodeType type, + const char* str, + size_t n_bytes); SERD_PURE_FUNC size_t genid_size(const SerdReader* reader); |