summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret2013-04-03 03:58:35 (EDT)
committer Didier Brachet2013-04-03 05:02:51 (EDT)
commit9933db012eb892c2db0e14bf145269a85fd5a6f6 (patch)
treebd0a474fdb39dd2cc2795cc3627eee67a949f75e
parente03b8ad848100ba0e8be98c10c0c1060cec5af2e (diff)
downloadorg.eclipse.tcf.agent-9933db012eb892c2db0e14bf145269a85fd5a6f6.zip
org.eclipse.tcf.agent-9933db012eb892c2db0e14bf145269a85fd5a6f6.tar.gz
org.eclipse.tcf.agent-9933db012eb892c2db0e14bf145269a85fd5a6f6.tar.bz2
TCF Agent - Bug 404777 - Add list_foreach macro definition
-rw-r--r--agent/tcf/framework/link.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/agent/tcf/framework/link.h b/agent/tcf/framework/link.h
index e47f7e5..aed67a2 100644
--- a/agent/tcf/framework/link.h
+++ b/agent/tcf/framework/link.h
@@ -64,4 +64,7 @@ struct LINK {
} \
}
+#define list_foreach(trav,list) \
+ for (trav = (list)->next; trav != list; trav = trav->next)
+
#endif /* D_link */