diff options
author | David Robillard <d@drobilla.net> | 2022-12-19 20:26:13 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-12-02 18:49:07 -0500 |
commit | 3d79b6ee36b250644e6cf70eee8e3076d94cbb7f (patch) | |
tree | 0f734bfcfd278d6eef5ca0e82c008b7f2a6f7bba /src/uri_utils.h | |
parent | 7fb4c5264b91d5a5ce9f13a9fb4308088b31fcd4 (diff) | |
download | serd-3d79b6ee36b250644e6cf70eee8e3076d94cbb7f.tar.gz serd-3d79b6ee36b250644e6cf70eee8e3076d94cbb7f.tar.bz2 serd-3d79b6ee36b250644e6cf70eee8e3076d94cbb7f.zip |
Use Zix attributes directly
Diffstat (limited to 'src/uri_utils.h')
-rw-r--r-- | src/uri_utils.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/uri_utils.h b/src/uri_utils.h index 36db5fb5..004129d2 100644 --- a/src/uri_utils.h +++ b/src/uri_utils.h @@ -46,7 +46,7 @@ uri_path_at(const SerdURIView* uri, size_t i) slash is the last in the root, then the URI is a child of the root, otherwise it may merely share some leading path components). */ -static inline SERD_PURE_FUNC SlashIndexes +static inline ZIX_PURE_FUNC SlashIndexes uri_rooted_index(const SerdURIView* uri, const SerdURIView* root) { SlashIndexes indexes = {SIZE_MAX, SIZE_MAX}; @@ -84,7 +84,7 @@ uri_rooted_index(const SerdURIView* uri, const SerdURIView* root) } /** Return true iff `uri` shares path components with `root` */ -static inline SERD_PURE_FUNC bool +static inline ZIX_PURE_FUNC bool uri_is_related(const SerdURIView* uri, const SerdURIView* root) { return root && root->scheme.length && @@ -93,7 +93,7 @@ uri_is_related(const SerdURIView* uri, const SerdURIView* root) } /** Return true iff `uri` is within the base of `root` */ -static inline SERD_PURE_FUNC bool +static inline ZIX_PURE_FUNC bool uri_is_under(const SerdURIView* uri, const SerdURIView* root) { const SlashIndexes indexes = uri_rooted_index(uri, root); |