X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fq.h;h=f6d597dac3c24bdaa9de992b59c40583e2f7cbeb;hb=b5a996ee217aea486eb78860fe7bab2b522f9678;hp=df1c07459ad10bc3eaeb36e6f3a57bf6752dbcd8;hpb=66a03382aab040571f94b0861719753bda3ff8f1;p=swftools.git diff --git a/lib/q.h b/lib/q.h index df1c074..f6d597d 100644 --- a/lib/q.h +++ b/lib/q.h @@ -23,6 +23,7 @@ #define __q_h__ #include +#include "mem.h" #ifdef __cplusplus extern "C" { @@ -134,6 +135,8 @@ typedef struct _trie { char* strdup_n(const char*str, int size); char* allocprintf(const char*str, ...); +float medianf(float*values, int n); + unsigned int crc32_add_byte(unsigned int crc32, unsigned char b); unsigned int crc32_add_string(unsigned int crc32, const char*s); @@ -189,6 +192,7 @@ dictentry_t* dict_get_slot(dict_t*h, const void*key); char dict_contains(dict_t*h, const void*s); void* dict_lookup(dict_t*h, const void*s); char dict_del(dict_t*h, const void*s); +char dict_del2(dict_t*h, const void*key, void*data); dict_t*dict_clone(dict_t*); void dict_foreach_keyvalue(dict_t*h, void (*runFunction)(void*data, const void*key, void*val), void*data);