Lines Matching refs:pY
207 BtRbNode *pY; in leftRotate() local
209 pY = pX->pRight; in leftRotate()
210 pb = pY->pLeft; in leftRotate()
212 pY->pParent = pX->pParent; in leftRotate()
214 if( pX->pParent->pLeft == pX ) pX->pParent->pLeft = pY; in leftRotate()
215 else pX->pParent->pRight = pY; in leftRotate()
217 pY->pLeft = pX; in leftRotate()
218 pX->pParent = pY; in leftRotate()
221 if( pTree->pHead == pX ) pTree->pHead = pY; in leftRotate()
239 BtRbNode *pY; in rightRotate() local
241 pY = pX->pLeft; in rightRotate()
242 pb = pY->pRight; in rightRotate()
244 pY->pParent = pX->pParent; in rightRotate()
246 if( pX->pParent->pLeft == pX ) pX->pParent->pLeft = pY; in rightRotate()
247 else pX->pParent->pRight = pY; in rightRotate()
249 pY->pRight = pX; in rightRotate()
250 pX->pParent = pY; in rightRotate()
253 if( pTree->pHead == pX ) pTree->pHead = pY; in rightRotate()