diff options
author | David Robillard <d@drobilla.net> | 2020-08-14 15:51:13 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-14 19:07:52 +0200 |
commit | 8827c4a88998b12cbfd2076c207d2d46e57b0b51 (patch) | |
tree | b309e82d61f306251269f01735db1c6c811b7943 | |
parent | 3f5ba5908117cf3351702c144a2509f4bf48d75b (diff) | |
download | serd-8827c4a88998b12cbfd2076c207d2d46e57b0b51.tar.gz serd-8827c4a88998b12cbfd2076c207d2d46e57b0b51.tar.bz2 serd-8827c4a88998b12cbfd2076c207d2d46e57b0b51.zip |
Use SerdNodeFlags type everywhere
-rw-r--r-- | src/node.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -46,10 +46,10 @@ serd_node_from_string(SerdType type, const uint8_t* str) return SERD_NODE_NULL; } - uint32_t flags = 0; - size_t buf_n_bytes = 0; - const size_t buf_n_chars = serd_strlen(str, &buf_n_bytes, &flags); - SerdNode ret = { str, buf_n_bytes, buf_n_chars, flags, type }; + SerdNodeFlags flags = 0; + size_t buf_n_bytes = 0; + const size_t buf_n_chars = serd_strlen(str, &buf_n_bytes, &flags); + SerdNode ret = {str, buf_n_bytes, buf_n_chars, flags, type}; return ret; } @@ -60,9 +60,9 @@ serd_node_from_substring(SerdType type, const uint8_t* str, const size_t len) return SERD_NODE_NULL; } - uint32_t flags = 0; - size_t buf_n_bytes = 0; - const size_t buf_n_chars = serd_substrlen(str, len, &buf_n_bytes, &flags); + SerdNodeFlags flags = 0; + size_t buf_n_bytes = 0; + const size_t buf_n_chars = serd_substrlen(str, len, &buf_n_bytes, &flags); assert(buf_n_bytes <= len); SerdNode ret = { str, buf_n_bytes, buf_n_chars, flags, type }; return ret; |