Improve the access to first and last elements in LinkedList
authorJulien Peeters <contact@julienpeeters.fr>
Fri, 11 Sep 2009 11:41:16 +0000 (13:41 +0200)
committerDidier 'Ptitjes <ptitjes@free.fr>
Fri, 11 Sep 2009 18:23:14 +0000 (20:23 +0200)
commitfe54f3db46f671542a0cf2eeb9ccda48895ec995
tree46ae72b45e4001dfa14f130b44b38a125f088a7f
parent75b5e11db8559694869bb97e0042f5342282d692
Improve the access to first and last elements in LinkedList

Fixes part of bug 594868.

The signature of first and last properties in List did not take in account the
fact that lists permit null elements. Their type has been changed from G? to G
to reflect this.

Also we optimized the access to first and last elements in LinkedList, which can
be made through head and tail pointers directly.
gee/linkedlist.vala
gee/list.vala