summaryrefslogtreecommitdiff
path: root/Build/source/texk/xdvipdfmx/src/dpxutil.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/xdvipdfmx/src/dpxutil.h')
-rw-r--r--Build/source/texk/xdvipdfmx/src/dpxutil.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/Build/source/texk/xdvipdfmx/src/dpxutil.h b/Build/source/texk/xdvipdfmx/src/dpxutil.h
index da17d374e9f..f902bb1f2aa 100644
--- a/Build/source/texk/xdvipdfmx/src/dpxutil.h
+++ b/Build/source/texk/xdvipdfmx/src/dpxutil.h
@@ -66,23 +66,25 @@ struct ht_entry {
struct ht_entry *next;
};
+typedef void (*hval_free_func) (void *);
+
struct ht_table {
long count;
- void (*hval_free_fn) (void *);
+ hval_free_func hval_free_fn;
struct ht_entry *table[HASH_TABLE_SIZE];
};
-extern void ht_init_table (struct ht_table *ht);
-extern void ht_clear_table (struct ht_table *ht, void (*hval_free_fn) (void *));
+extern void ht_init_table (struct ht_table *ht,
+ hval_free_func hval_free_fn);
+extern void ht_clear_table (struct ht_table *ht);
extern void *ht_lookup_table (struct ht_table *ht,
const void *key, int keylen);
extern void ht_append_table (struct ht_table *ht,
const void *key, int keylen, void *value) ;
extern int ht_remove_table (struct ht_table *ht,
- const void *key, int keylen, void (*hval_free_fn) (void*));
+ const void *key, int keylen);
extern void ht_insert_table (struct ht_table *ht,
- const void *key, int keylen, void *value,
- void (*hval_free_fn) (void *));
+ const void *key, int keylen, void *value);
struct ht_iter {
int index;