Add ngx_queue_foreach() macro.

This commit is contained in:
Ben Noordhuis 2011-12-07 03:08:58 +01:00
parent 69ce0145f6
commit 6a9cb902ae

View File

@ -99,4 +99,8 @@ struct ngx_queue_s {
(type *) ((unsigned char *) q - offsetof(type, link))
#define ngx_queue_foreach(q, h) \
for ((q) = ngx_queue_head(h); (q) != (h); (q) = ngx_queue_next(q))
#endif /* _NGX_QUEUE_H_INCLUDED_ */