Enlightenment CVS committal

Author  : ningerso
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_box.c 


Log Message:
Add some parameter checking to internal functions to catch errors.

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_box.c,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -3 -r1.39 -r1.40
--- ewl_box.c   5 Mar 2007 10:58:28 -0000       1.39
+++ ewl_box.c   5 Mar 2007 13:38:36 -0000       1.40
@@ -535,6 +535,7 @@
        DENTER_FUNCTION(DLEVEL_STABLE);
        DCHECK_PARAM_PTR_RET("b", b, 0);
        DCHECK_TYPE_RET("b", b, EWL_BOX_TYPE, 0);
+       DCHECK_PARAM_PTR_RET("spread", spread, 0);
 
        initial = *fill_size / ecore_dlist_nodes(EWL_CONTAINER(b)->children);
 
@@ -602,6 +603,7 @@
        Ewl_Object *c;
 
        DENTER_FUNCTION(DLEVEL_STABLE);
+       DCHECK_PARAM_PTR("spread", spread);
 
        /*
         * Calculate the space to give per child. Safeguard against divide by



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to