Lines Matching refs:tail
37 head = tail = 0; in List()
65 head = tail = 0; in Release()
85 head = tail = 0; in Destroy()
99 node->prev = tail; in Add()
101 if (tail) in Add()
103 tail->next = node; in Add()
104 tail = node; in Add()
108 head = tail = node; in Add()
132 node->prev = tail; in Insert()
133 if (tail) in Insert()
134 tail->next = node; in Insert()
135 tail = node; in Insert()
218 if (head == tail) in Remove()
220 head = tail = 0; in Remove()
227 else if (tail == node) in Remove()
229 tail = tail->prev; in Remove()
230 tail->next = 0; in Remove()
343 listnode *node = tail; in Previous()
350 return tail->object; in Previous()
408 if (tail) in Last()
410 return tail->object; in Last()
422 if (tail) { in Pop()
424 delete tail->object; in Pop()
426 o = tail->object; in Pop()
428 if(head == tail) { in Pop()
429 head = tail = 0; in Pop()
431 tail = tail->prev; in Pop()
432 tail->next = 0; in Pop()
488 if (tail) in AppendList()
491 tail->next = list.head; in AppendList()
492 list.head->prev = tail; in AppendList()
496 tail = list.tail; in AppendList()
501 tail = list.tail; in AppendList()
506 list.head = list.tail = 0; in AppendList()