Lines Matching refs:leftblock

79     block *leftblock;  member
167 deque->leftblock = b; in deque_new()
196 assert(deque->leftblock != deque->rightblock); in deque_pop()
203 assert(deque->leftblock == deque->rightblock); in deque_pop()
225 assert(deque->leftblock != NULL); in deque_popleft()
226 item = deque->leftblock->data[deque->leftindex]; in deque_popleft()
233 assert(deque->leftblock != deque->rightblock); in deque_popleft()
234 prevblock = deque->leftblock->rightlink; in deque_popleft()
235 freeblock(deque->leftblock); in deque_popleft()
238 deque->leftblock = prevblock; in deque_popleft()
241 assert(deque->leftblock == deque->rightblock); in deque_popleft()
311 b->rightlink = deque->leftblock; in deque_appendleft_internal()
312 CHECK_END(deque->leftblock->leftlink); in deque_appendleft_internal()
313 deque->leftblock->leftlink = b; in deque_appendleft_internal()
314 deque->leftblock = b; in deque_appendleft_internal()
320 deque->leftblock->data[deque->leftindex] = item; in deque_appendleft_internal()
398 assert(deque->leftblock == deque->rightblock); in deque_extend()
463 assert(deque->leftblock == deque->rightblock); in deque_extendleft()
478 b->rightlink = deque->leftblock; in deque_extendleft()
479 CHECK_END(deque->leftblock->leftlink); in deque_extendleft()
480 deque->leftblock->leftlink = b; in deque_extendleft()
481 deque->leftblock = b; in deque_extendleft()
487 deque->leftblock->data[deque->leftindex] = item; in deque_extendleft()
529 PyObject *item = old_deque->leftblock->data[old_deque->leftindex]; in deque_copy()
592 block *leftblock; in deque_clear() local
622 leftblock = deque->leftblock; in deque_clear()
629 deque->leftblock = b; in deque_clear()
639 itemptr = &leftblock->data[leftindex]; in deque_clear()
646 CHECK_NOT_END(leftblock->rightlink); in deque_clear()
647 prevblock = leftblock; in deque_clear()
648 leftblock = leftblock->rightlink; in deque_clear()
650 itemptr = leftblock->data; in deque_clear()
658 CHECK_END(leftblock->rightlink); in deque_clear()
659 freeblock(leftblock); in deque_clear()
701 PyObject *item = deque->leftblock->data[deque->leftindex]; in deque_inplace_repeat()
804 block *leftblock = deque->leftblock; in _deque_rotate() local
831 b->rightlink = leftblock; in _deque_rotate()
832 CHECK_END(leftblock->leftlink); in _deque_rotate()
833 leftblock->leftlink = b; in _deque_rotate()
834 leftblock = b; in _deque_rotate()
852 dest = &leftblock->data[leftindex]; in _deque_rotate()
859 assert(leftblock != rightblock); in _deque_rotate()
893 src = &leftblock->data[leftindex]; in _deque_rotate()
903 assert(leftblock != rightblock); in _deque_rotate()
905 b = leftblock; in _deque_rotate()
906 CHECK_NOT_END(leftblock->rightlink); in _deque_rotate()
907 leftblock = leftblock->rightlink; in _deque_rotate()
908 MARK_END(leftblock->leftlink); in _deque_rotate()
916 deque->leftblock = leftblock; in _deque_rotate()
944 block *leftblock = deque->leftblock; in deque_reverse() local
953 assert(leftblock != rightblock || leftindex < rightindex); in deque_reverse()
954 CHECK_NOT_END(leftblock); in deque_reverse()
958 tmp = leftblock->data[leftindex]; in deque_reverse()
959 leftblock->data[leftindex] = rightblock->data[rightindex]; in deque_reverse()
965 leftblock = leftblock->rightlink; in deque_reverse()
985 block *b = deque->leftblock; in deque_count()
1023 block *b = deque->leftblock; in deque_contains()
1062 block *b = deque->leftblock; in deque_index()
1177 PyObject *item = deque->leftblock->data[deque->leftindex]; in deque_remove()
1228 b = deque->leftblock; in deque_item()
1237 b = deque->leftblock; in deque_item()
1288 b = deque->leftblock; in deque_ass_item()
1312 if (deque->leftblock != NULL) { in deque_dealloc()
1314 assert(deque->leftblock != NULL); in deque_dealloc()
1315 freeblock(deque->leftblock); in deque_dealloc()
1317 deque->leftblock = NULL; in deque_dealloc()
1331 for (b = deque->leftblock; b != deque->rightblock; b = b->rightlink) { in deque_traverse()
1703 it->b = deque->leftblock; in deque_iter()
1884 assert (!(it->b == it->deque->leftblock && in dequereviter_next()