]> git.llucax.com Git - software/druntime.git/blobdiff - src/compiler/dmd/cover.d
Changed D 2.0 runtime to account for 'this' being changed from a pointer to a referen...
[software/druntime.git] / src / compiler / dmd / cover.d
index fd331615aeebb4ac2eea80411849728da2e7867b..2fc1cab5ab8966c4a3eae1ab1a11c2d382aea311 100644 (file)
  * Authors:   Walter Bright, Sean Kelly
  */
 
  * Authors:   Walter Bright, Sean Kelly
  */
 
-module rt. cover;
+module rt.cover;
 
 private
 {
     version( Windows )
 
 private
 {
     version( Windows )
-        import sys.windows.windows;
+        import core.sys.windows.windows;
     else version( Posix )
     else version( Posix )
-        import stdc.posix.unistd;
-    import bitmanip;
-    import stdc.stdio;
+    {
+        import core.sys.posix.fcntl;
+        import core.sys.posix.unistd;
+    }
+    import core.bitmanip;
+    import core.stdc.stdio;
     import util.utf;
 
     struct BitArray
     import util.utf;
 
     struct BitArray
@@ -222,7 +225,7 @@ bool readFile( char[] name, inout char[] buf )
 {
     version( Windows )
     {
 {
     version( Windows )
     {
-        wchar*  wnamez  = toUTF16z( name );
+        auto    wnamez  = toUTF16z( name );
         HANDLE  file    = CreateFileW( wnamez,
                                        GENERIC_READ,
                                        FILE_SHARE_READ,
         HANDLE  file    = CreateFileW( wnamez,
                                        GENERIC_READ,
                                        FILE_SHARE_READ,