X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fq.h;h=db55cd676b0040d290457ff99fbd67a598078ae2;hb=bb864e1a88e670c99d559c7dee4f74e9bf7d978b;hp=3cf8cbef2ed54534b13bac84fa593ec6dbd6b224;hpb=514edfe0ed692a226002388f6de8100beb28f90f;p=swftools.git diff --git a/lib/q.h b/lib/q.h index 3cf8cbe..db55cd6 100644 --- a/lib/q.h +++ b/lib/q.h @@ -174,6 +174,7 @@ void stringarray_destroy(stringarray_t*sa); dict_t*dict_new(); dict_t*dict_new2(type_t*type); void dict_init(dict_t*dict, int size); +void dict_init2(dict_t*dict, type_t*type, int size); dictentry_t*dict_put(dict_t*h, const void*key, void* data); void dict_put2(dict_t*h, const char*s, void*data); int dict_count(dict_t*h); @@ -211,6 +212,7 @@ void heap_dump(heap_t*h, FILE*fi); void** heap_flatten(heap_t*h); void trie_put(trie_t**t, unsigned const char*id); +char trie_remove(trie_t*t, unsigned const char*id); int trie_lookup(trie_t*t, unsigned const char*id); array_t* array_new();