From: Enlightenment C. <no...@cv...> - 2008-08-13 09:21:35
|
Enlightenment CVS committal Author : cedric Project : e17 Module : proto/eina Dir : e17/proto/eina/src/lib Modified Files: eina_inlist.c Log Message: Merge common code. =================================================================== RCS file: /cvs/e/e17/proto/eina/src/lib/eina_inlist.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- eina_inlist.c 12 Aug 2008 15:58:41 -0000 1.5 +++ eina_inlist.c 13 Aug 2008 09:21:33 -0000 1.6 @@ -79,7 +79,6 @@ ++i, over = over->next) ; - if (over == NULL) return EINA_FALSE; } else { middle = it->index >> 1; @@ -89,18 +88,16 @@ i > index && over != NULL; --i, over = over->prev) ; - - if (over == NULL) return EINA_FALSE; } else { /* Looking from the start. */ for (i = 0, over = it->head; i < index && over != NULL; ++i, over = over->next) ; - - if (over == NULL) return EINA_FALSE; } } + + if (over == NULL) return EINA_FALSE; it->current = over; it->index = index; |