Lines Matching refs:tail
30 static struct node *tail; // point to the last node, or NULL
55 // link new nodes after tail
56 if (tail) {
57 tail->next = nodes;
66 if (tail == NULL) {
69 new_tail = tail->next;
77 new_tail->prev = tail;
78 tail = new_tail;
85 if (tail == node) {
87 tail = prev;
88 if (tail == NULL) {
101 // insert node after tail
102 struct node *tail_next = tail->next;
103 node->prev = tail;
105 tail->next = node;
120 for (; tail; tail = tail->prev) {
121 func = tail->func;
122 tail->func = NULL; // Avoid repeated invocation.
124 arg = tail->arg;
139 for (node = tail; node;) {
209 for (node = tail; node; node = node->prev) {