forked from enlightenment/efl
eina: A few fixes for the Eina_List doc.
SVN revision: 60288
This commit is contained in:
parent
245716afe5
commit
aab43b7ead
|
@ -25,7 +25,7 @@ main(int argc, char **argv)
|
|||
if (l->data != data)
|
||||
return 1;
|
||||
|
||||
list = eina_list_sort(list, eina_list_count(list), cmp_func);
|
||||
list = eina_list_sort(list, 0, cmp_func);
|
||||
|
||||
data = eina_list_search_sorted(list, cmp_func, "starbuck");
|
||||
l = eina_list_search_sorted_list(list, cmp_func, "starbuck");
|
||||
|
@ -43,7 +43,7 @@ main(int argc, char **argv)
|
|||
l = eina_list_search_sorted_list(list, cmp_func, "boomer");
|
||||
list = eina_list_split_list(list, l, &other_list);
|
||||
|
||||
other_list = eina_list_sort(other_list,eina_list_count(other_list),cmp_func);
|
||||
other_list = eina_list_sort(other_list, 0, cmp_func);
|
||||
|
||||
list = eina_list_sorted_merge(list, other_list, cmp_func);
|
||||
|
||||
|
|
|
@ -27,8 +27,6 @@ main(int argc, char **argv)
|
|||
EINA_LIST_FREE(list, list_data)
|
||||
eina_stringshare_del(list_data);
|
||||
|
||||
eina_list_free(list);
|
||||
|
||||
eina_shutdown();
|
||||
|
||||
return 0;
|
||||
|
|
|
@ -207,6 +207,8 @@
|
|||
*
|
||||
* And now we need to free up the memory allocated during creation of the list:
|
||||
* @until stringshare_del
|
||||
* @note We don't need to use eina_list_free() since @ref EINA_LIST_FREE takes
|
||||
* care of that.
|
||||
*
|
||||
* And shut everything down:
|
||||
* @until }
|
||||
|
|
Loading…
Reference in New Issue