Lines Matching refs:rightblock
89 block *rightblock; member
177 deque->rightblock = b; in deque_new()
197 item = deque->rightblock->data[deque->rightindex]; in deque_pop()
204 prevblock = deque->rightblock->leftlink; in deque_pop()
205 assert(deque->leftblock != deque->rightblock); in deque_pop()
206 freeblock(deque->rightblock); in deque_pop()
209 deque->rightblock = prevblock; in deque_pop()
212 assert(deque->leftblock == deque->rightblock); in deque_pop()
242 assert(deque->leftblock != deque->rightblock); in deque_popleft()
250 assert(deque->leftblock == deque->rightblock); in deque_popleft()
283 b->leftlink = deque->rightblock; in deque_append_internal()
284 CHECK_END(deque->rightblock->rightlink); in deque_append_internal()
285 deque->rightblock->rightlink = b; in deque_append_internal()
286 deque->rightblock = b; in deque_append_internal()
292 deque->rightblock->data[deque->rightindex] = item; in deque_append_internal()
407 assert(deque->leftblock == deque->rightblock); in deque_extend()
454 assert(deque->leftblock == deque->rightblock); in deque_extendleft()
602 deque->rightblock = b; in deque_clear()
686 b->leftlink = deque->rightblock; in deque_inplace_repeat()
687 CHECK_END(deque->rightblock->rightlink); in deque_inplace_repeat()
688 deque->rightblock->rightlink = b; in deque_inplace_repeat()
689 deque->rightblock = b; in deque_inplace_repeat()
700 deque->rightblock->data[deque->rightindex] = item; in deque_inplace_repeat()
777 block *rightblock = deque->rightblock; in _deque_rotate() local
823 src = &rightblock->data[rightindex + 1]; in _deque_rotate()
831 assert(leftblock != rightblock); in _deque_rotate()
833 b = rightblock; in _deque_rotate()
834 CHECK_NOT_END(rightblock->leftlink); in _deque_rotate()
835 rightblock = rightblock->leftlink; in _deque_rotate()
836 MARK_END(rightblock->rightlink); in _deque_rotate()
847 b->leftlink = rightblock; in _deque_rotate()
848 CHECK_END(rightblock->rightlink); in _deque_rotate()
849 rightblock->rightlink = b; in _deque_rotate()
850 rightblock = b; in _deque_rotate()
866 dest = &rightblock->data[rightindex + 1]; in _deque_rotate()
875 assert(leftblock != rightblock); in _deque_rotate()
889 deque->rightblock = rightblock; in _deque_rotate()
917 block *rightblock = deque->rightblock; in deque_reverse() local
925 assert(leftblock != rightblock || leftindex < rightindex); in deque_reverse()
927 CHECK_NOT_END(rightblock); in deque_reverse()
931 leftblock->data[leftindex] = rightblock->data[rightindex]; in deque_reverse()
932 rightblock->data[rightindex] = tmp; in deque_reverse()
944 rightblock = rightblock->leftlink; in deque_reverse()
1209 b = deque->rightblock; in deque_item()
1222 b = deque->rightblock; in deque_item()
1273 b = deque->rightblock; in deque_ass_item()
1296 deque->rightblock = NULL; in deque_dealloc()
1309 for (b = deque->leftblock; b != deque->rightblock; b = b->rightlink) { in deque_traverse()
1726 assert (!(it->b == it->deque->rightblock && in dequeiter_next()
1845 it->b = deque->rightblock; in deque_reviter()