Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add ngx_queue_foreach() macro.

  • Loading branch information...
bnoordhuis committed Dec 7, 2011
1 parent 69ce014 commit 6a9cb902ae25efa6f853dc10b20cd657b8a1f809
Showing with 4 additions and 0 deletions.
  1. +4 −0 include/uv-private/ngx-queue.h
@@ -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_ */

0 comments on commit 6a9cb90

Please sign in to comment.
You can’t perform that action at this time.