summaryrefslogtreecommitdiff
path: root/Build/source/texk/kpathsea/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/kpathsea/hash.h')
-rw-r--r--Build/source/texk/kpathsea/hash.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/Build/source/texk/kpathsea/hash.h b/Build/source/texk/kpathsea/hash.h
index f79182bb628..a88233fed6f 100644
--- a/Build/source/texk/kpathsea/hash.h
+++ b/Build/source/texk/kpathsea/hash.h
@@ -38,36 +38,35 @@ typedef struct
unsigned size;
} hash_table_type;
-#ifdef KPSE_DEBUG
-/* How to print the hash results when debugging. */
-extern KPSEDLL boolean kpse_debug_hash_lookup_int;
-#endif
/* Create a hash table of size SIZE. */
-extern KPSEDLL hash_table_type hash_create P1H(unsigned size);
+extern KPSEDLL hash_table_type hash_create (unsigned size);
/* Insert the (KEY,VALUE) association into TABLE. KEY may have more
than one VALUE. Neither KEY nor VALUE is copied. */
-extern KPSEDLL void hash_insert P3H(hash_table_type *table,
+extern KPSEDLL void hash_insert (hash_table_type *table,
const_string key,
const_string value);
/* Insert the (KEY, VALUE) association into TABLE. KEY may have more
than one VALUE. Neither KEY nor VALUE is copied. Assume that KEY
is already normalized (all lowercase) on platforms where this matters. */
-extern KPSEDLL void hash_insert_normalized P3H(hash_table_type *table,
+extern KPSEDLL void hash_insert_normalized (hash_table_type *table,
const_string key,
const_string value);
/* Remove the (KEY,VALUE) association from TABLE. */
-extern KPSEDLL void hash_remove P3H(hash_table_type *table, const_string key,
+extern KPSEDLL void hash_remove (hash_table_type *table, const_string key,
const_string value);
/* Look up KEY in MAP, and return NULL-terminated list of all matching
values (not copies), in insertion order. If none, return NULL. */
-extern KPSEDLL string *hash_lookup P2H(hash_table_type table, const_string key);
+extern KPSEDLL string *hash_lookup (hash_table_type table, const_string key);
/* Print TABLE to stderr. */
-extern void hash_print P2H(hash_table_type table, boolean summary_only);
+extern void hash_print (hash_table_type table, boolean summary_only);
+
+/* Drop the TABLE */
+extern void hash_free (hash_table_type table);
#endif /* not HASH_H */