Merge pull request #4220 from keszybz/show-and-formatting-fixes

Show and formatting fixes
This commit is contained in:
Martin Pitt
2016-09-27 16:25:27 +02:00
committed by GitHub
8 changed files with 54 additions and 21 deletions
+5
View File
@@ -141,6 +141,11 @@ void strv_print(char **l);
})
#define STR_IN_SET(x, ...) strv_contains(STRV_MAKE(__VA_ARGS__), x)
#define STRPTR_IN_SET(x, ...) \
({ \
const char* _x = (x); \
_x && strv_contains(STRV_MAKE(__VA_ARGS__), _x); \
})
#define FOREACH_STRING(x, ...) \
for (char **_l = ({ \