diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-12-13 18:27:24 +0000 |
---|---|---|
committer | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2012-12-13 18:27:24 +0000 |
commit | 48c10cd414750da9c0532683fc8dd9df3c62a53e (patch) | |
tree | 95ce42656d9cd0d023f850d2d3774e4c49023154 | |
parent | 3aa6328c142d832c0037ec372b6e44cb6738c48b (diff) |
eina: backport fix to EINA_INLIST_FOREACH_SAFE macro
SVN revision: 80887
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | NEWS | 6 | ||||
-rw-r--r-- | src/include/eina_inlist.h | 2 |
3 files changed, 10 insertions, 2 deletions
@@ -376,3 +376,7 @@ | |||
376 | 2012-12-12 Nicolas Aguirre | 376 | 2012-12-12 Nicolas Aguirre |
377 | 377 | ||
378 | * Fix define EINA_UNUSED for win32 builds | 378 | * Fix define EINA_UNUSED for win32 builds |
379 | |||
380 | 2012-12-13 Lucas De Marchi | ||
381 | |||
382 | * Fix EINA_INLIST_FOREACH_SAFE macro | ||
@@ -1,4 +1,8 @@ | |||
1 | Eina 1.7.3 | 1 | Eina 1.7.4 |
2 | |||
3 | Changes since Eina 1.7.3: | ||
4 | |||
5 | * Fix EINA_INLIST_FOREACH_SAFE macro | ||
2 | 6 | ||
3 | Changes since Eina 1.7.2: | 7 | Changes 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. |