Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 e47f7e5a..aed67a21 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 */

Back to the top