diff --git a/src/cw/mlist.h b/src/cw/mlist.h index e8c770d7..6c4ab97a 100644 --- a/src/cw/mlist.h +++ b/src/cw/mlist.h @@ -66,6 +66,15 @@ extern struct mlist_elem *mlist_replace(mlist_t *l, struct mlist_elem *start, vo * @} */ + + + +#define mlist_foreach(i,l)\ + for (i=l->data; i; i=i->next) + + + + /** * @} */