Add ngx_queue_foreach() macro.
This commit is contained in:
parent
69ce0145f6
commit
6a9cb902ae
@ -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_ */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user