X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fhash.h;h=b28dc977f49a252401999274bb44a97d35a59b01;hp=de96f888128885ff419769a12a53a67e6b054d1b;hb=8d4b96efb7955eaa96174af4804597f92e124041;hpb=d9a6e9b7951388016638d05656645b22d8723fdb diff --git a/src/hash.h b/src/hash.h index de96f888..b28dc977 100644 --- a/src/hash.h +++ b/src/hash.h @@ -27,15 +27,15 @@ typedef struct hash_t { const void **values; } hash_t; -extern hash_t *hash_alloc(size_t n, size_t size) __attribute__((__malloc__)); -extern void hash_free(hash_t *); +hash_t *hash_alloc(size_t n, size_t size) __attribute__((__malloc__)); +void hash_free(hash_t *); -extern void hash_insert(hash_t *, const void *key, const void *value); +void hash_insert(hash_t *, const void *key, const void *value); -extern void *hash_search(const hash_t *, const void *key); -extern void *hash_search_or_insert(hash_t *, const void *key, const void *value); +void *hash_search(const hash_t *, const void *key); +void *hash_search_or_insert(hash_t *, const void *key, const void *value); -extern void hash_clear(hash_t *); -extern void hash_resize(hash_t *, size_t n); +void hash_clear(hash_t *); +void hash_resize(hash_t *, size_t n); #endif