Lines Matching refs:head
134 q->head = q->tail = NULL; in Q_Init()
135 q->cursor = q->head; in Q_Init()
159 return(q && q->cursor == q->head); in Q_AtHead()
241 q->cursor = q->head; in Q_Head()
296 n = q->head; in Q_PushHead()
298 q->head = (node*)p; in Q_PushHead()
299 q->head->prev = NULL; in Q_PushHead()
302 q->head->next = NULL; in Q_PushHead()
303 q->tail = q->head; in Q_PushHead()
306 q->head->next = (datanode*)n; in Q_PushHead()
307 n->prev = q->head; in Q_PushHead()
310 q->head->data = d; in Q_PushHead()
313 q->cursor = q->head; in Q_PushHead()
353 q->head = q->tail; in Q_PushTail()
398 d = q->head->data; in Q_PopHead()
399 n = q->head->next; in Q_PopHead()
400 free(q->head); in Q_PopHead()
405 q->head = q->tail = q->cursor = NULL; in Q_PopHead()
407 q->head = (node *)n; in Q_PopHead()
408 q->head->prev = NULL; in Q_PopHead()
409 q->cursor = q->head; in Q_PopHead()
447 q->head = q->tail = q->cursor = NULL; in Q_PopTail()
532 if(iter == (q_iter)q->head) in Q_Iter_Del()
818 dn = q->head; in Q_Sort()
957 return q ? (q_iter)q->head : NULL; in Q_Iter_Head()