Lines Matching full:var

201 #define	SLIST_FOREACH(var, head, field)					\  argument
202 for ((var) = SLIST_FIRST((head)); \
203 (var); \
204 (var) = SLIST_NEXT((var), field))
206 #define SLIST_FOREACH_FROM(var, head, field) \ argument
207 for ((var) = ((var) ? (var) : SLIST_FIRST((head))); \
208 (var); \
209 (var) = SLIST_NEXT((var), field))
211 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument
212 for ((var) = SLIST_FIRST((head)); \
213 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \
214 (var) = (tvar))
216 #define SLIST_FOREACH_FROM_SAFE(var, head, field, tvar) \ argument
217 for ((var) = ((var) ? (var) : SLIST_FIRST((head))); \
218 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \
219 (var) = (tvar))
221 #define SLIST_FOREACH_PREVPTR(var, varp, head, field) \ argument
223 ((var) = *(varp)) != NULL; \
224 (varp) = &SLIST_NEXT((var), field))
320 #define STAILQ_FOREACH(var, head, field) \ argument
321 for((var) = STAILQ_FIRST((head)); \
322 (var); \
323 (var) = STAILQ_NEXT((var), field))
325 #define STAILQ_FOREACH_FROM(var, head, field) \ argument
326 for ((var) = ((var) ? (var) : STAILQ_FIRST((head))); \
327 (var); \
328 (var) = STAILQ_NEXT((var), field))
330 #define STAILQ_FOREACH_SAFE(var, head, field, tvar) \ argument
331 for ((var) = STAILQ_FIRST((head)); \
332 (var) && ((tvar) = STAILQ_NEXT((var), field), 1); \
333 (var) = (tvar))
335 #define STAILQ_FOREACH_FROM_SAFE(var, head, field, tvar) \ argument
336 for ((var) = ((var) ? (var) : STAILQ_FIRST((head))); \
337 (var) && ((tvar) = STAILQ_NEXT((var), field), 1); \
338 (var) = (tvar))
505 #define LIST_FOREACH(var, head, field) \ argument
506 for ((var) = LIST_FIRST((head)); \
507 (var); \
508 (var) = LIST_NEXT((var), field))
510 #define LIST_FOREACH_FROM(var, head, field) \ argument
511 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
512 (var); \
513 (var) = LIST_NEXT((var), field))
515 #define LIST_FOREACH_SAFE(var, head, field, tvar) \ argument
516 for ((var) = LIST_FIRST((head)); \
517 (var) && ((tvar) = LIST_NEXT((var), field), 1); \
518 (var) = (tvar))
520 #define LIST_FOREACH_FROM_SAFE(var, head, field, tvar) \ argument
521 for ((var) = ((var) ? (var) : LIST_FIRST((head))); \
522 (var) && ((tvar) = LIST_NEXT((var), field), 1); \
523 (var) = (tvar))
689 #define TAILQ_FOREACH(var, head, field) \ argument
690 for ((var) = TAILQ_FIRST((head)); \
691 (var); \
692 (var) = TAILQ_NEXT((var), field))
694 #define TAILQ_FOREACH_FROM(var, head, field) \ argument
695 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
696 (var); \
697 (var) = TAILQ_NEXT((var), field))
699 #define TAILQ_FOREACH_SAFE(var, head, field, tvar) \ argument
700 for ((var) = TAILQ_FIRST((head)); \
701 (var) && ((tvar) = TAILQ_NEXT((var), field), 1); \
702 (var) = (tvar))
704 #define TAILQ_FOREACH_FROM_SAFE(var, head, field, tvar) \ argument
705 for ((var) = ((var) ? (var) : TAILQ_FIRST((head))); \
706 (var) && ((tvar) = TAILQ_NEXT((var), field), 1); \
707 (var) = (tvar))
709 #define TAILQ_FOREACH_REVERSE(var, head, headname, field) \ argument
710 for ((var) = TAILQ_LAST((head), headname); \
711 (var); \
712 (var) = TAILQ_PREV((var), headname, field))
714 #define TAILQ_FOREACH_REVERSE_FROM(var, head, headname, field) \ argument
715 for ((var) = ((var) ? (var) : TAILQ_LAST((head), headname)); \
716 (var); \
717 (var) = TAILQ_PREV((var), headname, field))
719 #define TAILQ_FOREACH_REVERSE_SAFE(var, head, headname, field, tvar) \ argument
720 for ((var) = TAILQ_LAST((head), headname); \
721 (var) && ((tvar) = TAILQ_PREV((var), headname, field), 1); \
722 (var) = (tvar))
724 #define TAILQ_FOREACH_REVERSE_FROM_SAFE(var, head, headname, field, tvar) \ argument
725 for ((var) = ((var) ? (var) : TAILQ_LAST((head), headname)); \
726 (var) && ((tvar) = TAILQ_PREV((var), headname, field), 1); \
727 (var) = (tvar))