From 2041e995fc75a8943f4592afb6076a56710861ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 23 Sep 2013 11:07:07 +0200 Subject: [PATCH] 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 44895b6f83..67ab2d5568 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 0553c7b2a2..da067d947d 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) {