ucx/list.h

changeset 220
1f57f196d221
parent 212
c766c423dee6
child 225
a1a068c2c4ef
equal deleted inserted replaced
219:2df780a4482b 220:1f57f196d221
44 #endif 44 #endif
45 45
46 /** 46 /**
47 * Loop statement for UCX lists. 47 * Loop statement for UCX lists.
48 * 48 *
49 * The first argument is a pointer to the list. In most cases this will be the 49 * The first argument is the name of the iteration variable. The scope of
50 * this variable is limited to the <code>UCX_FOREACH</code> statement.
51 *
52 * The second argument is a pointer to the list. In most cases this will be the
50 * pointer to the first element of the list, but it may also be an arbitrary 53 * pointer to the first element of the list, but it may also be an arbitrary
51 * element of the list. The iteration will then start with that element. 54 * element of the list. The iteration will then start with that element.
52 *
53 * The second argument is the name of the iteration variable. The scope of
54 * this variable is limited to the <code>UCX_FOREACH</code> statement.
55 * 55 *
56 * @param list The first element of the list 56 * @param list The first element of the list
57 * @param elem The variable name of the element 57 * @param elem The variable name of the element
58 */ 58 */
59 #define UCX_FOREACH(elem,list) \ 59 #define UCX_FOREACH(elem,list) \

mercurial