Lines Matching refs:tail
134 q->head = q->tail = NULL; in Q_Init()
179 return(q && q->cursor == q->tail); in Q_AtTail()
266 q->cursor = q->tail; in Q_Tail()
303 q->tail = q->head; in Q_PushHead()
348 p = q->tail; in Q_PushTail()
349 q->tail = (node *)n; in Q_PushTail()
352 q->tail->prev = NULL; in Q_PushTail()
353 q->head = q->tail; in Q_PushTail()
356 q->tail->prev = (datanode *)p; in Q_PushTail()
357 p->next = q->tail; in Q_PushTail()
360 q->tail->next = NULL; in Q_PushTail()
362 q->tail->data = d; in Q_PushTail()
363 q->cursor = q->tail; in Q_PushTail()
405 q->head = q->tail = q->cursor = NULL; in Q_PopHead()
441 d = q->tail->data; in Q_PopTail()
442 p = q->tail->prev; in Q_PopTail()
443 free(q->tail); in Q_PopTail()
447 q->head = q->tail = q->cursor = NULL; in Q_PopTail()
449 q->tail = (node *)p; in Q_PopTail()
450 q->tail->next = NULL; in Q_PopTail()
451 q->cursor = q->tail; in Q_PopTail()
535 if(iter == (q_iter)q->tail) in Q_Iter_Del()
961 return q ? (q_iter)q->tail : NULL; in Q_Iter_Tail()