diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-12-02 06:55:46 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-12-02 06:55:46 +0100 |
commit | 5c335f9337724f61c14af143b18f0891c58dbacd (patch) | |
tree | be1c7eef2412c09d4ae0caebd933a17e4b8b80f0 /base/hash.c | |
parent | 615d27315a131bea0df699c3daa1102289b433c6 (diff) | |
download | mupdf-5c335f9337724f61c14af143b18f0891c58dbacd.tar.xz |
optimise object store. refcount resources. colorkeyed transparency. font bbox.
Diffstat (limited to 'base/hash.c')
-rw-r--r-- | base/hash.c | 7 |
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) { |