Lines Matching refs:var

207 #define	SLIST_FOREACH(var, head, field)					\  argument
208 for((var) = SLIST_FIRST(head); \
209 (var) != SLIST_END(head); \
210 (var) = SLIST_NEXT(var, field))
212 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument
213 for ((var) = SLIST_FIRST(head); \
214 (var) && ((tvar) = SLIST_NEXT(var, field), 1); \
215 (var) = (tvar))
281 #define LIST_FOREACH(var, head, field) \ argument
282 for((var) = LIST_FIRST(head); \
283 (var)!= LIST_END(head); \
284 (var) = LIST_NEXT(var, field))
286 #define LIST_FOREACH_SAFE(var, head, field, tvar) \ argument
287 for ((var) = LIST_FIRST(head); \
288 (var) && ((tvar) = LIST_NEXT(var, field), 1); \
289 (var) = (tvar))
364 #define SIMPLEQ_FOREACH(var, head, field) \ argument
365 for((var) = SIMPLEQ_FIRST(head); \
366 (var) != SIMPLEQ_END(head); \
367 (var) = SIMPLEQ_NEXT(var, field))
369 #define SIMPLEQ_FOREACH_SAFE(var, head, field, tvar) \ argument
370 for ((var) = SIMPLEQ_FIRST(head); \
371 (var) && ((tvar) = SIMPLEQ_NEXT(var, field), 1); \
372 (var) = (tvar))
445 #define XSIMPLEQ_FOREACH(var, head, field) \ argument
446 for ((var) = XSIMPLEQ_FIRST(head); \
447 (var) != XSIMPLEQ_END(head); \
448 (var) = XSIMPLEQ_NEXT(head, var, field))
450 #define XSIMPLEQ_FOREACH_SAFE(var, head, field, tvar) \ argument
451 for ((var) = XSIMPLEQ_FIRST(head); \
452 (var) && ((tvar) = XSIMPLEQ_NEXT(head, var, field), 1); \
453 (var) = (tvar))
531 #define TAILQ_FOREACH(var, head, field) \ argument
532 for((var) = TAILQ_FIRST(head); \
533 (var) != TAILQ_END(head); \
534 (var) = TAILQ_NEXT(var, field))
536 #define TAILQ_FOREACH_SAFE(var, head, field, tvar) \ argument
537 for ((var) = TAILQ_FIRST(head); \
538 (var) != TAILQ_END(head) && \
539 ((tvar) = TAILQ_NEXT(var, field), 1); \
540 (var) = (tvar))
543 #define TAILQ_FOREACH_REVERSE(var, head, headname, field) \ argument
544 for((var) = TAILQ_LAST(head, headname); \
545 (var) != TAILQ_END(head); \
546 (var) = TAILQ_PREV(var, headname, field))
548 #define TAILQ_FOREACH_REVERSE_SAFE(var, head, headname, field, tvar) \ argument
549 for ((var) = TAILQ_LAST(head, headname); \
550 (var) != TAILQ_END(head) && \
551 ((tvar) = TAILQ_PREV(var, headname, field), 1); \
552 (var) = (tvar))