Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dvi/mdvi-lib/hash.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-06-23 21:05:32 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2005-06-23 21:05:32 (GMT)
commita8e6dab2d1f20a861df947c5705b6bbd0cb81c1a (patch)
treecdea106e2e1798cba68d4e492e724b832ab6411d /dvi/mdvi-lib/hash.c
parent1f82fa9589a57a49476066010861a0dae84f39a1 (diff)
Rename xmalloc to mdvi_malloc to avoid libtool conflict, update year in
copyright.
Diffstat (limited to 'dvi/mdvi-lib/hash.c')
-rw-r--r--dvi/mdvi-lib/hash.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dvi/mdvi-lib/hash.c b/dvi/mdvi-lib/hash.c
index 5487bed..d030650 100644
--- a/dvi/mdvi-lib/hash.c
+++ b/dvi/mdvi-lib/hash.c
@@ -156,7 +156,7 @@ void *mdvi_hash_remove(DviHashTable *hash, DviHashKey key)
if(buck) {
data = buck->data;
- xfree(buck);
+ mdvi_free(buck);
}
return data;
}
@@ -184,7 +184,7 @@ void *mdvi_hash_remove_ptr(DviHashTable *hash, DviHashKey key)
hash->nkeys--;
/* destroy the bucket */
ptr = buck->data;
- xfree(buck);
+ mdvi_free(buck);
return ptr;
}
@@ -196,7 +196,7 @@ int mdvi_hash_destroy_key(DviHashTable *hash, DviHashKey key)
return -1;
if(hash->hash_free)
hash->hash_free(buck->key, buck->data);
- xfree(buck);
+ mdvi_free(buck);
return 0;
}
@@ -211,12 +211,12 @@ void mdvi_hash_reset(DviHashTable *hash, int reuse)
hash->buckets[i] = buck->next;
if(hash->hash_free)
hash->hash_free(buck->key, buck->data);
- xfree(buck);
+ mdvi_free(buck);
}
}
hash->nkeys = 0;
if(!reuse && hash->buckets) {
- xfree(hash->buckets);
+ mdvi_free(hash->buckets);
hash->buckets = NULL;
hash->nbucks = 0;
} /* otherwise, it is left empty, ready to be reused */