1.1 --- a/ucx/ucx.h Thu Feb 09 10:40:19 2012 +0100 1.2 +++ b/ucx/ucx.h Sat Feb 18 15:50:43 2012 +0100 1.3 @@ -14,6 +14,9 @@ 1.4 extern "C" { 1.5 #endif 1.6 1.7 +#define UCX_FOREACH(type,list,elem) \ 1.8 + for (type elem = list ; elem != NULL ; elem = elem->next) 1.9 + 1.10 /* source,data -> errno */ 1.11 typedef int(*ucx_callback)(void*,void*); 1.12