Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_dialog.c Log Message: - type checking - add missing DRETURN calls =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_dialog.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -3 -r1.9 -r1.10 --- ewl_dialog.c 21 Oct 2005 02:17:45 -0000 1.9 +++ ewl_dialog.c 23 Oct 2005 20:34:18 -0000 1.10 @@ -116,6 +116,7 @@ { DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("d", d); + DCHECK_TYPE("d", d, "dialog"); if (pos == d->position) { DRETURN(DLEVEL_STABLE); @@ -175,6 +176,7 @@ { DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR_RET("d", d, EWL_POSITION_BOTTOM); + DCHECK_TYPE_RET("d", d, "dialog", EWL_POSITION_BOTTOM); DRETURN_INT(d->position, DLEVEL_STABLE); } @@ -189,9 +191,11 @@ { DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR_RET("dialog", dialog, 0); + DCHECK_TYPE_RET("dialog", dialog, "dialog", 0); - if (!dialog) - return FALSE; + if (!dialog) { + DRETURN_INT(FALSE, DLEVEL_STABLE); + } DRETURN_INT(dialog->separator != NULL, DLEVEL_STABLE); } @@ -210,9 +214,11 @@ DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("dialog", dialog); + DCHECK_TYPE("dialog", dialog, "dialog"); - if (!dialog) + if (!dialog) { DLEAVE_FUNCTION(DLEVEL_STABLE); + } if (has_sep && (dialog->separator == NULL)) { ewl_container_child_iterate_begin(EWL_CONTAINER(EWL_DIALOG(dialog)->vbox)); @@ -242,6 +248,7 @@ { DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR("d", d); + DCHECK_TYPE("d", d, "dialog"); d->active_area = pos; @@ -260,6 +267,7 @@ { DENTER_FUNCTION(DLEVEL_STABLE); DCHECK_PARAM_PTR_RET("d", d, EWL_POSITION_TOP); + DCHECK_TYPE_RET("d", d, "dialog", EWL_POSITION_TOP); DRETURN_INT(d->active_area, DLEVEL_STABLE); } ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs