add eina_list_last_data_get() macro to simplify calling eina_list_data_get(eina_list_last())
SVN revision: 79142
This commit is contained in:
parent
0bbec07e69
commit
7ba993749d
|
@ -65,3 +65,7 @@
|
|||
2012-11-10 Vincent Torri
|
||||
|
||||
* Fix build of eina_file on Solaris 10
|
||||
|
||||
2012-11-12 Mike Blumenkrantz
|
||||
|
||||
* Add eina_list_last_data_get
|
||||
|
|
7
NEWS
7
NEWS
|
@ -10,14 +10,15 @@ Additions:
|
|||
* Add eina_barrier thread API
|
||||
* Add eina_tmpstr_add() and eina_tmpstr_del()
|
||||
* Add eina_thread API
|
||||
* Add eina_list_last_data_get
|
||||
|
||||
Improvements:
|
||||
* Single EFL tree now covring all EFL library components.
|
||||
* Single EFL tree covering all EFL library components.
|
||||
* Speedup Eina Rbtree Iterator by recycling memory instead of
|
||||
massively calling malloc/free.
|
||||
repeatedly calling malloc/free.
|
||||
* Display more information with eet -l -v.
|
||||
|
||||
Fixes:
|
||||
* Fix PPC (big endian) image codec bug.
|
||||
* Fix return value of eina_mmap_safety_enabled_set() and future
|
||||
eina_mmap_safety_enabled_get() returns after success
|
||||
eina_mmap_safety_enabled_get() returns after success
|
||||
|
|
|
@ -1612,6 +1612,18 @@ EAPI Eina_Accessor *eina_list_accessor_new(const Eina_List *list) EINA_MA
|
|||
list = eina_list_remove_list(list, list), \
|
||||
data = eina_list_data_get(list))
|
||||
|
||||
/**
|
||||
* @def EINA_LIST_LAST_DATA_GET
|
||||
* @brief Macro to return the last list node's data
|
||||
*
|
||||
* @param list The list
|
||||
* @return The node's data, or @c NULL on being passed a @c NULL pointer
|
||||
*
|
||||
* This macro is a shortcut for typing eina_list_data_get(eina_list_last())
|
||||
*/
|
||||
#define eina_list_last_data_get(list) \
|
||||
eina_list_data_get(eina_list_last(list))
|
||||
|
||||
#include "eina_inline_list.x"
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue