ucx/list.h

changeset 172
7084e8e8433c
parent 146
aa376dba1ba8
child 177
11ad03783baf
     1.1 --- a/ucx/list.h	Tue May 06 14:35:29 2014 +0200
     1.2 +++ b/ucx/list.h	Mon Jun 02 16:04:11 2014 +0200
     1.3 @@ -169,7 +169,7 @@
     1.4  /**
     1.5   * Inserts an element at the end of the list.
     1.6   * 
     1.7 - * This is generally an O(n) operation, as the end of the list is seeked with
     1.8 + * This is generally an O(n) operation, as the end of the list is retrieved with
     1.9   * ucx_list_last().
    1.10   * 
    1.11   * @param list the list where to append the data, or <code>NULL</code> to
    1.12 @@ -273,7 +273,7 @@
    1.13   * @return the element at the specified index or <code>NULL</code>, if the
    1.14   * index is greater than the list size
    1.15   */
    1.16 -UcxList *ucx_list_get(const UcxList *list, int index);
    1.17 +UcxList *ucx_list_get(const UcxList *list, size_t index);
    1.18  
    1.19  /**
    1.20   * Returns the index of an element.
    1.21 @@ -350,7 +350,7 @@
    1.22   * <code>mylist = ucx_list_remove(mylist, myelem);</code>.
    1.23   * 
    1.24   * @param list the list from which the element shall be removed
    1.25 - * @param element the element to removed
    1.26 + * @param element the element to remove
    1.27   * @return returns the updated list pointer or <code>NULL</code>, if the list
    1.28   * is now empty
    1.29   */
    1.30 @@ -363,7 +363,7 @@
    1.31   * 
    1.32   * @param allocator the allocator to use
    1.33   * @param list the list from which the element shall be removed
    1.34 - * @param element the element to removed
    1.35 + * @param element the element to remove
    1.36   * @return returns the updated list pointer or <code>NULL</code>, if the list
    1.37   * @see ucx_list_remove()
    1.38   */

mercurial