diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-03-10 16:02:53 +0100 |
|---|---|---|
| committer | Graydon Hoare <graydon@mozilla.com> | 2011-03-14 14:57:13 -0700 |
| commit | 441697ab359ae2a17c531e5b8e26f66ffcf72992 (patch) | |
| tree | b094368c6bedb50bf52acb2e4fe775e47aef7741 /src/rt/rust_builtin.cpp | |
| parent | c731d625fe5f7626b41c7241893350b8b27b1dbe (diff) | |
| download | rust-441697ab359ae2a17c531e5b8e26f66ffcf72992.tar.gz rust-441697ab359ae2a17c531e5b8e26f66ffcf72992.zip | |
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.
Diffstat (limited to 'src/rt/rust_builtin.cpp')
| -rw-r--r-- | src/rt/rust_builtin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 250280f209c..40976214021 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -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++ |
