diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-21 11:32:33 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-21 11:32:33 +0100 |
commit | d5a5ce02552c4d58c34226eaa0b9c71743630a32 (patch) | |
tree | cd73d4fbcf95913da90a2195e99b7cb369f16b17 /hash.h | |
parent | Add closedir. (diff) | |
download | calp-d5a5ce02552c4d58c34226eaa0b9c71743630a32.tar.gz calp-d5a5ce02552c4d58c34226eaa0b9c71743630a32.tar.xz |
Bunch of renames + macros.
Diffstat (limited to '')
-rw-r--r-- | hash.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |