Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3937

Show
Ignore:
Timestamp:
09/15/08 19:12:04 (2 months ago)
Author:
sean
Message:

Fixed some now invalid uses of typeof(). Hopefully they're the only such ones in Tango.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/common/tango/core/Thread.d

    r3803 r3937  
    23642364        } 
    23652365 
    2366         static if( is( typeof( ucontext_t ) ) ) 
     2366        static if( is( ucontext_t ) ) 
    23672367          obj.m_ucur = &obj.m_utxt; 
    23682368 
     
    24512451            } 
    24522452        } 
    2453         else static if( is( typeof( ucontext_t ) ) ) 
     2453        else static if( is( ucontext_t ) ) 
    24542454        { 
    24552455            Fiber   cfib = Fiber.getThis(); 
     
    26362636        Fiber   cur = getThis(); 
    26372637 
    2638         static if( is( typeof( ucontext_t ) ) ) 
     2638        static if( is( ucontext_t ) ) 
    26392639          m_ucur = cur ? &cur.m_utxt : &Fiber.sm_utxt; 
    26402640 
     
    26432643        setThis( cur ); 
    26442644 
    2645         static if( is( typeof( ucontext_t ) ) ) 
     2645        static if( is( ucontext_t ) ) 
    26462646          m_ucur = null; 
    26472647 
     
    27392739        assert( cur.m_state == State.EXEC ); 
    27402740 
    2741         static if( is( typeof( ucontext_t ) ) ) 
     2741        static if( is( ucontext_t ) ) 
    27422742          cur.m_ucur = &cur.m_utxt; 
    27432743 
     
    27692769        assert( cur.m_state == State.EXEC ); 
    27702770 
    2771         static if( is( typeof( ucontext_t ) ) ) 
     2771        static if( is( ucontext_t ) ) 
    27722772          cur.m_ucur = &cur.m_utxt; 
    27732773 
     
    28242824            assert( status == 0 ); 
    28252825 
    2826           static if( is( typeof( ucontext_t ) ) ) 
     2826          static if( is( ucontext_t ) ) 
    28272827          { 
    28282828            status = getcontext( &sm_utxt ); 
     
    31433143            assert( cast(uint) pstack & 0x0f == 0 ); 
    31443144        } 
    3145         else static if( is( typeof( ucontext_t ) ) ) 
     3145        else static if( is( ucontext_t ) ) 
    31463146        { 
    31473147            getcontext( &m_utxt ); 
     
    31603160    void*           m_pmem; 
    31613161 
    3162     static if( is( typeof( ucontext_t ) ) ) 
     3162    static if( is( ucontext_t ) ) 
    31633163    { 
    31643164        // NOTE: The static ucontext instance is used to represent the context