From: Nathan I. <nin...@gm...> - 2005-06-30 16:47:46
|
Thanks, applied with one minor sanity check added. On 6/30/05, enl...@li... <enl...@li...> wrote: > Enlightenment CVS committal >=20 > Author : rbdpngn > Project : e17 > Module : libs/ecore >=20 > Dir : e17/libs/ecore/src/lib/ecore >=20 >=20 > Modified Files: > ecore_list.c >=20 >=20 > Log Message: > Patch to fix ecore_dlist indices from Dylan Shell. >=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore/ecore_list.= c,v > retrieving revision 1.13 > retrieving revision 1.14 > diff -u -3 -r1.13 -r1.14 > --- ecore_list.c 4 Jan 2005 22:45:05 -0000 1.13 > +++ ecore_list.c 30 Jun 2005 15:45:46 -0000 1.14 > @@ -369,6 +369,7 @@ > if (list->first =3D=3D NULL) { > list->first =3D end; > list->index =3D 0; > + list->current =3D NULL; > } >=20 > list->nodes++; > @@ -1322,10 +1323,10 @@ > if (ecore_list_is_empty(ECORE_LIST(list))) > return FALSE; >=20 > - if (index > ecore_list_nodes(ECORE_LIST(list)) || index < 1) > + if (index > ecore_list_nodes(ECORE_LIST(list)) || index < 0) > return FALSE; >=20 > - if (ECORE_LIST(list)->index > ECORE_LIST(list)->nodes) > + if (ECORE_LIST(list)->index >=3D ECORE_LIST(list)->nodes) > _ecore_list_goto_last(ECORE_LIST(list)); >=20 > if (index < ECORE_LIST(list)->index) >=20 >=20 >=20 >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclic= k > _______________________________________________ > enlightenment-cvs mailing list > enl...@li... > https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs > |