Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/engines/evas


Modified Files:
        ewl_engine_evas.c 


Log Message:
- remove the first argument of the parameter and type check macros, althoug
  they had a different intention they were only used as the parameter name
- don't fail on type checks if the pointer is NULL

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/engines/evas/ewl_engine_evas.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_engine_evas.c   10 Nov 2007 22:40:42 -0000      1.19
+++ ewl_engine_evas.c   12 Nov 2007 22:42:20 -0000      1.20
@@ -96,7 +96,7 @@
        Ewl_Engine_Info *info;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR_RET("engine", engine, FALSE);
+       DCHECK_PARAM_PTR_RET(engine, FALSE);
 
        info = NEW(Ewl_Engine_Info, 1);
        info->shutdown = ee_shutdown;
@@ -112,7 +112,7 @@
 ee_shutdown(Ewl_Engine *engine)
 {
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR("engine", engine);
+       DCHECK_PARAM_PTR(engine);
 
        IF_FREE(engine->functions);
 
@@ -130,7 +130,7 @@
 ee_canvas_render(Ewl_Embed *embed)
 {
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR("embed", embed);
+       DCHECK_PARAM_PTR(embed);
 
        if (embed->canvas)
                evas_render(embed->canvas);
@@ -142,7 +142,7 @@
 ee_canvas_freeze(Ewl_Embed *embed)
 {
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR("embed", embed);
+       DCHECK_PARAM_PTR(embed);
 
        if (embed->canvas && evas_event_freeze_get(embed->canvas) < 1) {
                evas_event_freeze(embed->canvas);
@@ -155,7 +155,7 @@
 ee_canvas_thaw(Ewl_Embed *embed)
 {
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR("embed", embed);
+       DCHECK_PARAM_PTR(embed);
 
        if (embed->canvas && evas_event_freeze_get(embed->canvas) > 0)
                evas_event_thaw(embed->canvas);
@@ -167,7 +167,7 @@
 ee_canvas_damage_add(Ewl_Embed *embed, int x, int y, int w, int h)
 {
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR("embed", embed);
+       DCHECK_PARAM_PTR(embed);
 
        if (embed->canvas)
                evas_damage_rectangle_add(embed->canvas, x, y, w, h);
@@ -181,7 +181,7 @@
        Evas_Object *smart_object;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR_RET("embed", embed, NULL);
+       DCHECK_PARAM_PTR_RET(embed, NULL);
 
        if (!widget_smart) {
                widget_smart = evas_smart_new("Ewl Widget Smart Object",
@@ -201,7 +201,7 @@
        Evas_Object *obj;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR_RET("embed", embed, NULL);
+       DCHECK_PARAM_PTR_RET(embed, NULL);
 
        obj = evas_object_rectangle_add(embed->canvas);
        if (obj)
@@ -216,8 +216,8 @@
        Evas_Object *smart_parent;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR("w", w);
-       DCHECK_TYPE("w", w, EWL_WIDGET_TYPE);
+       DCHECK_PARAM_PTR(w);
+       DCHECK_TYPE(w, EWL_WIDGET_TYPE);
 
        if (w->parent && !REVEALED(w->parent))
                DRETURN(DLEVEL_STABLE);
@@ -253,8 +253,8 @@
        int layer;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR("w", w);
-       DCHECK_TYPE("w", w, EWL_WIDGET_TYPE);
+       DCHECK_PARAM_PTR(w);
+       DCHECK_TYPE(w, EWL_WIDGET_TYPE);
 
        if (!(p = w->parent))
                DRETURN(DLEVEL_STABLE);
@@ -295,8 +295,8 @@
        Evas_Object *o, *ol;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR_RET("w", w, NULL);
-       DCHECK_TYPE_RET("w", w, EWL_WIDGET_TYPE, NULL);
+       DCHECK_PARAM_PTR_RET(w, NULL);
+       DCHECK_TYPE_RET(w, EWL_WIDGET_TYPE, NULL);
 
        if (!w->parent)
                DRETURN_PTR(NULL, DLEVEL_STABLE);
@@ -331,8 +331,8 @@
        Evas_Object *o, *ol;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
-       DCHECK_PARAM_PTR_RET("w", w, NULL);
-       DCHECK_TYPE_RET("w", w, EWL_WIDGET_TYPE, NULL);
+       DCHECK_PARAM_PTR_RET(w, NULL);
+       DCHECK_TYPE_RET(w, EWL_WIDGET_TYPE, NULL);
 
        if (!w->parent)
                DRETURN_PTR(NULL, DLEVEL_STABLE);



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to