aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-10-14 17:27:51 +0200
committerDavid Robillard <d@drobilla.net>2019-12-19 20:52:37 -0500
commit3dd440786b7f5bb77503a874b1f9dd00f3678537 (patch)
tree0eceb760face870217708e764831e454d7032fd1
parent8e04e69b5a724af9ce16c1178022afc8fdf38d69 (diff)
downloadserd-3dd440786b7f5bb77503a874b1f9dd00f3678537.tar.gz
serd-3dd440786b7f5bb77503a874b1f9dd00f3678537.tar.bz2
serd-3dd440786b7f5bb77503a874b1f9dd00f3678537.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 d9ce6dce..41eeb725 100644
--- a/src/node.c
+++ b/src/node.c
@@ -114,9 +114,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;
@@ -129,9 +129,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;
@@ -148,9 +148,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) {