- 03 4月, 2013 16 次提交
-
-
由 Daniel Micay 提交于
-
由 bors 提交于
As per https://github.com/mozilla/rust/wiki/Note-wanted-libraries. Iterates over lines in a series of files, e.g. a basic `cat` ```rust use std::fileinput; fn main() { for fileinput::input |line| { io::println(line); } } ``` The API is essentially a subset of [Python's fileinput module](http://docs.python.org/3.3/library/fileinput.html), although the lack of default arguments and global mutable state means that there are extra functions to handle a few different cases (files from command line arguments, files from a vector, accessing current filename/line number). A few points that possibly require adjustment: - Most functions take vectors of `Path` (well, `Option<Path>`) rather than just `~str`, since this seems safer, and allows finer control without the number of different functions/methods increasing exponentially. - `pathify` has a stupid name. - I'm not quite sure how to mock tests that require external files: the tests in `libcore/io.rs` seem to indicate using a `tmp` subdirectory, so that's what I did, but I can't reliably build rust on this computer to test (sorry! although I have run the tests in just `fileinput.rs` after creating `./tmp/` manually). - The documentation I've written seems pretty crappy and not particularly clear. - Only UTF8 files are supported.
-
由 bors 提交于
I filled out better descriptions for all of the necessary functions. r?
-
由 bors 提交于
When I submitted #5659, it apparently caused some test failures. Then, because I left it in my incoming rather than making a new branch, I deleted my commit. Let's try this again, this time, with its own branch so that I don't screw it up. r?
-
由 Huon Wilson 提交于
-
由 bors 提交于
-
由 Huon Wilson 提交于
-
由 Huon Wilson 提交于
Iterate over lines in a series of files. API (mostly) adopted from Python's fileinput module.
-
由 Steve Klabnik 提交于
-
由 Steve Klabnik 提交于
-
由 Daniel Micay 提交于
-
由 bors 提交于
This pull request completely removes Mut<T> and the associated file (libcore/mutable.rs). Some minor changes were made to workcache (libstd/workcache.rs) as it was using Mut. r?
-
由 Matthijs Hofstra 提交于
-
由 Matthijs Hofstra 提交于
-
由 Matthijs Hofstra 提交于
-
由 Graydon Hoare 提交于
-
- 02 4月, 2013 13 次提交
-
-
由 Steve Klabnik 提交于
-
由 Steve Klabnik 提交于
I filled out better descriptions for all of the neccesary functions.
-
由 bors 提交于
Just some minor cleanup of version strings and copyrights.
-
由 bors 提交于
It seems nobody can figure out whether this is _supposed to_ make a difference anymore, and in testing it seems to work either way, so I removed it. One less alarming warning during a fresh build.
-
由 Steve Klabnik 提交于
-
由 Graydon Hoare 提交于
-
由 bors 提交于
r? @brson
-
由 Tim Chevalier 提交于
-
由 bors 提交于
-
由 Brian Anderson 提交于
-
由 Brian Anderson 提交于
-
由 Graydon Hoare 提交于
-
由 Tim Chevalier 提交于
-
- 01 4月, 2013 11 次提交
-
-
由 bors 提交于
Turns out @ isn't valid for the ARM assembler.
-
由 Daniel Micay 提交于
-
由 bors 提交于
-
由 Brian Anderson 提交于
-
由 bors 提交于
Change fn() -> &fn().
-
由 Luqman Aden 提交于
Change fn() -> &fn().
-
由 bors 提交于
There's no reason to make them executable, and this throws a warning with the Arch Linux package lint tool (namcap) for .a files.
-
由 bors 提交于
Closes #5643
-
由 Daniel Micay 提交于
There's no reason to make them executable, and this throws a warning with the Arch Linux package lint tool (namcap) for .a files.
-
由 bors 提交于
Fix typo and add fixed length vec changes.
-
由 Daniel Micay 提交于
Closes #5643 This also removes the need to pass noexecstack to gcc, but that wasn't actually working anymore.
-