summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@profusion.mobi>2012-12-13 18:27:24 +0000
committerLucas De Marchi <lucas.demarchi@profusion.mobi>2012-12-13 18:27:24 +0000
commit48c10cd414750da9c0532683fc8dd9df3c62a53e (patch)
tree95ce42656d9cd0d023f850d2d3774e4c49023154
parent3aa6328c142d832c0037ec372b6e44cb6738c48b (diff)
eina: backport fix to EINA_INLIST_FOREACH_SAFE macro
SVN revision: 80887
-rw-r--r--ChangeLog4
-rw-r--r--NEWS6
-rw-r--r--src/include/eina_inlist.h2
3 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2580006..402e3ef 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -376,3 +376,7 @@
3762012-12-12 Nicolas Aguirre 3762012-12-12 Nicolas Aguirre
377 377
378 * Fix define EINA_UNUSED for win32 builds 378 * Fix define EINA_UNUSED for win32 builds
379
3802012-12-13 Lucas De Marchi
381
382 * Fix EINA_INLIST_FOREACH_SAFE macro
diff --git a/NEWS b/NEWS
index df7ab71..d9c5eba 100644
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,8 @@
1Eina 1.7.3 1Eina 1.7.4
2
3Changes since Eina 1.7.3:
4
5 * Fix EINA_INLIST_FOREACH_SAFE macro
2 6
3Changes since Eina 1.7.2: 7Changes since Eina 1.7.2:
4------------------------- 8-------------------------
diff --git a/src/include/eina_inlist.h b/src/include/eina_inlist.h
index e4de689..c1c94df 100644
--- a/src/include/eina_inlist.h
+++ b/src/include/eina_inlist.h
@@ -803,7 +803,7 @@ EAPI Eina_Inlist *eina_inlist_sort(Eina_Inlist *head, Eina_Compare_Cb func);
803#define EINA_INLIST_FOREACH_SAFE(list, list2, l) \ 803#define EINA_INLIST_FOREACH_SAFE(list, list2, l) \
804 for (l = (list ? _EINA_INLIST_CONTAINER(l, list) : NULL), list2 = l ? ((EINA_INLIST_GET(l) ? EINA_INLIST_GET(l)->next : NULL)) : NULL; \ 804 for (l = (list ? _EINA_INLIST_CONTAINER(l, list) : NULL), list2 = l ? ((EINA_INLIST_GET(l) ? EINA_INLIST_GET(l)->next : NULL)) : NULL; \
805 l; \ 805 l; \
806 l = _EINA_INLIST_CONTAINER(l, list2), list2 = list2 ? list2->next : NULL) 806 l = list2 ? _EINA_INLIST_CONTAINER(l, list2) : NULL, list2 = list2 ? list2->next : NULL)
807/** 807/**
808 * @def EINA_INLIST_REVERSE_FOREACH 808 * @def EINA_INLIST_REVERSE_FOREACH
809 * @param list The list to be reversed. 809 * @param list The list to be reversed.