Lines Matching refs:var
163 #define SLIST_FOREACH(var, head, field) \ argument
164 for ((var) = SLIST_FIRST((head)); \
165 (var); \
166 (var) = SLIST_NEXT((var), field))
168 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument
169 for ((var) = SLIST_FIRST((head)); \
170 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \
171 (var) = (tvar))
173 #define SLIST_FOREACH_PREVPTR(var, varp, head, field) \ argument
175 ((var) = *(varp)) != NULL; \
176 (varp) = &SLIST_NEXT((var), field))
255 #define STAILQ_FOREACH(var, head, field) \ argument
256 for((var) = STAILQ_FIRST((head)); \
257 (var); \
258 (var) = STAILQ_NEXT((var), field))
261 #define STAILQ_FOREACH_SAFE(var, head, field, tvar) \ argument
262 for ((var) = STAILQ_FIRST((head)); \
263 (var) && ((tvar) = STAILQ_NEXT((var), field), 1); \
264 (var) = (tvar))
387 #define LIST_FOREACH(var, head, field) \ argument
388 for ((var) = LIST_FIRST((head)); \
389 (var); \
390 (var) = LIST_NEXT((var), field))
392 #define LIST_FOREACH_SAFE(var, head, field, tvar) \ argument
393 for ((var) = LIST_FIRST((head)); \
394 (var) && ((tvar) = LIST_NEXT((var), field), 1); \
395 (var) = (tvar))
520 #define TAILQ_FOREACH(var, head, field) \ argument
521 for ((var) = TAILQ_FIRST((head)); \
522 (var); \
523 (var) = TAILQ_NEXT((var), field))
525 #define TAILQ_FOREACH_SAFE(var, head, field, tvar) \ argument
526 for ((var) = TAILQ_FIRST((head)); \
527 (var) && ((tvar) = TAILQ_NEXT((var), field), 1); \
528 (var) = (tvar))
530 #define TAILQ_FOREACH_REVERSE(var, head, headname, field) \ argument
531 for ((var) = TAILQ_LAST((head), headname); \
532 (var); \
533 (var) = TAILQ_PREV((var), headname, field))
535 #define TAILQ_FOREACH_REVERSE_SAFE(var, head, headname, field, tvar) \ argument
536 for ((var) = TAILQ_LAST((head), headname); \
537 (var) && ((tvar) = TAILQ_PREV((var), headname, field), 1); \
538 (var) = (tvar))