about summary refs log tree commit diff
path: root/src/lib/io.rs
AgeCommit message (Collapse)AuthorLines
2011-05-20stdlib: Add io::writer.write_lineBrian Anderson-0/+5
2011-05-17Finally rename std::_xxx to std::xxxMarijn Haverbeke-33/+33
Except for _task, which is still a keyword.
2011-05-16Rewrite everything to use [] instead of vec() in value position.Graydon Hoare-9/+9
2011-05-12Downcase std modules again, move to :: for module dereferencingMarijn Haverbeke-0/+531
This should be a snapshot transition.
2011-05-06Rename std modules to be camelcasedMarijn Haverbeke-531/+0
(Have fun mergining your stuff with this.)
2011-05-05Remove 'deprecated mutable...' from our codeMarijn Haverbeke-4/+4
This should make compilation a bit less noisy.
2011-05-02Un-revert "Use different syntax for checks that matter to typestate", fixing ↵Patrick Walton-5/+5
the problem. This reverts commit d08b443fffb1181d8d45ae5d061412f202dd4118.
2011-05-02Revert "Use different syntax for checks that matter to typestate"Graydon Hoare-5/+5
This reverts commit aa25f22f197682de3b18fc4c8ba068d1feda220f. It broke stage2, not sure why yet.
2011-05-02Use different syntax for checks that matter to typestateTim Chevalier-5/+5
This giant commit changes the syntax of Rust to use "assert" for "check" expressions that didn't mean anything to the typestate system, and continue using "check" for checks that are used as part of typestate checking. Most of the changes are just replacing "check" with "assert" in test cases and rustc.
2011-04-27stdlib: Use an unsafe cast to speed up the memory writerPatrick Walton-1/+11
2011-04-19Remove effect system from src.Graydon Hoare-64/+64
2011-04-19replace error logging with log_err in stdlib and rustcMarijn Haverbeke-10/+10
2011-04-13Slight updates to match API drift in io, lib-io.rs passes.Graydon Hoare-1/+1
2011-04-09Make lexer buffer the whole fileMarijn Haverbeke-0/+8
This way, it won't have to go through a bunch of calls for each byte fetched.
2011-04-08Re-add a read_byte() method to buf_reader objsMarijn Haverbeke-20/+18
This was removed because of the repetition, but doing single-byte reads in terms of read_bytes (which allocates a vec) is needlessly slow. This change speeds up parsing by 22%. (Eventually, we won't be able to escape handling the buffering in the stdlib itself.)
2011-03-31rustc: Use the crate index to look up defsPatrick Walton-0/+11
2011-03-31stdlib: Add a write_be_uint() function to writersPatrick Walton-0/+14
2011-03-25rustc: Look up names in "use"d cratesPatrick Walton-0/+9
2011-03-25stdlib: Implement a memory buffer reader, untested at the momentPatrick Walton-22/+61
2011-03-25stdlib: Separate basic I/O reading functionality into a separate buf_reader ↵Patrick Walton-24/+81
object, like writing
2011-03-25Start making the standard-lib utf-8 awareMarijn Haverbeke-34/+57
Finally implements _str.is_utf8, adds from_chars, from_char, to_chars, char_at, char_len, (push|pop|shift|unshift)_char. Also, proper character I/O for streams.
2011-03-22stdlib: Provide a function to extract the underlying buf_writer from a writerPatrick Walton-0/+9
2011-03-22stdlib: Add a convenience method for opening paths as a FILEPatrick Walton-0/+10
2011-03-22stdlib: Make writers seekable; switch file writers to the C FILE interface ↵Patrick Walton-12/+87
to make this work
2011-03-21Add a binding to ftell()Patrick Walton-0/+4
2011-03-20Add slightly nicer failure message to io.rs when it can't open a file.Graydon Hoare-1/+4
2011-03-16Remove uses of 'break' in std lib; rustc doesn't support it yet, this is ↵Graydon Hoare-2/+3
easier for now.
2011-03-14Add functionality for running external programs to the std libMarijn Haverbeke-1/+18
See lib/run_program.rs.
2011-03-14Extend stream functionalityMarijn Haverbeke-81/+123
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.
2011-03-14Add basic file-system functionalityMarijn Haverbeke-0/+2
std.fs.list_dir will list the files in a directory, std.fs.file_is_dir will, given a pathname, determine whether it is a directory or not.
2011-03-09Remove redundant imports in lib (rustc doesn't like 'std' as a synonym for ↵Graydon Hoare-4/+1
root within std.rc anyway)
2011-03-09Have the pretty-printer take a writer stream as argumentMarijn Haverbeke-21/+22
It now uses a string writer to also fill in for middle.ty.ast_ty_to_str
2011-03-09Add stdout_writer and string_writer to std.ioMarijn Haverbeke-23/+48
For use by pretty-printer. string_writer API is a bit silly right now, feel free to suggest a cleaner way to do this.
2011-03-07Add a pretty-printerMarijn Haverbeke-13/+17
Adds a -pp option to the compiler which will cause it to simply pretty-print the given file.
2011-03-06Change io.fileflag to a tag type. Remove FIXMEBrian Anderson-19/+8
2011-02-22Rename std._io to std.io since 'io' is no longer a keywordBrian Anderson-0/+183