Changeset 77118 in vbox for trunk/src/VBox/Runtime/common/table/avl_Base.cpp.h
- Timestamp:
- Feb 1, 2019 2:47:32 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/table/avl_Base.cpp.h
r76553 r77118 267 267 else 268 268 { 269 registerunsigned char uchHeight = (unsigned char)(KMAX(uchLeftHeight, uchRightHeight) + 1);269 unsigned char uchHeight = (unsigned char)(KMAX(uchLeftHeight, uchRightHeight) + 1); 270 270 if (uchHeight == pNode->uchHeight) 271 271 break; … … 299 299 KAVL_DECL(bool) KAVL_FN(Insert)(PPKAVLNODECORE ppTree, PKAVLNODECORE pNode) 300 300 { 301 KAVLSTACK AVLStack;302 PPKAVLNODECORE ppCurNode = ppTree;303 register PKAVLNODECOREpCurNode;304 register KAVLKEYKey = pNode->Key; NOREF(Key);301 KAVLSTACK AVLStack; 302 PPKAVLNODECORE ppCurNode = ppTree; 303 PKAVLNODECORE pCurNode; 304 KAVLKEY Key = pNode->Key; NOREF(Key); 305 305 #ifdef KAVL_RANGE 306 register KAVLKEYKeyLast = pNode->KeyLast; NOREF(KeyLast);306 KAVLKEY KeyLast = pNode->KeyLast; NOREF(KeyLast); 307 307 #endif 308 308 … … 399 399 KAVL_DECL(PKAVLNODECORE) KAVL_FN(Remove)(PPKAVLNODECORE ppTree, KAVLKEY Key) 400 400 { 401 KAVLSTACK 402 PPKAVLNODECORE 403 register PKAVLNODECOREpDeleteNode;401 KAVLSTACK AVLStack; 402 PPKAVLNODECORE ppDeleteNode = ppTree; 403 PKAVLNODECORE pDeleteNode; 404 404 405 405 AVLStack.cEntries = 0; … … 426 426 { 427 427 /* find the rightmost node in the left tree. */ 428 const unsigned 429 PPKAVLNODECORE 430 register PKAVLNODECOREpLeftLeast = KAVL_GET_POINTER(ppLeftLeast);428 const unsigned iStackEntry = AVLStack.cEntries; 429 PPKAVLNODECORE ppLeftLeast = &pDeleteNode->pLeft; 430 PKAVLNODECORE pLeftLeast = KAVL_GET_POINTER(ppLeftLeast); 431 431 432 432 while (pLeftLeast->pRight != KAVL_NULL)
Note:
See TracChangeset
for help on using the changeset viewer.