parent
293ca061c3
commit
113348cac9
|
@ -531,8 +531,8 @@ EAPI Eina_Accessor *eina_inarray_accessor_new(const Eina_Inarray *array) EINA_MA
|
||||||
* @since 1.2
|
* @since 1.2
|
||||||
*/
|
*/
|
||||||
#define EINA_INARRAY_FOREACH(array, itr) \
|
#define EINA_INARRAY_FOREACH(array, itr) \
|
||||||
for ((itr) = array->members; \
|
for ((itr) = (array)->members; \
|
||||||
(itr) < (((typeof(*itr)*)array->members) + array->len); \
|
(itr) < (((typeof(*itr)*)(array)->members) + (array)->len); \
|
||||||
(itr)++)
|
(itr)++)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -552,9 +552,9 @@ EAPI Eina_Accessor *eina_inarray_accessor_new(const Eina_Inarray *array) EINA_MA
|
||||||
* @since 1.2
|
* @since 1.2
|
||||||
*/
|
*/
|
||||||
#define EINA_INARRAY_REVERSE_FOREACH(array, itr) \
|
#define EINA_INARRAY_REVERSE_FOREACH(array, itr) \
|
||||||
for ((itr) = ((((typeof(*(itr))*)array->members) + array->len) - 1); \
|
for ((itr) = ((((typeof(*(itr))*)(array)->members) + (array)->len) - 1); \
|
||||||
(((itr) >= (typeof(*(itr))*)array->members) \
|
(((itr) >= (typeof(*(itr))*)(array)->members) \
|
||||||
&& (array->members != NULL)); \
|
&& ((array)->members != NULL)); \
|
||||||
(itr)--)
|
(itr)--)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue