On Tue, Jul 14, 2009 at 9:43 AM, Gustavo Sverzut
Barbieri<[email protected]> wrote:
> On Tue, Jul 14, 2009 at 1:44 AM, Rafael
> Antognolli<[email protected]> wrote:
>> Hi,
>>
>> Does anyone knows if the function eina_inlist_remove() should return
>> NULL if the item trying to be removed isn't inserted on the list? (ie.
>> item->prev == item->next == item->last == NULL)
>
> This is an error on user part. But we should add SAFETY_CHECK checking
> if item->last == list->last, returning list if fails.

oops, just realized this is not possible. When we append items we do
not update all elements to point to new last, so this is bogus idea
:-/ call me stupid.

I'll just update with check if both prev/next is null

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [email protected]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to