jeyzu pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=2041e995fc75a8943f4592afb6076a56710861ed
commit 2041e995fc75a8943f4592afb6076a56710861ed Author: Jérémy Zurcher <jer...@asynk.ch> Date: Mon Sep 23 11:07:07 2013 +0200 eo: fix EO_DEBUG compilation --- src/lib/eo/eo.c | 12 ++---------- src/lib/eo/eo_private.h | 8 ++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 44895b6..67ab2d5 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c @@ -1251,14 +1251,6 @@ fail: return NULL; } -typedef struct -{ - EINA_INLIST; - const Eo *ref_obj; - const char *file; - int line; -} Eo_Xref_Node; - EAPI Eo * eo_xref_internal(const char *file, int line, Eo *obj_id, const Eo *ref_obj_id) { @@ -1430,8 +1422,8 @@ _eo_data_xunref_internal(_Eo *obj, void *data, const _Eo *ref_obj) { #ifdef EO_DEBUG const _Eo_Class *klass = obj->klass; - Eina_Bool in_range = (((char *)data >= (((char *) obj) + _eo_sz) && - ((char *)data < (((char *) obj) + klass->obj_size))) + Eina_Bool in_range = (((char *)data >= (((char *) obj) + _eo_sz)) && + ((char *)data < (((char *) obj) + klass->obj_size))); if (!in_range) { ERR("Data %p is not in the data range of the object %p (%s).", data, (Eo *)obj->obj_id, obj->klass->desc->name); diff --git a/src/lib/eo/eo_private.h b/src/lib/eo/eo_private.h index 0553c7b..da067d9 100644 --- a/src/lib/eo/eo_private.h +++ b/src/lib/eo/eo_private.h @@ -164,6 +164,14 @@ struct _Eo_Class /* [extensions data offset] + NULL */ }; +typedef struct +{ + EINA_INLIST; + const Eo *ref_obj; + const char *file; + int line; +} Eo_Xref_Node; + static inline void _eo_condtor_reset(_Eo *obj) { --