From 28632ce4934a1e370bd663243c804cd9821b0c76 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 15 Jul 2024 17:27:04 -0400 Subject: Add missing pure function attributes --- src/btree.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/btree.c b/src/btree.c index 7970796..db7f922 100644 --- a/src/btree.c +++ b/src/btree.c @@ -394,6 +394,7 @@ zix_btree_leaf_find(const ZixBTree* const t, t->cmp, t->cmp_data, n->data.leaf.vals, n->n_vals, e, equal); } +ZIX_PURE_FUNC static inline bool zix_btree_can_remove_from(const ZixBTreeNode* const n) { @@ -401,6 +402,7 @@ zix_btree_can_remove_from(const ZixBTreeNode* const n) return n->n_vals > zix_btree_min_vals(n); } +ZIX_PURE_FUNC static inline bool zix_btree_is_full(const ZixBTreeNode* const n) { -- cgit v1.2.1