Lines Matching refs:leftblock
98 block *leftblock; member
144 deque->leftblock = b; in deque_new()
173 assert(deque->leftblock == deque->rightblock); in deque_pop()
180 assert(deque->leftblock != deque->rightblock); in deque_pop()
202 assert(deque->leftblock != NULL); in deque_popleft()
203 item = deque->leftblock->data[deque->leftindex]; in deque_popleft()
210 assert(deque->leftblock == deque->rightblock); in deque_popleft()
216 assert(deque->leftblock != deque->rightblock); in deque_popleft()
217 prevblock = deque->leftblock->rightlink; in deque_popleft()
218 freeblock(deque->leftblock); in deque_popleft()
221 deque->leftblock = prevblock; in deque_popleft()
258 block *b = newblock(NULL, deque->leftblock, deque->len); in deque_appendleft()
261 assert(deque->leftblock->leftlink == NULL); in deque_appendleft()
262 deque->leftblock->leftlink = b; in deque_appendleft()
263 deque->leftblock = b; in deque_appendleft()
269 deque->leftblock->data[deque->leftindex] = item; in deque_appendleft()
371 block *b = newblock(NULL, deque->leftblock, in deque_extendleft()
378 assert(deque->leftblock->leftlink == NULL); in deque_extendleft()
379 deque->leftblock->leftlink = b; in deque_extendleft()
380 deque->leftblock = b; in deque_extendleft()
385 deque->leftblock->data[deque->leftindex] = item; in deque_extendleft()
430 block *b = newblock(NULL, deque->leftblock, len); in _deque_rotate()
433 assert(deque->leftblock->leftlink == NULL); in _deque_rotate()
434 deque->leftblock->leftlink = b; in _deque_rotate()
435 deque->leftblock = b; in _deque_rotate()
446 memcpy(&deque->leftblock->data[deque->leftindex - m], in _deque_rotate()
456 assert(deque->leftblock != deque->rightblock); in _deque_rotate()
482 &deque->leftblock->data[deque->leftindex], in _deque_rotate()
489 block *nextblock = deque->leftblock->rightlink; in _deque_rotate()
490 assert(deque->leftblock != deque->rightblock); in _deque_rotate()
491 freeblock(deque->leftblock); in _deque_rotate()
494 deque->leftblock = nextblock; in _deque_rotate()
519 block *leftblock = deque->leftblock; in deque_reverse() local
529 assert(leftblock != rightblock || leftindex < rightindex); in deque_reverse()
532 tmp = leftblock->data[leftindex]; in deque_reverse()
533 leftblock->data[leftindex] = rightblock->data[rightindex]; in deque_reverse()
539 if (leftblock->rightlink == NULL) in deque_reverse()
541 leftblock = leftblock->rightlink; in deque_reverse()
563 block *leftblock = deque->leftblock; in deque_count() local
573 item = leftblock->data[leftindex]; in deque_count()
589 if (leftblock->rightlink == NULL) /* can occur when i==n-1 */ in deque_count()
591 leftblock = leftblock->rightlink; in deque_count()
613 PyObject *item = deque->leftblock->data[deque->leftindex]; in deque_remove()
647 block *leftblock; in deque_clear() local
675 leftblock = deque->leftblock; in deque_clear()
681 deque->leftblock = b; in deque_clear()
691 item = leftblock->data[leftindex]; in deque_clear()
695 assert(leftblock->rightlink != NULL); in deque_clear()
696 prevblock = leftblock; in deque_clear()
697 leftblock = leftblock->rightlink; in deque_clear()
702 assert(leftblock->rightlink == NULL); in deque_clear()
703 freeblock(leftblock); in deque_clear()
730 b = deque->leftblock; in deque_item()
739 b = deque->leftblock; in deque_item()
796 b = deque->leftblock; in deque_ass_item()
827 if (deque->leftblock != NULL) { in deque_dealloc()
829 assert(deque->leftblock != NULL); in deque_dealloc()
830 freeblock(deque->leftblock); in deque_dealloc()
832 deque->leftblock = NULL; in deque_dealloc()
845 for (b = deque->leftblock; b != NULL; b = b->rightlink) { in deque_traverse()
1264 it->b = deque->leftblock; in deque_iter()
1399 assert (!(it->b == it->deque->leftblock && in dequereviter_next()