diff options
author | David Robillard <d@drobilla.net> | 2020-11-13 11:22:18 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 16:27:02 -0500 |
commit | 4401b2bbcda598599469722d7288bc36e389e356 (patch) | |
tree | 858d8e69db0018e3c825c74cbd2cd82a4b66a0c6 /src/env.c | |
parent | 70277ccdb3035db83d81d942777c12a60c4aded3 (diff) | |
download | serd-4401b2bbcda598599469722d7288bc36e389e356.tar.gz serd-4401b2bbcda598599469722d7288bc36e389e356.tar.bz2 serd-4401b2bbcda598599469722d7288bc36e389e356.zip |
Shorten node constructor names
Diffstat (limited to 'src/env.c')
-rw-r--r-- | src/env.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -78,7 +78,7 @@ serd_env_set_base_uri(SerdEnv* const env, const SerdNode* const uri) // Resolve base URI and create a new node and URI for it SerdURIView base_uri; SerdNode base_uri_node = - serd_node_new_uri_from_node(uri, &env->base_uri, &base_uri); + serd_new_uri_from_node(uri, &env->base_uri, &base_uri); // Replace the current base URI serd_node_free(&env->base_uri_node); @@ -144,7 +144,7 @@ serd_env_set_prefix(SerdEnv* const env, // Resolve relative URI and create a new node and URI for it SerdURIView abs_uri; SerdNode abs_uri_node = - serd_node_new_uri_from_node(uri, &env->base_uri, &abs_uri); + serd_new_uri_from_node(uri, &env->base_uri, &abs_uri); // Set prefix to resolved (absolute) URI serd_env_add(env, name, &abs_uri_node); @@ -230,7 +230,7 @@ serd_env_expand_node(const SerdEnv* const env, const SerdNode* const node) break; case SERD_URI: { SerdURIView ignored; - return serd_node_new_uri_from_node(node, &env->base_uri, &ignored); + return serd_new_uri_from_node(node, &env->base_uri, &ignored); } case SERD_CURIE: { SerdStringView prefix; |