diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-06-04 19:58:18 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-06-24 10:38:15 +0200 |
commit | b8b46b1ce5e1528522c3ebb752721f0bc3250961 (patch) | |
tree | 982f2454d011da102ab5b3e87971a74470f1d320 /src/basic/set.h | |
parent | basic/set: add set_ensure_consume() (diff) | |
download | systemd-b8b46b1ce5e1528522c3ebb752721f0bc3250961.tar.xz systemd-b8b46b1ce5e1528522c3ebb752721f0bc3250961.zip |
basic/set,hashmap: pass through allocation info in more cases
Diffstat (limited to 'src/basic/set.h')
-rw-r--r-- | src/basic/set.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/basic/set.h b/src/basic/set.h index 3684a00f78..696de8ad57 100644 --- a/src/basic/set.h +++ b/src/basic/set.h @@ -127,8 +127,12 @@ int _set_ensure_consume(Set **s, const struct hash_ops *hash_ops, void *key HAS #define set_ensure_consume(s, hash_ops, key) _set_ensure_consume(s, hash_ops, key HASHMAP_DEBUG_SRC_ARGS) int set_consume(Set *s, void *value); -int set_put_strdup(Set **s, const char *p); -int set_put_strdupv(Set **s, char **l); + +int _set_put_strdup(Set **s, const char *p HASHMAP_DEBUG_PARAMS); +#define set_put_strdup(s, p) _set_put_strdup(s, p HASHMAP_DEBUG_SRC_ARGS) +int _set_put_strdupv(Set **s, char **l HASHMAP_DEBUG_PARAMS); +#define set_put_strdupv(s, l) _set_put_strdupv(s, l HASHMAP_DEBUG_SRC_ARGS) + int set_put_strsplit(Set *s, const char *v, const char *separators, ExtractFlags flags); #define SET_FOREACH(e, s, i) \ |