From a8e6dab2d1f20a861df947c5705b6bbd0cb81c1a Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Thu, 23 Jun 2005 21:05:32 +0000 Subject: Rename xmalloc to mdvi_malloc to avoid libtool conflict, update year in copyright. --- (limited to 'dvi/mdvi-lib/hash.c') 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 */ -- cgit v0.9.1