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

@ -68,7 +68,7 @@ impure fn pretty_print_input(session.session sess,
auto def = tup(0, 0);
auto p = front.parser.new_parser(sess, env, def, input);
auto crate = front.parser.parse_crate_from_source_file(p);
pretty.pprust.print_ast(crate.node.module, std.io.stdout_writer());
pretty.pprust.print_ast(crate.node.module, std.io.stdout());
}
fn warn_wrong_compiler() {