basic/strv: make string_strv_hash_ops static, add missing assertions

This commit is contained in:
Mike Yuan
2024-09-20 22:44:35 +02:00
parent b9aef48837
commit 527b9e2437
2 changed files with 15 additions and 3 deletions
-1
View File
@@ -253,7 +253,6 @@ int fputstrv(FILE *f, char * const *l, const char *separator, bool *space);
#define strv_free_and_replace(a, b) \
free_and_replace_full(a, b, strv_free)
extern const struct hash_ops string_strv_hash_ops;
int _string_strv_hashmap_put(Hashmap **h, const char *key, const char *value HASHMAP_DEBUG_PARAMS);
int _string_strv_ordered_hashmap_put(OrderedHashmap **h, const char *key, const char *value HASHMAP_DEBUG_PARAMS);
#define string_strv_hashmap_put(h, k, v) _string_strv_hashmap_put(h, k, v HASHMAP_DEBUG_SRC_ARGS)