diff options
author | Elijah Newren <newren@gmail.com> | 2020-11-02 18:55:06 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-02 12:15:50 -0800 |
commit | ae20bf1ad98bdc716879a8da99e7f329e3cc2730 (patch) | |
tree | 51464c9f9ae8ad2f3e538d324f44ca62dd638c0c /t/t3308-notes-merge.sh | |
parent | hashmap: provide deallocation function names (diff) | |
download | tgif-ae20bf1ad98bdc716879a8da99e7f329e3cc2730.tar.xz |
strmap: new utility functions
Add strmap as a new struct and associated utility functions,
specifically for hashmaps that map strings to some value. The API is
taken directly from Peff's proposal at
https://lore.kernel.org/git/20180906191203.GA26184@sigill.intra.peff.net/
Note that similar string-list, I have a strdup_strings setting.
However, unlike string-list, strmap_init() does not take a parameter for
this setting and instead automatically sets it to 1; callers who want to
control this detail need to instead call strmap_init_with_options().
(Future patches will add additional parameters to
strmap_init_with_options()).
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3308-notes-merge.sh')
0 files changed, 0 insertions, 0 deletions