[pacman-dev] alpm_list: missing quick access to last element
Aaron Griffin
aaronmgriffin at gmail.com
Mon Mar 5 12:41:18 EST 2007
On 3/5/07, Dan McGee <dpmcgee at gmail.com> wrote:
> On 3/5/07, Aaron Griffin <aaronmgriffin at gmail.com> wrote:
> > On 3/5/07, Jürgen Hötzel <juergen at hoetzel.info> wrote:
> > > Circular lists are different. There is NO end of the list. consider
> > > alpm_list_find: it will loop forever ;) pacmans implementation expects
> > > "non-circular" lists everywhere. Just an example:
> >
> > I guess my point is that there are hundreds of options here. I think
> > we should think it through rather than putting the ->last pointer back
> > in there.
>
> Can someone point me to where this ->last pointer exists? I couldn't
> find it in CVS (but only looked briefly). Is it in pacman 2.9.8?
It's in the CVS Attic:
http://cvs.archlinux.org/cgi-bin/viewcvs.cgi/lib/libalpm/Attic/list.c?cvsroot=Pacman
More information about the pacman-dev
mailing list