From 441697ab359ae2a17c531e5b8e26f66ffcf72992 Mon Sep 17 00:00:00 2001 From: Marijn Haverbeke Date: Thu, 10 Mar 2011 16:02:53 +0100 Subject: 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. --- src/rt/rust_builtin.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/rt') diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 250280f2..40976214 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++ -- cgit v1.2.3