Vincent Torri wrote:
> Hey
> 
> I have 2 qestions about ecore_path:
> 
> 1) about ecore_path_group_new, the documentation says that if an error 
> occured, then 0 is returned. But I see a "return -1;" Shouldn't the 
> function return 0 instead ? Also, if ecore_list_new return NULL, shouldn't 
> we also return an error  (0 or -1, according to the convention used...) ?

This is an error, efl should return 0 on error.

> 
> 2) in __ecore_path_group_find_id, there is no check to see if id is 
> positive or not (or non negative, if the error is -1). Is it normal ?

Why do you need to check the id? If it is negative you wont find a 
group. Unnecessary looping, but no error.

Sebastian

-------------------------------------------------------------------------
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-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to