X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fstring-util.h;h=668b63907566e1cfdf743a0f1915827d66d887fd;hb=aa63b97173e12293234cce3b378912eb761778e1;hp=4b5cb8c7011dfd534fef49bf9e8eb180ae6847bc;hpb=648294227e8247f729d8cca927d3445ab1836f30;p=elogind.git diff --git a/src/basic/string-util.h b/src/basic/string-util.h index 4b5cb8c70..668b63907 100644 --- a/src/basic/string-util.h +++ b/src/basic/string-util.h @@ -111,9 +111,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)))