string-util: make clear that split() + FOREACH_WORD() should die

This commit is contained in:
Lennart Poettering 2020-04-02 16:38:27 +02:00
parent 29965a2a6e
commit 82aa14e2a3

View file

@ -112,8 +112,10 @@ typedef enum SplitFlags {
SPLIT_RELAX = 0x01 << 1,
} SplitFlags;
/* Smelly. Do not use this anymore. Use extract_first_word() instead! */
const char* split(const char **state, size_t *l, const char *separator, SplitFlags flags);
/* Similar, don't use this anymore */
#define FOREACH_WORD(word, length, s, state) \
_FOREACH_WORD(word, length, s, WHITESPACE, 0, state)