On Tue, Apr 18, 2017 at 4:36 PM, Brandon Williams wrote:
> On 04/18, Stefan Beller wrote:
>> On Tue, Apr 18, 2017 at 4:17 PM, Brandon Williams wrote:
>>
>> >
>> > +void string_list_remove(struct string_list *list, const char *string,
>> > + int free_util)
>> > +{
>> > +
On 04/18, Stefan Beller wrote:
> On Tue, Apr 18, 2017 at 4:17 PM, Brandon Williams wrote:
>
> >
> > +void string_list_remove(struct string_list *list, const char *string,
> > + int free_util)
> > +{
> > + int exact_match;
> > + int i = get_entry_index(list, strin
On Tue, Apr 18, 2017 at 4:17 PM, Brandon Williams wrote:
>
> +void string_list_remove(struct string_list *list, const char *string,
> + int free_util)
> +{
> + int exact_match;
> + int i = get_entry_index(list, string, &exact_match);
> +
> + if (exact_match
Teach string-list to be able to remove a string from a sorted
'struct string_list'.
Signed-off-by: Brandon Williams
---
string-list.c | 18 ++
string-list.h | 5 +
2 files changed, 23 insertions(+)
diff --git a/string-list.c b/string-list.c
index 45016ad86..8f7b69ada 100644
4 matches
Mail list logo