aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-09-23 11:07:07 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2013-09-23 11:07:07 +0200
commit2041e995fc75a8943f4592afb6076a56710861ed (patch)
tree95c98da6d9c4606330225af7950c94dc7b0267f3
parentedc.vim: added insert_before/insert_after. (diff)
downloadefl-2041e995fc75a8943f4592afb6076a56710861ed.tar.gz
eo: fix EO_DEBUG compilation
-rw-r--r--src/lib/eo/eo.c12
-rw-r--r--src/lib/eo/eo_private.h8
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)
{