Extend stream functionality

Writer and reader streams now come with methods to write and read
little-endian numbers. Whether that is the right place for such
methods is debatable, but for now, that's where they live.
This commit is contained in:
Marijn Haverbeke
2011-03-10 16:02:53 +01:00
committed by Graydon Hoare
parent c731d625fe
commit 441697ab35
8 changed files with 147 additions and 96 deletions

View File

@@ -408,6 +408,9 @@ rust_file_is_dir(rust_task *task, rust_str *path) {
return S_ISDIR(buf.st_mode);
}
extern "C" CDECL FILE* rust_get_stdin() {return stdin;}
extern "C" CDECL FILE* rust_get_stdout() {return stdout;}
//
// Local Variables:
// mode: C++