1 | #ifndef DEFINE_FUNC_ATTRIBUTES |
2 | # define DEFINE_FUNC_ATTRIBUTES |
3 | #endif |
4 | #include "nvim/func_attr.h" |
5 | #undef DEFINE_FUNC_ATTRIBUTES |
6 | void hash_init(hashtab_T *ht); |
7 | void hash_clear(hashtab_T *ht); |
8 | void hash_clear_all(hashtab_T *ht, unsigned int off); |
9 | hashitem_T *hash_find(const hashtab_T *const ht, const char_u *const key); |
10 | hashitem_T *hash_find_len(const hashtab_T *const ht, const char *const key, const size_t len); |
11 | hashitem_T *hash_lookup(const hashtab_T *const ht, const char *const key, const size_t key_len, const hash_T hash); |
12 | void hash_debug_results(void); |
13 | int hash_add(hashtab_T *ht, char_u *key); |
14 | void hash_add_item(hashtab_T *ht, hashitem_T *hi, char_u *key, hash_T hash); |
15 | void hash_remove(hashtab_T *ht, hashitem_T *hi); |
16 | void hash_lock(hashtab_T *ht); |
17 | void hash_unlock(hashtab_T *ht); |
18 | hash_T hash_hash(const char_u *key); |
19 | hash_T hash_hash_len(const char *key, const size_t len) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT; |
20 | const char_u *_hash_key_removed(void) FUNC_ATTR_PURE FUNC_ATTR_WARN_UNUSED_RESULT; |
21 | #include "nvim/func_attr.h" |
22 | |