summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-11-12 09:58:48 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2012-11-12 09:58:48 +0000
commit7ba993749d8b6eaaf4ddba9b2d5fae675d325429 (patch)
tree3c0a79faaec95d48706380a5bb729060c1509b94
parent0bbec07e6960fb568fdb60b10b0e1eab4cf63d00 (diff)
add eina_list_last_data_get() macro to simplify calling eina_list_data_get(eina_list_last())
SVN revision: 79142
-rw-r--r--ChangeLog4
-rw-r--r--NEWS7
-rw-r--r--src/lib/eina/eina_list.h12
3 files changed, 20 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index af4fdcfa6c..1ad7e0bb37 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -65,3 +65,7 @@
652012-11-10 Vincent Torri 652012-11-10 Vincent Torri
66 66
67 * Fix build of eina_file on Solaris 10 67 * Fix build of eina_file on Solaris 10
68
692012-11-12 Mike Blumenkrantz
70
71 * Add eina_list_last_data_get
diff --git a/NEWS b/NEWS
index 7cb661bfec..1e6e1081c3 100644
--- a/NEWS
+++ b/NEWS
@@ -10,14 +10,15 @@ Additions:
10 * Add eina_barrier thread API 10 * Add eina_barrier thread API
11 * Add eina_tmpstr_add() and eina_tmpstr_del() 11 * Add eina_tmpstr_add() and eina_tmpstr_del()
12 * Add eina_thread API 12 * Add eina_thread API
13 * Add eina_list_last_data_get
13 14
14Improvements: 15Improvements:
15 * Single EFL tree now covring all EFL library components. 16 * Single EFL tree covering all EFL library components.
16 * Speedup Eina Rbtree Iterator by recycling memory instead of 17 * Speedup Eina Rbtree Iterator by recycling memory instead of
17 massively calling malloc/free. 18 repeatedly calling malloc/free.
18 * Display more information with eet -l -v. 19 * Display more information with eet -l -v.
19 20
20Fixes: 21Fixes:
21 * Fix PPC (big endian) image codec bug. 22 * Fix PPC (big endian) image codec bug.
22 * Fix return value of eina_mmap_safety_enabled_set() and future 23 * Fix return value of eina_mmap_safety_enabled_set() and future
23 eina_mmap_safety_enabled_get() returns after success 24 eina_mmap_safety_enabled_get() returns after success
diff --git a/src/lib/eina/eina_list.h b/src/lib/eina/eina_list.h
index a81f57b801..2e62e4f90f 100644
--- a/src/lib/eina/eina_list.h
+++ b/src/lib/eina/eina_list.h
@@ -1612,6 +1612,18 @@ EAPI Eina_Accessor *eina_list_accessor_new(const Eina_List *list) EINA_MA
1612 list = eina_list_remove_list(list, list), \ 1612 list = eina_list_remove_list(list, list), \
1613 data = eina_list_data_get(list)) 1613 data = eina_list_data_get(list))
1614 1614
1615/**
1616 * @def EINA_LIST_LAST_DATA_GET
1617 * @brief Macro to return the last list node's data
1618 *
1619 * @param list The list
1620 * @return The node's data, or @c NULL on being passed a @c NULL pointer
1621 *
1622 * This macro is a shortcut for typing eina_list_data_get(eina_list_last())
1623 */
1624#define eina_list_last_data_get(list) \
1625 eina_list_data_get(eina_list_last(list))
1626
1615#include "eina_inline_list.x" 1627#include "eina_inline_list.x"
1616 1628
1617/** 1629/**