VirtualBox

Changeset 18603 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 1, 2009 3:44:08 PM (16 years ago)
Author:
vboxsync
Message:

heapsimple.cpp: Just convert to C style, plese, do NOT move comments and code around.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/alloc/heapsimple.cpp

    r18561 r18603  
    460460static PRTHEAPSIMPLEBLOCK rtHeapSimpleAllocBlock(PRTHEAPSIMPLEINTERNAL pHeapInt, size_t cb, size_t uAlignment)
    461461{
    462     /*
    463      * Search for a fitting block from the lower end of the heap.
    464      */
    465462    PRTHEAPSIMPLEBLOCK  pRet = NULL;
    466463    PRTHEAPSIMPLEFREE   pFree;
     464
    467465#ifdef RTHEAPSIMPLE_STRICT
    468466    rtHeapSimpleAssertAll(pHeapInt);
    469467#endif
    470468
     469    /*
     470     * Search for a fitting block from the lower end of the heap.
     471     */
    471472    for (pFree = pHeapInt->pFreeHead;
    472473         pFree;
     
    675676{
    676677    PRTHEAPSIMPLEFREE   pFree = (PRTHEAPSIMPLEFREE)pBlock;
     678    PRTHEAPSIMPLEFREE   pLeft;
     679    PRTHEAPSIMPLEFREE   pRight;
     680
     681#ifdef RTHEAPSIMPLE_STRICT
     682    rtHeapSimpleAssertAll(pHeapInt);
     683#endif
    677684
    678685    /*
     
    680687     * of us (both lists are sorted by address).
    681688     */
    682     PRTHEAPSIMPLEFREE   pLeft = NULL;
    683     PRTHEAPSIMPLEFREE   pRight = NULL;
    684 #ifdef RTHEAPSIMPLE_STRICT
    685     rtHeapSimpleAssertAll(pHeapInt);
    686 #endif
    687 
     689    pLeft = NULL;
     690    pRight = NULL;
    688691    if (pHeapInt->pFreeTail)
    689692    {
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