STRV_FOREACH_BACKWARDS: improve readability a bit

The indentation was wrong, also put the semicolon on a separate line to make it clear it is a for-loop
with an epmyt body.
This commit is contained in:
Tom Gundersen 2013-10-26 16:41:22 +02:00
parent 51271a3060
commit ca5c410573
1 changed files with 3 additions and 2 deletions

View File

@ -75,8 +75,9 @@ bool strv_overlap(char **a, char **b) _pure_;
for ((s) = (l); (s) && *(s); (s)++)
#define STRV_FOREACH_BACKWARDS(s, l) \
STRV_FOREACH(s, l) ; \
for ((s)--; (l) && ((s) >= (l)); (s)--)
STRV_FOREACH(s, l) \
; \
for ((s)--; (l) && ((s) >= (l)); (s)--)
#define STRV_FOREACH_PAIR(x, y, l) \
for ((x) = (l), (y) = (x+1); (x) && *(x) && *(y); (x) += 2, (y) = (x + 1))