diff options
author | David Robillard <d@drobilla.net> | 2014-10-01 15:50:28 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-10-01 15:50:28 +0000 |
commit | b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64 (patch) | |
tree | 5e2307f443633b9c4bbf8bc96cfeaff5ff2337f8 /zix/patree.h | |
parent | dee23c2058fd33e14610ceda277c11e4d8ce768b (diff) | |
download | zix-b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64.tar.gz zix-b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64.tar.bz2 zix-b10ae60816015d85ed9aa27fdb98d1b0f6bfdf64.zip |
Improve ZixPatree with more compact index.
git-svn-id: http://svn.drobilla.net/zix/trunk@95 df6676b4-ccc9-40e5-b5d6-7c4628a128e3
Diffstat (limited to 'zix/patree.h')
-rw-r--r-- | zix/patree.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/zix/patree.h b/zix/patree.h index c89bc9b..35436c8 100644 --- a/zix/patree.h +++ b/zix/patree.h @@ -31,36 +31,31 @@ typedef struct _ZixPatree ZixPatree; /** Construct a new Patree. */ -ZIX_API -ZixPatree* +ZIX_API ZixPatree* zix_patree_new(void); /** Destroy `t`. */ -ZIX_API -void +ZIX_API void zix_patree_free(ZixPatree* t); /** Print a DOT description of `t` to `fd`. */ -ZIX_API -void +ZIX_API void zix_patree_print_dot(const ZixPatree* t, FILE* fd); /** Insert `str` into `t`. */ -ZIX_API -ZixStatus -zix_patree_insert(ZixPatree* t, const char* str); +ZIX_API ZixStatus +zix_patree_insert(ZixPatree* t, const char* str, size_t len); /** Search for `str` in `t`. */ -ZIX_API -ZixStatus +ZIX_API ZixStatus zix_patree_find(const ZixPatree* t, const char* str, const char** match); /** |