Mercurial > projects > ddmd
diff dmd/File.d @ 174:af724d3510d7
lot os toCBuffer methods implemented
moved shared Type.* stuff into Global
author | korDen |
---|---|
date | Sun, 10 Oct 2010 03:47:23 +0400 |
parents | e28b18c23469 |
children | e3afd1303184 |
line wrap: on
line diff
--- a/dmd/File.d Sun Oct 10 01:55:35 2010 +0400 +++ b/dmd/File.d Sun Oct 10 03:47:23 2010 +0400 @@ -20,6 +20,7 @@ } import std.string : toStringz; +import std.stdio; import core.memory; @@ -84,7 +85,7 @@ string name = this.name.toChars(); - //printf("File::read('%s')\n",name); + //writefln("File::read('%s')\n",name); int fd = open(toStringz(name), O_RDONLY); if (fd == -1) { result = errno; @@ -154,7 +155,7 @@ int result = 0; string name = this.name.toChars(); - //std.stdio.writeln("Open file ", name); + //writeln("Open file ", name); h = CreateFileA(toStringz(name), GENERIC_READ, FILE_SHARE_READ, null, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN, HANDLE.init); if (h == INVALID_HANDLE_VALUE) {