summaryrefslogtreecommitdiff
path: root/tools/build/v2/engine/hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/v2/engine/hash.h')
-rw-r--r--tools/build/v2/engine/hash.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/build/v2/engine/hash.h b/tools/build/v2/engine/hash.h
new file mode 100644
index 0000000000..7195b4146f
--- /dev/null
+++ b/tools/build/v2/engine/hash.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright 1993, 1995 Christopher Seiwald.
+ *
+ * This file is part of Jam - see jam.c for Copyright information.
+ */
+
+/*
+ * hash.h - simple in-memory hashing routines
+ */
+
+#ifndef BOOST_JAM_HASH_H
+#define BOOST_JAM_HASH_H
+
+typedef struct hashdata HASHDATA;
+
+struct hash * hashinit ( int datalen, char * name );
+int hashitem ( struct hash * hp, HASHDATA * * data, int enter );
+void hashdone ( struct hash * hp );
+void hashenumerate( struct hash * hp, void (* f)( void *, void * ), void * data );
+int hash_free ( struct hash * hp, HASHDATA * data);
+
+#define hashenter( hp, data ) ( !hashitem( hp, data, !0 ) )
+#define hashcheck( hp, data ) hashitem( hp, data, 0 )
+
+#endif