about summary refs log tree commit diff
path: root/src/libextra/terminfo
AgeCommit message (Collapse)AuthorLines
2014-02-02Move term, terminfo out of extra.xales-1178/+0
cc #8784
2014-01-21[std::str] Rename from_utf8_owned_opt() to from_utf8_owned(), drop the old ↵Simon Sapin-1/+1
from_utf8_owned() behavior
2014-01-21[std::vec] Rename .pop_opt() to .pop(), drop the old .pop() behaviorSimon Sapin-22/+22
2014-01-21Remove unnecessary parentheses.Huon Wilson-1/+1
2014-01-03libextra: Remove unnecessary `@mut`sPatrick Walton-5/+9
2013-12-21Remove unnecessary semicolonJan Niklas Hasse-1/+1
2013-12-20Support ANSI colors in msys terminals. See #2807Jan Niklas Hasse-0/+15
2013-12-04Revert "libstd: Change `Path::new` to `Path::init`."Kevin Ballard-5/+5
This reverts commit c54427ddfbbab41a39d14f2b1dc4f080cbc2d41b. Leave the #[ignores] in that were added to rustpkg tests. Conflicts: src/librustc/driver/driver.rs src/librustc/metadata/creader.rs
2013-12-04std::str: remove from_utf8.Huon Wilson-1/+3
This function had type &[u8] -> ~str, i.e. it allocates a string internally, even though the non-allocating version that take &[u8] -> &str and ~[u8] -> ~str are all that is necessary in most circumstances.
2013-11-29libstd: Change `Path::new` to `Path::init`.Patrick Walton-5/+5
2013-11-26librustuv: Remove all non-`proc` uses of `do` from `libextra` andPatrick Walton-4/+4
`librustuv`.
2013-11-26Removed unneccessary `_iter` suffixes from various APIsMarvin Löbel-2/+2
2013-11-11Move std::rt::io to std::ioAlex Crichton-3/+3
2013-11-04Move io::file to io::fs and fns out of FileAlex Crichton-1/+1
This renames the `file` module to `fs` because that more accurately describes its current purpose (manipulating the filesystem, not just files). Additionally, this adds an UnstableFileStat structure as a nested structure of FileStat to signify that the fields should not be depended on. The structure is currently flagged with #[unstable], but it's unlikely that it has much meaning. Closes #10241
2013-11-03Fill out the remaining functionality in io::fileAlex Crichton-2/+2
This adds bindings to the remaining functions provided by libuv, all of which are useful operations on files which need to get exposed somehow. Some highlights: * Dropped `FileReader` and `FileWriter` and `FileStream` for one `File` type * Moved all file-related methods to be static methods under `File` * All directory related methods are still top-level functions * Created `io::FilePermission` types (backed by u32) that are what you'd expect * Created `io::FileType` and refactored `FileStat` to use FileType and FilePermission * Removed the expanding matrix of `FileMode` operations. The mode of reading a file will not have the O_CREAT flag, but a write mode will always have the O_CREAT flag. Closes #10130 Closes #10131 Closes #10121
2013-11-03Remove all blocking std::os blocking functionsAlex Crichton-5/+5
This commit moves all thread-blocking I/O functions from the std::os module. Their replacements can be found in either std::rt::io::file or in a hidden "old_os" module inside of native::file. I didn't want to outright delete these functions because they have a lot of special casing learned over time for each OS/platform, and I imagine that these will someday get integrated into a blocking implementation of IoFactory. For now, they're moved to a private module to prevent bitrot and still have tests to ensure that they work. I've also expanded the extensions to a few more methods defined on Path, most of which were previously defined in std::os but now have non-thread-blocking implementations as part of using the current IoFactory. The api of io::file is in flux, but I plan on changing it in the next commit as well. Closes #10057
2013-11-03Rename files to match current recommendations.Chris Morgan-0/+0
New standards have arisen in recent months, mostly for the use of rustpkg, but the main Rust codebase has not been altered to match these new specifications. This changeset rectifies most of these issues. - Renamed the crate source files `src/libX/X.rs` to `lib.rs`, for consistency with current styles; this affects extra, rustc, rustdoc, rustpkg, rustuv, std, syntax. - Renamed `X/X.rs` to `X/mod.rs,` as is now recommended style, for `std::num` and `std::terminfo`. - Shifted `src/libstd/str/ascii.rs` out of the otherwise unused `str` directory, to be consistent with its import path of `std::ascii`; libstd is flat at present so it's more appropriate thus. While this removes some `#[path = "..."]` directives, it does not remove all of them, and leaves certain other inconsistencies, such as `std::u8` et al. which are actually stored in `src/libstd/num/` (one subdirectory down). No quorum has been reached on this issue, so I felt it best to leave them all alone at present. #9208 deals with the possibility of making libstd more hierarchical (such as changing the crate to match the current filesystem structure, which would make the module path `std::num::u8`). There is one thing remaining in which this repository is not rustpkg-compliant: rustpkg would have `src/std/` et al. rather than `src/libstd/` et al. I have not endeavoured to change that at this point as it would guarantee prompt bitrot and confusion. A change of that magnitude needs to be discussed first.
2013-10-28Remove the extension traits for Readers/WritersAlex Crichton-10/+9
These methods are all excellent candidates for default methods, so there's no need to require extra imports of various traits.
2013-10-24Remove std::io once and for all!Alex Crichton-14/+17
2013-10-23Removed Unnecessary comments and white spaces #4386reedlepee-2/+0
2013-10-23Making fields in std and extra : private #4386reedlepee-4/+6
2013-10-22Drop the '2' suffix from logging macrosAlex Crichton-18/+18
Who doesn't like a massive renaming?
2013-10-16auto merge of #9833 : alexcrichton/rust/fixes, r=brsonbors-0/+2
Commits have all the fun details
2013-10-15Require module documentation with missing_docAlex Crichton-0/+2
Closes #9824
2013-10-15path2: Adjust the API to remove all the _str mutation methodsKevin Ballard-8/+8
Add a new trait BytesContainer that is implemented for both byte vectors and strings. Convert Path::from_vec and ::from_str to one function, Path::new(). Remove all the _str-suffixed mutation methods (push, join, with_*, set_*) and modify the non-suffixed versions to use BytesContainer.
2013-10-15path2: Replace the path module outrightKevin Ballard-17/+25
Remove the old path. Rename path2 to path. Update all clients for the new path. Also make some miscellaneous changes to the Path APIs to help the adoption process.
2013-10-02auto merge of #9675 : sfackler/rust/lint, r=alexcrichtonbors-0/+1
Closes #9671
2013-10-02Check enums in missing_doc lintSteven Fackler-0/+1
Closes #9671
2013-10-01Migrate users of 'loop' to 'continue'Alex Crichton-2/+2
Closes #9467
2013-09-30extra: Remove usage of fmt!Alex Crichton-31/+32
2013-09-19Replace unreachable() calls with unreachable!().Chris Morgan-3/+3
This is the second of two parts of #8991, now possible as a new snapshot has been made. (The first part implemented the unreachable!() macro; it was #8992, 6b7b8f2682.) ``std::util::unreachable()`` is removed summarily; any code which used it should now use the ``unreachable!()`` macro. Closes #9312. Closes #8991.
2013-09-05Rename str::from_bytes to str::from_utf8, closes #8985Florian Hahn-1/+1
2013-09-04stop treating char as an integer typeDaniel Micay-5/+5
Closes #7609
2013-08-12fix build with the new snapshot compilerDaniel Micay-97/+0
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-2/+2
cc #5898
2013-08-10std: merge Iterator and IteratorUtilErick Tryzelaar-1/+0
2013-08-08Merge remote-tracking branch 'remotes/origin/master' into ↵Erick Tryzelaar-7/+7
remove-str-trailing-nulls
2013-08-07Forbid `priv` where it has no effectAlex Crichton-6/+6
This is everywhere except struct fields and enum variants.
2013-08-04Merge remote-tracking branch 'remotes/origin/master' into str-remove-nullErick Tryzelaar-11/+11
2013-08-04Remove trailing null from stringsErick Tryzelaar-2/+98
2013-08-03remove obsolete `foreach` keywordDaniel Micay-11/+11
this has been replaced by `for`
2013-08-02replace `range` with an external iteratorDaniel Micay-4/+4
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-8/+8
2013-07-23std: rename str.as_bytes_with_null_consume to str.to_bytes_with_nullErick Tryzelaar-1/+1
2013-07-17librustc: Change repeated vector expressions to use implicit copyability.Patrick Walton-2/+22
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-6/+7
2013-07-08extra: Patch up code that was using irrefutable patterns incorrectly.Niko Matsakis-2/+2
2013-07-07remove some method resolve workaroundsDaniel Micay-1/+1
2013-07-01rustc: add a lint to enforce uppercase statics.Huon Wilson-0/+2
2013-06-30auto merge of #7487 : huonw/rust/vec-kill, r=cmrbors-4/+5
Continuation of #7430. I haven't removed the `map` method, since the replacement `v.iter().transform(f).collect::<~[SomeType]>()` is a little ridiculous at the moment.