From 96041d52638fca27bb81a365069fd08ccdd3889c Mon Sep 17 00:00:00 2001 From: gastal Date: Mon, 13 Jun 2011 17:46:22 +0000 Subject: [PATCH] eina: A few fixes for the Eina_List doc. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/eina@60288 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/examples/eina_list_02.c | 4 ++-- src/examples/eina_list_04.c | 2 -- src/include/eina_list.h | 2 ++ 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/examples/eina_list_02.c b/src/examples/eina_list_02.c index a36e94e..7def475 100644 --- a/src/examples/eina_list_02.c +++ b/src/examples/eina_list_02.c @@ -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); diff --git a/src/examples/eina_list_04.c b/src/examples/eina_list_04.c index 83b0265..e6526a1 100644 --- a/src/examples/eina_list_04.c +++ b/src/examples/eina_list_04.c @@ -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; diff --git a/src/include/eina_list.h b/src/include/eina_list.h index dc527fa..433a154 100644 --- a/src/include/eina_list.h +++ b/src/include/eina_list.h @@ -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 } -- 2.7.4