Changeset 232

Show
Ignore:
Timestamp:
09/07/11 00:01:01 (9 months ago)
Author:
Abscissa
Message:

DMD 2.055 compatibility.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/semitwist/apps/miniapps/echo/main.d

    r227 r232  
    1212semitwist.cmd.CommandLine, can't launch it. 
    1313 
    14 This has been tested to work with DMD 2.052 through 2.054 
     14This has been tested to work with DMD 2.052 through 2.055 
    1515+/ 
    1616 
  • trunk/src/semitwist/apps/miniapps/ini2urlencode/main.d

    r227 r232  
    1717- There is no way to embed a newline in the name or value. 
    1818 
    19 This has been tested to work with DMD 2.052 through 2.054 
     19This has been tested to work with DMD 2.052 through 2.055 
    2020+/ 
    2121 
  • trunk/src/semitwist/apps/miniapps/pwd/main.d

    r227 r232  
    1010So this might occasionally be useful. 
    1111 
    12 This has been tested to work with DMD 2.052 through 2.054 
     12This has been tested to work with DMD 2.052 through 2.055 
    1313+/ 
    1414 
  • trunk/src/semitwist/apps/miniapps/seterrorlevel/main.d

    r227 r232  
    1313and set the errorlevel to 1. 
    1414 
    15 This has been tested to work with DMD 2.052 through 2.054 
     15This has been tested to work with DMD 2.052 through 2.055 
    1616+/ 
    1717 
  • trunk/src/semitwist/apps/miniapps/showargs/main.d

    r227 r232  
    77$(WEB www.semitwist.com, Nick Sabalausky) 
    88 
    9 This has been tested to work with DMD 2.052 through 2.054 
     9This has been tested to work with DMD 2.052 through 2.055 
    1010+/ 
    1111 
  • trunk/src/semitwist/apps/samples/cmdSample/main.d

    r227 r232  
    77$(WEB www.semitwist.com, Nick Sabalausky) 
    88 
    9 This has been tested to work with DMD 2.052 through 2.054 
     9This has been tested to work with DMD 2.052 through 2.055 
    1010+/ 
    1111 
  • trunk/src/semitwist/apps/stmanage/stbuild/conf.d

    r231 r232  
    421421            mixin(initMember("conf", "filename")); 
    422422 
    423             if(!exists(filename) || !isfile(filename)) 
     423            if(!exists(filename) || !isFile(filename)) 
    424424                throw new STBuildConfException( 
    425425                    "Can't find configuration file '%s'".format(filename) 
  • trunk/src/semitwist/apps/stmanage/stbuild/main.d

    r231 r232  
    77$(WEB www.semitwist.com, Nick Sabalausky) 
    88 
    9 This has been tested to work with DMD 2.052 through 2.054 
     9This has been tested to work with DMD 2.052 through 2.055 
    1010+/ 
    1111 
  • trunk/src/semitwist/apps/tests/cmdparsertest/main.d

    r227 r232  
    77$(WEB www.semitwist.com, Nick Sabalausky) 
    88 
    9 This has been tested to work with DMD 2.052 through 2.054 
     9This has been tested to work with DMD 2.052 through 2.055 
    1010+/ 
    1111 
  • trunk/src/semitwist/apps/tests/deferAssertTest/main.d

    r227 r232  
    99Make sure to pass "-debug=deferAssertTest_unittest" to DMD. 
    1010 
    11 This has been tested to work with DMD 2.052 through 2.054 
     11This has been tested to work with DMD 2.052 through 2.055 
    1212+/ 
    1313 
  • trunk/src/semitwist/apps/tests/unittests/main.d

    r227 r232  
    99This runs the SemiTwist D Tools unit tests. 
    1010 
    11 This has been tested to work with DMD 2.052 through 2.054 
     11This has been tested to work with DMD 2.052 through 2.055 
    1212+/ 
    1313 
  • trunk/src/semitwist/util/all.d

    r216 r232  
    66$(WEB www.semitwist.com, Nick Sabalausky) 
    77 
    8 This has been tested to work with DMD 2.052 
     8This has been tested to work with DMD 2.052 through 2.055 
    99 
    1010In SVN comments: 
  • trunk/src/semitwist/util/text.d

    r230 r232  
    775775Endian endianOf(BOM bom) 
    776776{ 
    777     final switch(bom) 
    778     { 
    779     case BOM.UTF8: return endian; 
    780     case BOM.UTF16LE, BOM.UTF32LE: return Endian.LittleEndian; 
    781     case BOM.UTF16BE, BOM.UTF32BE: return Endian.BigEndian; 
     777    // DMD 2.055 changed "LittleEndian" to "littleEndian", etc... 
     778    static if(__traits(compiles, Endian.littleEndian)) 
     779    { 
     780        final switch(bom) 
     781        { 
     782        case BOM.UTF8: return endian; 
     783        case BOM.UTF16LE, BOM.UTF32LE: return Endian.littleEndian; 
     784        case BOM.UTF16BE, BOM.UTF32BE: return Endian.bigEndian; 
     785        } 
     786    } 
     787    else 
     788    { 
     789        final switch(bom) 
     790        { 
     791        case BOM.UTF8: return endian; 
     792        case BOM.UTF16LE, BOM.UTF32LE: return Endian.LittleEndian; 
     793        case BOM.UTF16BE, BOM.UTF32BE: return Endian.BigEndian; 
     794        } 
    782795    } 
    783796}