ucx/ucx.h

changeset 121
311cac04d079
parent 116
234920008754
child 127
5418bda21896
     1.1 --- a/ucx/ucx.h	Sat Jul 20 11:13:26 2013 +0200
     1.2 +++ b/ucx/ucx.h	Mon Jul 22 11:39:06 2013 +0200
     1.3 @@ -47,33 +47,6 @@
     1.4  #endif
     1.5  
     1.6  /**
     1.7 - * Generic loop statement for lists.
     1.8 - * 
     1.9 - * The first argument is the type of the list and its elements (e.g. UcxList).
    1.10 - * The structure invariant of the list must be as follows:
    1.11 - * <ul>
    1.12 - *   <li>a first (non-<code>NULL</code>) element</li>
    1.13 - *   <li>for each element a reference to the <code>next</code> element (the
    1.14 - *       variable name of the pointer MUST be <code>next</code>)</li>
    1.15 - *   <li>the last element of the list MUST have the <code>next</code> pointer
    1.16 - *       set to <code>NULL</code></li>
    1.17 - * </ul>
    1.18 - * 
    1.19 - * The second argument is a pointer to the list. In most cases this will be the
    1.20 - * pointer to the first element of the list, but it may also be an arbitrary
    1.21 - * element of the list. The iteration will then start with that element.
    1.22 - * 
    1.23 - * The third argument is the name of the iteration variable. The scope of
    1.24 - * this variable is limited to the <code>UCX_FOREACH</code> statement.
    1.25 - * 
    1.26 - * @param type The type of <b>both</b> the list and the element
    1.27 - * @param list The first element of the list
    1.28 - * @param elem The variable name of the element
    1.29 - */
    1.30 -#define UCX_FOREACH(type,list,elem) \
    1.31 -        for (type elem = list ; elem != NULL ; elem = elem->next)
    1.32 -
    1.33 -/**
    1.34   * Function pointer to a compare function.
    1.35   * 
    1.36   * The compare function shall take three arguments: the two values that shall be

mercurial