VirtualBox

Changeset 402 in vbox for trunk/src/VBox/Runtime/table


Ignore:
Timestamp:
Jan 28, 2007 8:44:20 AM (18 years ago)
Author:
vboxsync
Message:

Added missing RTDECL so it'll compile cleanly in Ring-0 on NT where default calling convention is stdcall and not cdecl like RTCALL.

Location:
trunk/src/VBox/Runtime/table
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/table/avl_Base.cpp.h

    r1 r402  
    170170 *            Rebalance the tree.
    171171 */
    172 bool KAVL_FN(Insert)(PPKAVLNODECORE ppTree, PKAVLNODECORE pNode)
     172RTDECL(bool) KAVL_FN(Insert)(PPKAVLNODECORE ppTree, PKAVLNODECORE pNode)
    173173{
    174174    KAVLSTACK               AVLStack;
     
    270270 *            return pointer to the removed node (if found).
    271271 */
    272 PKAVLNODECORE KAVL_FN(Remove)(PPKAVLNODECORE ppTree, KAVLKEY Key)
     272RTDECL(PKAVLNODECORE) KAVL_FN(Remove)(PPKAVLNODECORE ppTree, KAVLKEY Key)
    273273{
    274274    KAVLSTACK                AVLStack;
  • trunk/src/VBox/Runtime/table/avl_Destroy.cpp.h

    r97 r402  
    3737 * @param       pvParam         User parameter passed on to the callback function.
    3838 */
    39 int KAVL_FN(Destroy)(PPKAVLNODECORE ppTree, PKAVLCALLBACK pfnCallBack, void *pvParam)
     39RTDECL(int) KAVL_FN(Destroy)(PPKAVLNODECORE ppTree, PKAVLCALLBACK pfnCallBack, void *pvParam)
    4040{
    4141    KAVLSTACK2      AVLStack;
  • trunk/src/VBox/Runtime/table/avl_DoWithAll.cpp.h

    r1 r402  
    3333 * @param     pvParam      Userparameter passed on to the callback function.
    3434 */
    35 int KAVL_FN(DoWithAll)(PPKAVLNODECORE ppTree, int fFromLeft, PKAVLCALLBACK pfnCallBack, void * pvParam)
     35RTDECL(int) KAVL_FN(DoWithAll)(PPKAVLNODECORE ppTree, int fFromLeft, PKAVLCALLBACK pfnCallBack, void * pvParam)
    3636{
    3737    KAVLSTACK2      AVLStack;
  • trunk/src/VBox/Runtime/table/avl_Enum.cpp.h

    r1 r402  
    3232 * @param   ppTree      Pointer to pointer to the tree root node.
    3333 */
    34 PKAVLNODECORE    KAVL_FN(GetRoot)(PPKAVLNODECORE ppTree)
     34RTDECL(PKAVLNODECORE) KAVL_FN(GetRoot)(PPKAVLNODECORE ppTree)
    3535{
    3636    return KAVL_GET_POINTER_NULL(ppTree);
     
    4646 * @param   pNode       The current node.
    4747 */
    48 PKAVLNODECORE    KAVL_FN(GetRight)(PKAVLNODECORE pNode)
     48RTDECL(PKAVLNODECORE)    KAVL_FN(GetRight)(PKAVLNODECORE pNode)
    4949{
    5050    if (pNode)
     
    6262 * @param   pNode       The current node.
    6363 */
    64 PKAVLNODECORE    KAVL_FN(GetLeft)(PKAVLNODECORE pNode)
     64RTDECL(PKAVLNODECORE) KAVL_FN(GetLeft)(PKAVLNODECORE pNode)
    6565{
    6666    if (pNode)
     
    7070
    7171
    72 #ifdef KAVL_EQUAL_ALLOWED
     72# ifdef KAVL_EQUAL_ALLOWED
    7373/**
    7474 * Gets the next node with an equal (start) key.
     
    7979 * @param   pNode       The current node.
    8080 */
    81 PKAVLNODECORE    KAVL_FN(GetNextEqual)(PKAVLNODECORE pNode)
     81RTDECL(PKAVLNODECORE) KAVL_FN(GetNextEqual)(PKAVLNODECORE pNode)
    8282{
    8383    if (pNode)
     
    8585    return NULL;
    8686}
    87 #endif /* KAVL_EQUAL_ALLOWED */
     87# endif /* KAVL_EQUAL_ALLOWED */
    8888
    8989#endif
  • trunk/src/VBox/Runtime/table/avl_Get.cpp.h

    r1 r402  
    3131 * @author    knut st. osmundsen
    3232 */
    33 PKAVLNODECORE KAVL_FN(Get)(PPKAVLNODECORE ppTree, KAVLKEY Key)
     33RTDECL(PKAVLNODECORE) KAVL_FN(Get)(PPKAVLNODECORE ppTree, KAVLKEY Key)
    3434{
    3535    register PKAVLNODECORE  pNode = KAVL_GET_POINTER_NULL(ppTree);
  • trunk/src/VBox/Runtime/table/avl_GetBestFit.cpp.h

    r1 r402  
    3737 *            <= (below): the node where you last turned right.
    3838 */
    39 PKAVLNODECORE    KAVL_FN(GetBestFit)(PPKAVLNODECORE ppTree, KAVLKEY Key, bool fAbove)
     39RTDECL(PKAVLNODECORE) KAVL_FN(GetBestFit)(PPKAVLNODECORE ppTree, KAVLKEY Key, bool fAbove)
    4040{
    4141    register PKAVLNODECORE  pNode = KAVL_GET_POINTER_NULL(ppTree);
  • trunk/src/VBox/Runtime/table/avl_Range.cpp.h

    r1 r402  
    3131 * @param     Key     The Key to find matching range for.
    3232 */
    33 PKAVLNODECORE    KAVL_FN(RangeGet)(PPKAVLNODECORE ppTree, register KAVLKEY Key)
     33RTDECL(PKAVLNODECORE) KAVL_FN(RangeGet)(PPKAVLNODECORE ppTree, register KAVLKEY Key)
    3434{
    3535    register PKAVLNODECORE  pNode = KAVL_GET_POINTER_NULL(ppTree);
     
    6969 * @param     Key     The Key to remove matching range for.
    7070 */
    71 PKAVLNODECORE    KAVL_FN(RangeRemove)(PPKAVLNODECORE ppTree, KAVLKEY Key)
     71RTDECL(PKAVLNODECORE) KAVL_FN(RangeRemove)(PPKAVLNODECORE ppTree, KAVLKEY Key)
    7272{
    7373    PKAVLNODECORE pNode = KAVL_FN(RangeGet)(ppTree, Key);
  • trunk/src/VBox/Runtime/table/avl_RemoveBestFit.cpp.h

    r1 r402  
    3939 * @remark    This implementation should be speeded up slightly!
    4040 */
    41 PKAVLNODECORE    KAVL_FN(RemoveBestFit)(PPKAVLNODECORE ppTree, KAVLKEY Key, bool fAbove)
     41RTDECL(PKAVLNODECORE) KAVL_FN(RemoveBestFit)(PPKAVLNODECORE ppTree, KAVLKEY Key, bool fAbove)
    4242{
    4343    /*
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette