aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-12-09 01:15:23 +0000
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-12-09 01:15:38 +0000
commit98c1e19466c0d83c8e1ca86eda5b273eda7eff3c (patch)
treeb47ccc174669786e3a1df9569046886c23003a45 /include
parentCleanup list code (diff)
downloadsway-98c1e19466c0d83c8e1ca86eda5b273eda7eff3c.tar.gz
sway-98c1e19466c0d83c8e1ca86eda5b273eda7eff3c.tar.zst
sway-98c1e19466c0d83c8e1ca86eda5b273eda7eff3c.zip
list.c: rename free_flat_list to list_free_items_and_destroy
Diffstat (limited to 'include')
-rw-r--r--include/list.h2
-rw-r--r--include/stringop.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/list.h b/include/list.h
index 70af49f6..895f6cc0 100644
--- a/include/list.h
+++ b/include/list.h
@@ -31,5 +31,5 @@ void list_move_to_end(list_t *list, void *item);
31 * Do not use this to free lists of primitives or items that require more 31 * Do not use this to free lists of primitives or items that require more
32 * complicated deallocation code. 32 * complicated deallocation code.
33 */ 33 */
34void free_flat_list(list_t *list); 34void list_free_items_and_destroy(list_t *list);
35#endif 35#endif
diff --git a/include/stringop.h b/include/stringop.h
index 215f7916..d1bfa29d 100644
--- a/include/stringop.h
+++ b/include/stringop.h
@@ -17,7 +17,7 @@ char *lenient_strncat(char *dest, const char *src, size_t len);
17// strcmp that also handles null pointers. 17// strcmp that also handles null pointers.
18int lenient_strcmp(char *a, char *b); 18int lenient_strcmp(char *a, char *b);
19 19
20// Simply split a string with delims, free with `free_flat_list` 20// Simply split a string with delims, free with `list_free_items_and_destroy`
21list_t *split_string(const char *str, const char *delims); 21list_t *split_string(const char *str, const char *delims);
22 22
23// Splits an argument string, keeping quotes intact 23// Splits an argument string, keeping quotes intact