X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fq.c;h=e703b93b79562c4c252324e0428d38ec320ac2bb;hb=9e51523b57fc5e715d498039543f8e630b664d7b;hp=0083dcd56056cc3482d0d7e418e4499c12bf4cde;hpb=3ef17c4cee41231e1eed731c08381d3ddf0c8d1a;p=swftools.git diff --git a/lib/q.c b/lib/q.c index 0083dcd..e703b93 100644 --- a/lib/q.c +++ b/lib/q.c @@ -389,7 +389,11 @@ stringarray_t* dictionary_index(dictionary_t*dict) dictionary_internal_t*d = (dictionary_internal_t*)dict->internal; return &d->keys; } - +int dictionary_count(dictionary_t* dict) // this count includes entries that have been deleted +{ + dictionary_internal_t*d = (dictionary_internal_t*)dict->internal; + return d->num; +} void* dictionary_lookup(dictionary_t*dict, const char*name) { int s;