mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
string-util: make clear that split() + FOREACH_WORD() should die
This commit is contained in:
parent
29965a2a6e
commit
82aa14e2a3
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue