diff options
author | Ryan Dwyer <RyanDwyer@users.noreply.github.com> | 2018-12-09 21:50:19 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-09 21:50:19 +1000 |
commit | b61a936c8060bc4ac4320a5f76fd98b5042e5e41 (patch) | |
tree | 279a5554686d6e862282c943bda50787b69711e1 /include/stringop.h | |
parent | Merge pull request #3264 from ianyfan/resize-list (diff) | |
parent | list.c: rename free_flat_list to list_free_items_and_destroy (diff) | |
download | sway-b61a936c8060bc4ac4320a5f76fd98b5042e5e41.tar.gz sway-b61a936c8060bc4ac4320a5f76fd98b5042e5e41.tar.zst sway-b61a936c8060bc4ac4320a5f76fd98b5042e5e41.zip |
Merge pull request #3271 from ianyfan/list-cleanup
list.c: Remove list_foreach
Diffstat (limited to 'include/stringop.h')
-rw-r--r-- | include/stringop.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/stringop.h b/include/stringop.h index 919e605c..d1bfa29d 100644 --- a/include/stringop.h +++ b/include/stringop.h | |||
@@ -17,9 +17,8 @@ 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. |
18 | int lenient_strcmp(char *a, char *b); | 18 | int 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` |
21 | list_t *split_string(const char *str, const char *delims); | 21 | list_t *split_string(const char *str, const char *delims); |
22 | void free_flat_list(list_t *list); | ||
23 | 22 | ||
24 | // Splits an argument string, keeping quotes intact | 23 | // Splits an argument string, keeping quotes intact |
25 | char **split_args(const char *str, int *argc); | 24 | char **split_args(const char *str, int *argc); |