summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2021-06-30 12:56:23 -0400
committerDavid Robillard <d@drobilla.net>2021-06-30 12:56:23 -0400
commit46f9327b06e866e3180c1924a0afa0afd8b0b5c5 (patch)
treea3928645be8c4da6e34dc2cdf9e2c6057d7fdf25 /src
parent5467f17c70d7eae8d58e88db002b6d046cc249ce (diff)
downloadzix-46f9327b06e866e3180c1924a0afa0afd8b0b5c5.tar.gz
zix-46f9327b06e866e3180c1924a0afa0afd8b0b5c5.tar.bz2
zix-46f9327b06e866e3180c1924a0afa0afd8b0b5c5.zip
Add pure attribute to internal BTree accessor functions
Diffstat (limited to 'src')
-rw-r--r--src/btree.c3
1 files changed, 3 insertions, 0 deletions
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)
{