From e147acdfcc238f4104a7f0c3b6eda04d10f6719d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 14 Oct 2019 17:27:51 +0200 Subject: Use SerdNodeFlags type everywhere --- src/node.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src') diff --git a/src/node.c b/src/node.c index 9f471c63..8c838f60 100644 --- a/src/node.c +++ b/src/node.c @@ -115,9 +115,9 @@ serd_node_new_string(const char* str) return NULL; } - uint32_t flags = 0; - const size_t n_bytes = serd_strlen(str, &flags); - SerdNode* node = serd_node_malloc(n_bytes, flags, SERD_LITERAL); + SerdNodeFlags flags = 0; + const size_t n_bytes = serd_strlen(str, &flags); + SerdNode* node = serd_node_malloc(n_bytes, flags, SERD_LITERAL); memcpy(serd_node_buffer(node), str, n_bytes); node->n_bytes = n_bytes; return node; @@ -130,9 +130,9 @@ serd_node_new_substring(const char* str, const size_t len) return NULL; } - uint32_t flags = 0; - const size_t n_bytes = serd_substrlen(str, len, &flags); - SerdNode* node = serd_node_malloc(n_bytes, flags, SERD_LITERAL); + SerdNodeFlags flags = 0; + const size_t n_bytes = serd_substrlen(str, len, &flags); + SerdNode* node = serd_node_malloc(n_bytes, flags, SERD_LITERAL); memcpy(serd_node_buffer(node), str, n_bytes); node->n_bytes = n_bytes; return node; @@ -149,9 +149,9 @@ serd_node_new_literal(const char* str, return NULL; } - uint32_t flags = 0; - const size_t n_bytes = serd_strlen(str, &flags); - const size_t len = serd_node_pad_size(n_bytes); + SerdNodeFlags flags = 0; + const size_t n_bytes = serd_strlen(str, &flags); + const size_t len = serd_node_pad_size(n_bytes); SerdNode* node = NULL; if (lang) { -- cgit v1.2.1