Mercurial > hg > th-libs
changeset 560:414755d33796
Rename th_llist_free_func() to th_llist_free_func_data() to make it a bit more clear what this function does.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 05 Jan 2020 20:47:21 +0200 |
parents | 6021ef8fc341 |
children | 7dce38c022d7 |
files | th_datastruct.c th_datastruct.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/th_datastruct.c Sun Jan 05 20:17:59 2020 +0200 +++ b/th_datastruct.c Sun Jan 05 20:47:21 2020 +0200 @@ -35,7 +35,7 @@ } -void th_llist_free_func(th_llist_t *list, void (*freefunc)(void *data)) +void th_llist_free_func_data(th_llist_t *list, void (*freefunc)(void *data)) { th_llist_t *curr = list;
--- a/th_datastruct.h Sun Jan 05 20:17:59 2020 +0200 +++ b/th_datastruct.h Sun Jan 05 20:47:21 2020 +0200 @@ -27,7 +27,7 @@ th_llist_t * th_llist_new(void *data); void th_llist_free(th_llist_t *list); -void th_llist_free_func(th_llist_t *list, void (*freefunc)(void *data)); +void th_llist_free_func_data(th_llist_t *list, void (*freefunc)(void *data)); void th_llist_free_func_node(th_llist_t *list, void (*freefunc)(th_llist_t *node)); void th_llist_append_node(th_llist_t **list, th_llist_t *node);