Skip to content

Commit

Permalink
Merge pull request dlang#431 from dawgfoto/master
Browse files Browse the repository at this point in the history
use module scope for imports...
  • Loading branch information
andralex committed Feb 18, 2012
2 parents a327fe7 + e36dbee commit 504cc5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions std/cstream.d
Expand Up @@ -96,7 +96,7 @@ class CFile : Stream {
* Ditto
*/
override char ungetc(char c) {
return cast(char)std.c.stdio.ungetc(c,cfile);
return cast(char).std.c.stdio.ungetc(c,cfile);
}

/**
Expand Down Expand Up @@ -168,14 +168,14 @@ class CFile : Stream {
auto exp = "Testing stream.d:";
assert(line[0] == 'T');
assert(line.length == exp.length);
assert(!std.string.cmp(line, "Testing stream.d:"));
assert(!.std.string.cmp(line, "Testing stream.d:"));
// jump over "Hello, "
file.seek(7, SeekPos.Current);
version (Windows)
assert(file.position() == 19 + 7);
version (Posix)
assert(file.position() == 18 + 7);
assert(!std.string.cmp(file.readString(6), "world!"));
assert(!.std.string.cmp(file.readString(6), "world!"));
i = 0; file.read(i);
assert(i == 666);
// string#1 + string#2 + int should give exacly that
Expand Down

0 comments on commit 504cc5e

Please sign in to comment.