aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-14 17:27:51 +0200
committerDavid Robillard <d@drobilla.net>2020-06-21 18:12:03 +0200
commite147acdfcc238f4104a7f0c3b6eda04d10f6719d (patch)
tree66f8cf15e9dc5c33c0a86df82d80fa3fc15c09c9
parent252d923fae3face245c4a8a513f20781560a9455 (diff)
downloadserd-e147acdfcc238f4104a7f0c3b6eda04d10f6719d.tar.gz
serd-e147acdfcc238f4104a7f0c3b6eda04d10f6719d.tar.bz2
serd-e147acdfcc238f4104a7f0c3b6eda04d10f6719d.zip
Use SerdNodeFlags type everywhere
-rw-r--r--src/node.c18
1 files changed, 9 insertions, 9 deletions
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) {