Enlightenment CVS committal
Author : cedric
Project : e17
Module : proto/eina
Dir : e17/proto/eina/src/lib
Modified Files:
eina_inlist.c
Log Message:
Add eina inlist tests suite, remove dead code and cleanup iterator.
===================================================================
RCS file: /cvs/e/e17/proto/eina/src/lib/eina_inlist.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- eina_inlist.c 30 Jul 2008 13:35:49 -0000 1.2
+++ eina_inlist.c 1 Aug 2008 15:44:52 -0000 1.3
@@ -96,16 +96,15 @@
relative->prev = new_l;
if (new_l->prev) {
new_l->prev->next = new_l;
- if (!new_l->next)
- list->last = new_l;
+ /* new_l->next could not be NULL, as it was set to
'relative' */
+ assert(new_l->next);
return list;
} else {
- if (!new_l->next)
- new_l->last = new_l;
- else {
- new_l->last = list->last;
- list->last = NULL;
- }
+ /* new_l->next could not be NULL, as it was set to
'relative' */
+ assert(new_l->next);
+
+ new_l->last = list->last;
+ list->last = NULL;
return new_l;
}
}
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs