Lines Matching refs:cursor
135 q->cursor = q->head; in Q_Init()
159 return(q && q->cursor == q->head); in Q_AtHead()
179 return(q && q->cursor == q->tail); in Q_AtTail()
241 q->cursor = q->head; in Q_Head()
243 return q->cursor->data; in Q_Head()
266 q->cursor = q->tail; in Q_Tail()
268 return q->cursor->data; in Q_Tail()
313 q->cursor = q->head; in Q_PushHead()
363 q->cursor = q->tail; in Q_PushTail()
405 q->head = q->tail = q->cursor = NULL; in Q_PopHead()
409 q->cursor = q->head; in Q_PopHead()
447 q->head = q->tail = q->cursor = NULL; in Q_PopTail()
451 q->cursor = q->tail; in Q_PopTail()
482 if(!q->cursor || q->cursor->next == NULL) in Q_Next()
485 q->cursor = (node *)q->cursor->next; in Q_Next()
487 return q->cursor->data ; in Q_Next()
512 if(q->cursor->prev == NULL) in Q_Previous()
515 q->cursor = (node *)q->cursor->prev; in Q_Previous()
517 return q->cursor->data; in Q_Previous()
547 if (q->cursor == (node*)iter) { in Q_Iter_Del()
549 q->cursor = p; in Q_Iter_Del()
551 q->cursor = n; in Q_Iter_Del()
588 return Q_Iter_Del(q, (q_iter)q->cursor); in Q_DelCur()
637 if(q->cursor == NULL) in Q_Get()
639 return q->cursor->data; in Q_Get()
661 if(q->cursor == NULL) in Q_Put()
664 q->cursor->data = data; in Q_Put()
793 index = malloc(q->size * sizeof(q->cursor->data)); in Q_Sort()
797 posn_index = malloc(q->size * sizeof(q->cursor)); in Q_Sort()
808 posn_index[i] = q->cursor; in Q_Sort()
915 q->cursor = posn_index[idx]; in Q_Seek()