summaryrefslogtreecommitdiffstats
path: root/zix/patree.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-11-11 12:07:48 +0100
committerDavid Robillard <d@drobilla.net>2020-11-11 12:07:48 +0100
commit387f52cd29b6078d441da5fd07a951a481c10b6d (patch)
tree0f72b0cd5cbaeaa13b3ea7867846aea87a3d4a87 /zix/patree.c
parente800887f557d9336bb4e8cf2ac20e1f16d81de70 (diff)
downloadzix-387f52cd29b6078d441da5fd07a951a481c10b6d.tar.gz
zix-387f52cd29b6078d441da5fd07a951a481c10b6d.tar.bz2
zix-387f52cd29b6078d441da5fd07a951a481c10b6d.zip
Remove redundant API attributes in implementation files
Diffstat (limited to 'zix/patree.c')
-rw-r--r--zix/patree.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/zix/patree.c b/zix/patree.c
index 54a5637..a7d7e45 100644
--- a/zix/patree.c
+++ b/zix/patree.c
@@ -117,7 +117,7 @@ realloc_node(ZixPatreeNode* n, n_edges_t n_children)
return (ZixPatreeNode*)realloc(n, zix_patree_node_size(n_children));
}
-ZIX_API ZixPatree*
+ZixPatree*
zix_patree_new(void)
{
ZixPatree* t = (ZixPatree*)calloc(1, sizeof(ZixPatree));
@@ -138,7 +138,7 @@ zix_patree_free_rec(ZixPatreeNode* n)
}
}
-ZIX_API void
+void
zix_patree_free(ZixPatree* t)
{
zix_patree_free_rec(t->root);
@@ -293,7 +293,7 @@ patree_insert_internal(ZixPatreeNode** n_ptr,
return ZIX_STATUS_SUCCESS;
}
-ZIX_API ZixStatus
+ZixStatus
zix_patree_insert(ZixPatree* t, const char* str, size_t len)
{
assert(strlen(str) == len);
@@ -302,7 +302,7 @@ zix_patree_insert(ZixPatree* t, const char* str, size_t len)
return patree_insert_internal(&t->root, ustr, ustr, len);
}
-ZIX_API ZixStatus
+ZixStatus
zix_patree_find(const ZixPatree* t, const char* const str, const char** match)
{
ZixPatreeNode* n = t->root;