Drop FOREACH_WORD_QUOTED

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2016-10-27 22:44:50 -04:00
parent ceed8f0c8b
commit bc8ec170d2
3 changed files with 14 additions and 16 deletions

View File

@@ -107,9 +107,6 @@ const char* split(const char **state, size_t *l, const char *separator, bool quo
#define FOREACH_WORD_SEPARATOR(word, length, s, separator, state) \
_FOREACH_WORD(word, length, s, separator, false, state)
#define FOREACH_WORD_QUOTED(word, length, s, state) \
_FOREACH_WORD(word, length, s, WHITESPACE, true, state)
#define _FOREACH_WORD(word, length, s, separator, quoted, state) \
for ((state) = (s), (word) = split(&(state), &(length), (separator), (quoted)); (word); (word) = split(&(state), &(length), (separator), (quoted)))