jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=258639a92e678512c2dd7dc17d24cc6242e2cb58

commit 258639a92e678512c2dd7dc17d24cc6242e2cb58
Author: Jean-Philippe Andre <jp.an...@samsung.com>
Date:   Thu Jan 21 13:10:48 2016 +0900

    Eo: Actually mark EO_EV_ as EINA_DEPRECATED
    
    This should add compilation warnings whereever they're used.
---
 src/lib/eo/Eo.h | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index ad70c0c..4eb13cd 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -1025,9 +1025,12 @@ EAPI const Eo_Event_Description 
*eo_base_legacy_only_event_description_get(const
  */
 
 /* XXX: Deprecated, here for compat, DO NOT USE */
-#define EO_EV_CALLBACK_ADD EO_BASE_EVENT_CALLBACK_ADD
-#define EO_EV_CALLBACK_DEL EO_BASE_EVENT_CALLBACK_DEL
-#define EO_EV_DEL EO_BASE_EVENT_DEL
+EINA_DEPRECATED static inline const Eo_Event_Description* 
_EO_EV_CALLBACK_ADD(void) { return EO_BASE_EVENT_CALLBACK_ADD; }
+EINA_DEPRECATED static inline const Eo_Event_Description* 
_EO_EV_CALLBACK_DEL(void) { return EO_BASE_EVENT_CALLBACK_DEL; }
+EINA_DEPRECATED static inline const Eo_Event_Description* _EO_EV_DEL(void) { 
return EO_BASE_EVENT_DEL; }
+#define EO_EV_CALLBACK_ADD _EO_EV_CALLBACK_ADD()
+#define EO_EV_CALLBACK_DEL _EO_EV_CALLBACK_DEL()
+#define EO_EV_DEL _EO_EV_DEL()
 
 /**
  * @}

-- 


Reply via email to