Changeset 115

Show
Ignore:
Timestamp:
06/08/05 03:14:14 (3 years ago)
Author:
aldacron
Message:

* all modules no use !is in place of !== (deprecated in DMD 1.26)
[DerelictGL]
* gl.d now privately imports wgl.d on Windows and glx.d on linux. Somehow I had overlooked that it was broken and wouldn't compile.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/DerelictAL/derelict/openal/al.d

    r113 r115  
    221221public void DerelictAL_Load(char[] libName) 
    222222{ 
    223     if(libAL !== null) 
     223    if(libAL !is null) 
    224224        return; 
    225225 
  • trunk/DerelictGL/derelict/opengl/gl.d

    r107 r115  
    2828import derelict.opengl.glfuncs; 
    2929 
    30 private import derelict.opengl.internal; 
    31  
     30private  
     31
     32    import derelict.opengl.internal; 
     33    version(Windows) 
     34    { 
     35        import derelict.opengl.wgl; 
     36    } 
     37    else version(linux) 
     38    { 
     39        import derelict.opengl.glx; 
     40    } 
     41
    3242 
    3343public void DerelictGL_Load(char[] libName) 
  • trunk/DerelictGL/derelict/opengl/internal.d

    r91 r115  
    1212package void internalLoad(char[] libName) 
    1313{ 
    14     if(libGL !== null) 
     14    if(libGL !is null) 
    1515        return; 
    1616 
  • trunk/DerelictGLFW/derelict/glfw/glfw.d

    r91 r115  
    5353public void DerelictGLFW_Load(char[] libName) 
    5454{ 
    55     if(libGLFW !== null) 
     55    if(libGLFW !is null) 
    5656        return; 
    5757 
  • trunk/DerelictGLU/derelict/opengl/glu.d

    r92 r115  
    111111public void DerelictGLU_Load(char[] libName) 
    112112{ 
    113     if(libGLU !== null) 
     113    if(libGLU !is null) 
    114114        return; 
    115115 
  • trunk/DerelictSDL/derelict/sdl/sdl.d

    r97 r115  
    303303public void DerelictSDL_Load(char[] libName) 
    304304{ 
    305     if(libSDL !== null) 
     305    if(libSDL !is null) 
    306306        return; 
    307307 
  • trunk/DerelictSDLImage/derelict/sdl/image.d

    r91 r115  
    123123public void DerelictSDLImage_Load(char[] libName) 
    124124{ 
    125     if(libSDLImage !== null) 
     125    if(libSDLImage !is null) 
    126126        return; 
    127127 
  • trunk/DerelictSDLMixer/derelict/sdl/mixer.d

    r91 r115  
    325325public void DerelictSDLMixer_Load(char[] libName) 
    326326{ 
    327     if (libSDLMixer !== null) 
     327    if (libSDLMixer !is null) 
    328328        return; 
    329329 
  • trunk/DerelictSDLNet/derelict/sdl/net.d

    r100 r115  
    9595bool SDLNet_SocketReady(TCPsocket sock) 
    9696{ 
    97     return cast(bool)((sock !== null) && (cast(SDLNet_GenericSocket)sock).ready); 
     97    return cast(bool)((sock !is null) && (cast(SDLNet_GenericSocket)sock).ready); 
    9898} 
    9999 
    100100bool SDLNet_SocketReady(UDPsocket sock) 
    101101{ 
    102     return cast(bool)((sock !== null) && (cast(SDLNet_GenericSocket)sock).ready); 
     102    return cast(bool)((sock !is null) && (cast(SDLNet_GenericSocket)sock).ready); 
    103103} 
    104104 
     
    254254public void DerelictSDLNet_Load(char[] libName) 
    255255{ 
    256     if(libSDLNet !== null) 
     256    if(libSDLNet !is null) 
    257257        return; 
    258258 
  • trunk/DerelictSDLttf/derelict/sdl/ttf.d

    r91 r115  
    216216public void DerelictSDLttf_Load(char[] libName) 
    217217{ 
    218     if (libSDLttf !== null) 
     218    if (libSDLttf !is null) 
    219219        return; 
    220220 
  • trunk/DerelictUtil/derelict/util/exception.d

    r102 r115  
    104104{ 
    105105    bool result = false; 
    106     if(missingProcCallback !== null) 
     106    if(missingProcCallback !is null) 
    107107        result = missingProcCallback(libName, procName); 
    108108    if(!result) 
  • trunk/DerelictUtil/derelict/util/loader.d

    r102 r115  
    2727in 
    2828{ 
    29     assert(libName !== null); 
     29    assert(libName !is null); 
    3030} 
    3131body 
     
    3636void Derelict_UnloadSharedLib(SharedLib lib) 
    3737{ 
    38     if(lib !== null && lib._handle !== null) 
     38    if(lib !is null && lib._handle !is null) 
    3939        Platform_UnloadSharedLib(lib); 
    4040} 
     
    4343in 
    4444{ 
    45     assert(lib !== null); 
    46     assert(procName !== null); 
     45    assert(lib !is null); 
     46    assert(procName !is null); 
    4747} 
    4848body