aboutsummaryrefslogtreecommitdiff
path: root/hash.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-01-21 11:32:33 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-01-21 11:32:33 +0100
commitd5a5ce02552c4d58c34226eaa0b9c71743630a32 (patch)
treecd73d4fbcf95913da90a2195e99b7cb369f16b17 /hash.h
parentAdd closedir. (diff)
downloadcalp-d5a5ce02552c4d58c34226eaa0b9c71743630a32.tar.gz
calp-d5a5ce02552c4d58c34226eaa0b9c71743630a32.tar.xz
Bunch of renames + macros.
Diffstat (limited to 'hash.h')
-rw-r--r--hash.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/hash.h b/hash.h
index cf955a95..7706f089 100644
--- a/hash.h
+++ b/hash.h
@@ -10,7 +10,9 @@ unsigned long hash(char*);
#define TABLE(T) TP(table_, T)
#define HASH_PUT(T) TP(hash_put_, T)
#define HASH_GET(T) TP(hash_get_, T)
-#define HASH_INIT(T) TP(hash_init_, T)
+// #define HASH_INIT(T) TP(hash_init_, T)
+// #define HASH_INIT(T) CONSTRUCTOR_T(hash_ ## T, 1)
+#define HASH_INIT(T) CONSTRUCTOR_GEN(hash, T, 1)
#endif /* HASH_H */
#ifdef TYPE