diff -r 3192553c0df1 -r 59f147baea31 ucx/ucx.h --- a/ucx/ucx.h Thu Feb 09 10:40:19 2012 +0100 +++ b/ucx/ucx.h Sat Feb 18 15:50:43 2012 +0100 @@ -14,6 +14,9 @@ extern "C" { #endif +#define UCX_FOREACH(type,list,elem) \ + for (type elem = list ; elem != NULL ; elem = elem->next) + /* source,data -> errno */ typedef int(*ucx_callback)(void*,void*);