summaryrefslogtreecommitdiff
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
parent6c2d9253e7f1a7da6e7c4b20991ac1bc4b2b5a3e (diff)
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:
1251 return NULL; 1251 return NULL;
1252} 1252}
1253 1253
1254typedef struct
1255{
1256 EINA_INLIST;
1257 const Eo *ref_obj;
1258 const char *file;
1259 int line;
1260} Eo_Xref_Node;
1261
1262EAPI Eo * 1254EAPI Eo *
1263eo_xref_internal(const char *file, int line, Eo *obj_id, const Eo *ref_obj_id) 1255eo_xref_internal(const char *file, int line, Eo *obj_id, const Eo *ref_obj_id)
1264{ 1256{
@@ -1430,8 +1422,8 @@ _eo_data_xunref_internal(_Eo *obj, void *data, const _Eo *ref_obj)
1430{ 1422{
1431#ifdef EO_DEBUG 1423#ifdef EO_DEBUG
1432 const _Eo_Class *klass = obj->klass; 1424 const _Eo_Class *klass = obj->klass;
1433 Eina_Bool in_range = (((char *)data >= (((char *) obj) + _eo_sz) && 1425 Eina_Bool in_range = (((char *)data >= (((char *) obj) + _eo_sz)) &&
1434 ((char *)data < (((char *) obj) + klass->obj_size))) 1426 ((char *)data < (((char *) obj) + klass->obj_size)));
1435 if (!in_range) 1427 if (!in_range)
1436 { 1428 {
1437 ERR("Data %p is not in the data range of the object %p (%s).", data, (Eo *)obj->obj_id, obj->klass->desc->name); 1429 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
164 /* [extensions data offset] + NULL */ 164 /* [extensions data offset] + NULL */
165}; 165};
166 166
167typedef struct
168{
169 EINA_INLIST;
170 const Eo *ref_obj;
171 const char *file;
172 int line;
173} Eo_Xref_Node;
174
167static inline void 175static inline void
168_eo_condtor_reset(_Eo *obj) 176_eo_condtor_reset(_Eo *obj)
169{ 177{