aboutsummaryrefslogtreecommitdiff
path: root/src/lib/io.rs
Commit message (Collapse)AuthorAgeFilesLines
* stdlib: Use an unsafe cast to speed up the memory writerPatrick Walton2011-04-271-1/+11
|
* Remove effect system from src.Graydon Hoare2011-04-191-64/+64
|
* replace error logging with log_err in stdlib and rustcMarijn Haverbeke2011-04-191-10/+10
|
* Slight updates to match API drift in io, lib-io.rs passes.Graydon Hoare2011-04-131-1/+1
|
* Make lexer buffer the whole fileMarijn Haverbeke2011-04-091-0/+8
| | | | | This way, it won't have to go through a bunch of calls for each byte fetched.
* Re-add a read_byte() method to buf_reader objsMarijn Haverbeke2011-04-081-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.)
* rustc: Use the crate index to look up defsPatrick Walton2011-03-311-0/+11
|
* stdlib: Add a write_be_uint() function to writersPatrick Walton2011-03-311-0/+14
|
* rustc: Look up names in "use"d cratesPatrick Walton2011-03-251-0/+9
|
* stdlib: Implement a memory buffer reader, untested at the momentPatrick Walton2011-03-251-22/+61
|
* stdlib: Separate basic I/O reading functionality into a separate buf_reader ↵Patrick Walton2011-03-251-24/+81
| | | | object, like writing
* Start making the standard-lib utf-8 awareMarijn Haverbeke2011-03-251-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.
* stdlib: Provide a function to extract the underlying buf_writer from a writerPatrick Walton2011-03-221-0/+9
|
* stdlib: Add a convenience method for opening paths as a FILEPatrick Walton2011-03-221-0/+10
|
* stdlib: Make writers seekable; switch file writers to the C FILE interface ↵Patrick Walton2011-03-221-12/+87
| | | | to make this work
* Add a binding to ftell()Patrick Walton2011-03-211-0/+4
|
* Add slightly nicer failure message to io.rs when it can't open a file.Graydon Hoare2011-03-201-1/+4
|
* Remove uses of 'break' in std lib; rustc doesn't support it yet, this is ↵Graydon Hoare2011-03-161-2/+3
| | | | easier for now.
* Add functionality for running external programs to the std libMarijn Haverbeke2011-03-141-1/+18
| | | | See lib/run_program.rs.
* Extend stream functionalityMarijn Haverbeke2011-03-141-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.
* Add basic file-system functionalityMarijn Haverbeke2011-03-141-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.
* Remove redundant imports in lib (rustc doesn't like 'std' as a synonym for ↵Graydon Hoare2011-03-091-4/+1
| | | | root within std.rc anyway)
* Have the pretty-printer take a writer stream as argumentMarijn Haverbeke2011-03-091-21/+22
| | | | | It now uses a string writer to also fill in for middle.ty.ast_ty_to_str
* Add stdout_writer and string_writer to std.ioMarijn Haverbeke2011-03-091-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.
* Add a pretty-printerMarijn Haverbeke2011-03-071-13/+17
| | | | | Adds a -pp option to the compiler which will cause it to simply pretty-print the given file.
* Change io.fileflag to a tag type. Remove FIXMEBrian Anderson2011-03-061-19/+8
|
* Rename std._io to std.io since 'io' is no longer a keywordBrian Anderson2011-02-221-0/+183