From 46f9327b06e866e3180c1924a0afa0afd8b0b5c5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 30 Jun 2021 12:56:23 -0400 Subject: Add pure attribute to internal BTree accessor functions --- src/btree.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/btree.c b/src/btree.c index 7926a56..56c9767 100644 --- a/src/btree.c +++ b/src/btree.c @@ -125,6 +125,7 @@ zix_btree_node_new(const bool leaf) return node; } +ZIX_PURE_FUNC static void* zix_btree_value(const ZixBTreeNode* const node, const unsigned i) { @@ -132,6 +133,7 @@ zix_btree_value(const ZixBTreeNode* const node, const unsigned i) return node->is_leaf ? node->data.leaf.vals[i] : node->data.inode.vals[i]; } +ZIX_PURE_FUNC static ZixBTreeNode* zix_btree_child(const ZixBTreeNode* const node, const unsigned i) { @@ -424,6 +426,7 @@ zix_btree_iter_set_frame(ZixBTreeIter* const ti, } } +ZIX_PURE_FUNC static bool zix_btree_node_is_minimal(ZixBTreeNode* const n) { -- cgit v1.2.1