Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ecore
Dir : e17/libs/ecore/src/lib/ecore Modified Files: ecore_hash.c Log Message: NULL is a valid value, it's actually the default =================================================================== RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore/ecore_hash.c,v retrieving revision 1.40 retrieving revision 1.41 diff -u -3 -r1.40 -r1.41 --- ecore_hash.c 25 Jul 2007 17:00:54 -0000 1.40 +++ ecore_hash.c 2 Sep 2007 17:44:38 -0000 1.41 @@ -96,7 +96,8 @@ /** * Sets the function to destroy the keys of the given hash. * @param hash The given hash. - * @param function The function used to free the node keys. + * @param function The function used to free the node keys. NULL is a + * valid value and means that no function will be called. * @return @c TRUE on success, @c FALSE on error. * @ingroup Ecore_Data_Hash_ADT_Destruction_Group */ @@ -104,7 +105,6 @@ ecore_hash_free_key_cb_set(Ecore_Hash *hash, Ecore_Free_Cb function) { CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE); - CHECK_PARAM_POINTER_RETURN("function", function, FALSE); hash->free_key = function; @@ -114,7 +114,8 @@ /** * Sets the function to destroy the values in the given hash. * @param hash The given hash. - * @param function The function that will free the node values. + * @param function The function that will free the node values. NULL is a + * valid value and means that no function will be called. * @return @c TRUE on success, @c FALSE on error * @ingroup Ecore_Data_Hash_ADT_Destruction_Group */ @@ -122,7 +123,6 @@ ecore_hash_free_value_cb_set(Ecore_Hash *hash, Ecore_Free_Cb function) { CHECK_PARAM_POINTER_RETURN("hash", hash, FALSE); - CHECK_PARAM_POINTER_RETURN("function", function, FALSE); hash->free_value = function; ------------------------------------------------------------------------- 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