summaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-12-02 06:55:46 +0100
committerTor Andersson <tor@ghostscript.com>2004-12-02 06:55:46 +0100
commit5c335f9337724f61c14af143b18f0891c58dbacd (patch)
treebe1c7eef2412c09d4ae0caebd933a17e4b8b80f0 /base
parent615d27315a131bea0df699c3daa1102289b433c6 (diff)
downloadmupdf-5c335f9337724f61c14af143b18f0891c58dbacd.tar.xz
optimise object store. refcount resources. colorkeyed transparency. font bbox.
Diffstat (limited to 'base')
-rw-r--r--base/hash.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/hash.c b/base/hash.c
index e54ac7ea..65bc7130 100644
--- a/base/hash.c
+++ b/base/hash.c
@@ -73,6 +73,13 @@ fz_newhash(fz_hashtable **tablep, int initialsize, int keylen)
return nil;
}
+void
+fz_emptyhash(fz_hashtable *table)
+{
+ table->load = 0;
+ memset(table->ents, 0, sizeof(fz_hashentry) * table->size);
+}
+
int
fz_hashlen(fz_hashtable *table)
{