#include "git-compat-util.h" #include "strmap.h" #include "mem-pool.h" int cmp_strmap_entry(const void *hashmap_cmp_fn_data UNUSED, const struct hashmap_entry *entry1, const struct hashmap_entry *entry2, const void *keydata UNUSED) { … } static struct strmap_entry *find_strmap_entry(struct strmap *map, const char *str) { … } void strmap_init(struct strmap *map) { … } void strmap_init_with_options(struct strmap *map, struct mem_pool *pool, int strdup_strings) { … } static void strmap_free_entries_(struct strmap *map, int free_values) { … } void strmap_clear(struct strmap *map, int free_values) { … } void strmap_partial_clear(struct strmap *map, int free_values) { … } static struct strmap_entry *create_entry(struct strmap *map, const char *str, void *data) { … } void *strmap_put(struct strmap *map, const char *str, void *data) { … } struct strmap_entry *strmap_get_entry(struct strmap *map, const char *str) { … } void *strmap_get(struct strmap *map, const char *str) { … } int strmap_contains(struct strmap *map, const char *str) { … } void strmap_remove(struct strmap *map, const char *str, int free_value) { … } void strintmap_incr(struct strintmap *map, const char *str, intptr_t amt) { … } int strset_add(struct strset *set, const char *str) { … }