Enlightenment CVS committal
Author : rbdpngn
Project : e17
Module : libs/ewl
Dir : e17/libs/ewl/src
Modified Files:
ewl_callback.h
Log Message:
Fix warnings for some deprecated typecasts.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_callback.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -3 -r1.32 -r1.33
--- ewl_callback.h 22 Jun 2004 16:44:32 -0000 1.32
+++ ewl_callback.h 21 Jul 2004 19:44:27 -0000 1.33
@@ -64,8 +64,8 @@
* Sets the callback intercept flag from a widget for a certain event type.
*/
#define EWL_CALLBACK_FLAG_INTERCEPT(w, t) \
- ((long)w->callbacks[t] = \
- (long)EWL_CALLBACK_LIST_POINTER(w, t) | \
+ w->callbacks[t] = \
+ (void *)((long)EWL_CALLBACK_LIST_POINTER(w, t) | \
EWL_CALLBACK_NOTIFY_INTERCEPT)
/**
@@ -73,8 +73,8 @@
* Clears the callback intercept flag from a widget for a certain event type.
*/
#define EWL_CALLBACK_FLAG_NOINTERCEPT(w, t) \
- ((long)w->callbacks[t] = \
- (long)EWL_CALLBACK_LIST_POINTER(w, t) & \
+ w->callbacks[t] = \
+ (void *)((long)EWL_CALLBACK_LIST_POINTER(w, t) & \
EWL_CALLBACK_NOTIFY_MASK & ~EWL_CALLBACK_NOTIFY_INTERCEPT)
/**
@@ -82,8 +82,8 @@
* Sets the callback notify flag from a widget for a certain event type.
*/
#define EWL_CALLBACK_FLAG_NOTIFY(w, t) \
- ((long)w->callbacks[t] = \
- (long)EWL_CALLBACK_LIST_POINTER(w, t) | \
+ w->callbacks[t] = \
+ (void *)((long)EWL_CALLBACK_LIST_POINTER(w, t) | \
EWL_CALLBACK_NOTIFY_NOTIFY)
/**
@@ -91,9 +91,9 @@
* Sets the callback list for a widget for a certain event type.
*/
#define EWL_CALLBACK_LIST_ASSIGN(w, t, l) \
- (long)w->callbacks[t] = (long)l | \
+ w->callbacks[t] = (void *)((long)l | \
((long)w->callbacks[t] & \
- EWL_CALLBACK_NOTIFY_MASK)
+ EWL_CALLBACK_NOTIFY_MASK))
void ewl_callbacks_init(void);
void ewl_callbacks_shutdown(void);
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs