On Mon, Apr 21, 2008 at 11:23 AM, Sebastian Nowicki <[EMAIL PROTECTED]> wrote:
>
> It makes sense now. I didn't realise that it was a circular list
> (might be worth mentioning).
>
Ah right, I should have just said that. Maybe I didn't because I
wasn't sure if it's really a typical circular list.
It's a double linked list, which is circular when going backward with
->prev pointer, but not when going forward with ->next pointer.
Because for walking through a list, we always do something like :
for(i = dblist; i; i = i->next) {
...
}
_______________________________________________
pacman-dev mailing list
[email protected]
http://archlinux.org/mailman/listinfo/pacman-dev