From 40a83074705976ea59f0e1a5d06a4e5c7705472c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 20 Jun 2020 20:58:27 +0200 Subject: Make const Env functions tolerant of NULL This is convenient in places where you don't necessarily need an Env, since in this case these methods work the same as if with an empty Env. --- include/serd/serd.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/serd/serd.h b/include/serd/serd.h index 79353e50..cfdc8693 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -1030,7 +1030,7 @@ serd_env_free(SerdEnv* SERD_NULLABLE env); /// Get the current base URI SERD_PURE_API const SerdNode* SERD_NULLABLE -serd_env_base_uri(const SerdEnv* SERD_NONNULL env); +serd_env_base_uri(const SerdEnv* SERD_NULLABLE env); /// Set the current base URI SERD_API @@ -1058,7 +1058,7 @@ serd_env_set_prefix(SerdEnv* SERD_NONNULL env, */ SERD_API SerdNode* SERD_ALLOCATED -serd_env_qualify(const SerdEnv* SERD_NONNULL env, +serd_env_qualify(const SerdEnv* SERD_NULLABLE env, const SerdNode* SERD_NONNULL uri); /** @@ -1072,8 +1072,8 @@ serd_env_qualify(const SerdEnv* SERD_NONNULL env, */ SERD_API SerdNode* SERD_ALLOCATED -serd_env_expand(const SerdEnv* SERD_NONNULL env, - const SerdNode* SERD_NONNULL node); +serd_env_expand(const SerdEnv* SERD_NULLABLE env, + const SerdNode* SERD_NULLABLE node); /// Write all prefixes in `env` to `sink` SERD_API -- cgit v1.2.1