X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Ftrie.h;h=a15bb0358212b89479dfe3614b7fd0c18e805903;hb=7dacb2a75daa733259c374fb0248312cc7e025f6;hp=6363a213af2b394ce224013d6de841acf50d08fd;hpb=a4fe009d3366b0a3e119713b0ecc7fc0070efdfa;p=libucw.git diff --git a/ucw/trie.h b/ucw/trie.h index 6363a213..a15bb035 100644 --- a/ucw/trie.h +++ b/ucw/trie.h @@ -30,12 +30,16 @@ * TRIE_WANT_FIND_BUF node *find_buf(byte *ptr, uns len) * TRIE_WANT_ADD add(*node) * TRIE_WANT_REPLACE node *replace(*node) - * TRIE_WANT_DELETE delete(char *str) - * TRIE_WANT_DELETE_BUF delete_buf(byte *ptr, uns len) - * TRIE_WANT_REMOVE remove(*node) + * TRIE_WANT_DELETE delete(char *str) + * TRIE_WANT_DELETE_BUF delete_buf(byte *ptr, uns len) + * TRIE_WANT_REMOVE remove(*node) * * TRIE_WANT_AUDIT audit() * TRIE_WANT_STATS + * + * Be warned that the implementation uses alloca() in several macros, + * so if you use automatic variable-length arrays in the same function, + * all the hell may be unleashed. */ /*** Define once ***/ @@ -43,8 +47,8 @@ #ifndef _SHERLOCK_UCW_TRIE_H #define _SHERLOCK_UCW_TRIE_H -#include "ucw/eltpool.h" -#include "ucw/hashfunc.h" +#include +#include #include