X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fq.h;h=18e7f3a7cfca6ed4a86ea41296cbf7709b48ed99;hb=d5a67d6c3d1e97ebe9b30b26dd4c68cd7aa4c9c8;hp=064949a3e36f92646520645003c059c80e98a226;hpb=9788caae660683c6c8f98f53b3fc1a4274b73e47;p=swftools.git diff --git a/lib/q.h b/lib/q.h index 064949a..18e7f3a 100644 --- a/lib/q.h +++ b/lib/q.h @@ -111,11 +111,14 @@ void map_destroy(map_t*map); void dictionary_init(dictionary_t*dict); void dictionary_put(dictionary_t*dict, string_t t1, void* t2); void dictionary_put2(dictionary_t*dict, const char* t1, void* t2); +stringarray_t* dictionary_index(dictionary_t*dict); +int dictionary_count(dictionary_t* dict); void* dictionary_lookup(dictionary_t*dict, const char*name); void dictionary_dump(dictionary_t*dict, FILE*fi, const char*prefix); void dictionary_del(dictionary_t*dict, const char* name); void dictionary_clear(dictionary_t*dict); void dictionary_destroy(dictionary_t*dict); +void dictionary_free_all(dictionary_t* dict, void (*freeFunction)(void*)); void heap_init(heap_t*h,int n,int elem_size, int(*compare)(const void *, const void *)); void heap_clear(heap_t*h); @@ -128,14 +131,6 @@ void** heap_flatten(heap_t*h); char* strdup_n(const char*str, int size); -void* qmalloc_internal(int len); -void* qrealloc_internal(void*old, int len); -void qfree_internal(void*old); - -#define qmalloc(len) qmalloc_internal(len) -#define qrealloc(old, len) qmalloc_internal(old, len) -#define qfree(old) qmalloc_internal(old) - #ifdef __cplusplus } #endif