From 5f91071ac89de679e9f36e788d7bef757ea0e4bb Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Tue, 6 Oct 2009 00:28:26 +0200 Subject: Add DLIST_FOR_EACH() macro --- server/util/dlinklist.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'server/util') diff --git a/server/util/dlinklist.h b/server/util/dlinklist.h index 562412445..0142a1318 100644 --- a/server/util/dlinklist.h +++ b/server/util/dlinklist.h @@ -110,4 +110,7 @@ do { \ } \ } while (0) +#define DLIST_FOR_EACH(p, list) \ + for ((p) = (list); (p) != NULL; (p) = (p)->next) + #endif /* _DLINKLIST_H */ -- cgit