ucx/list.h

changeset 67
27e67e725d35
parent 36
a9d656e4f7ce
child 87
bd444539cced
     1.1 --- a/ucx/list.h	Thu Oct 11 08:42:56 2012 +0200
     1.2 +++ b/ucx/list.h	Thu Oct 11 11:42:31 2012 +0200
     1.3 @@ -18,16 +18,18 @@
     1.4      UcxList *next;
     1.5  };
     1.6  
     1.7 -UcxList *ucx_list_clone(UcxList *l, copy_func fnc, void *data);
     1.8 -int ucx_list_equals(UcxList *l1, UcxList *l2, cmp_func fnc, void *data);
     1.9 +UcxList *restrict ucx_list_clone(UcxList *restrict l,
    1.10 +        copy_func fnc, void *data);
    1.11 +int ucx_list_equals(const UcxList *l1, const UcxList *l2,
    1.12 +        cmp_func fnc, void *data);
    1.13  
    1.14  void ucx_list_free(UcxList *l);
    1.15  UcxList *ucx_list_append(UcxList *l, void *data);
    1.16  UcxList *ucx_list_prepend(UcxList *l, void *data);
    1.17 -UcxList *ucx_list_concat(UcxList *l1, UcxList *l2);
    1.18 -UcxList *ucx_list_last(UcxList *l);
    1.19 -UcxList *ucx_list_get(UcxList *l, int index);
    1.20 -size_t ucx_list_size(UcxList *l);
    1.21 +UcxList *ucx_list_concat(UcxList *restrict l1, UcxList *restrict l2);
    1.22 +UcxList *ucx_list_last(const UcxList *l);
    1.23 +UcxList *ucx_list_get(const UcxList *l, int index);
    1.24 +size_t ucx_list_size(const UcxList *l);
    1.25  
    1.26  UcxList *ucx_list_sort(UcxList *l, cmp_func fnc, void *data);
    1.27  

mercurial