about summary refs log tree commit diff
path: root/src/lib
AgeCommit message (Collapse)AuthorLines
2011-12-06Establish 'core' library separate from 'std'.Graydon Hoare-12758/+0
2011-12-02parse: typeck: enabling trivial casts of tail-call return valuesStefan Plantikow-33/+46
introduces ctypes::m_* machine type aliases for int, uint, float depending on cfg(target_arch) that are used in tests
2011-12-02stdlib: Actually write the word 'fail' instead of just thinking itBrian Anderson-0/+1
2011-12-02stdlib: Add issue number to win32 fsync FIXMEBrian Anderson-1/+1
2011-12-02stdlib: Win32 fsync is just failBrian Anderson-3/+1
No fsync function on windows. Needs custom implementation.
2011-12-02Added cross-platform fsync api to io; win32 impl needs to be refinedStefan Plantikow-13/+147
No tests, need mktmpfile first
2011-12-01fix name of SetCurrentDirectoryNiko Matsakis-2/+2
2011-12-01libstd: add fs::change_dir()Elly Jones-0/+18
2011-12-01stdlib: Implement some preliminary libuv bindingsBrian Anderson-1/+156
std::uv is intended to be low-level, exactly mirroring the C API. Difficult to continue the implementation now without scheduler improvements.
2011-11-30Fix typo in stdlib docs.Lindsey Kuper-1/+1
2011-11-28c_vec: Remove the mutable cast be forcing the pointer to be mutable ↵Joshua Wise-6/+7
throughout (discussion in #1217).
2011-11-28Add c_vec library to std.Joshua Wise-1/+100
2011-11-28ptr: Add mut_offset, to be able to calculate an offset on mutable pointers.Joshua Wise-0/+10
2011-11-24std: math: renaming and documentation fixesStefan Plantikow-7/+33
2011-11-24std: factored f32 and f64 out from mathStefan Plantikow-75/+285
2011-11-24std: added missing calls to math; covers C95 completely now, includes testsStefan Plantikow-22/+111
2011-11-24std: math now declares libm dependencies as pureStefan Plantikow-60/+60
2011-11-24std: rewrote math to support most C95 libmath calls on f32, f64 and floatStefan Plantikow-58/+299
2011-11-24rustc: Add a path attribute for crate directivesHaitao Li-7/+14
The path information was an optional "filename" component of crate directive AST. It is now replaced by an attribute with metadata named "path". With this commit, a directive mod foo = "foo.rs"; should be written as: #[path = "foo.rs"] mod foo; Closes issue #906.
2011-11-23Rollback return-by-referenceMarijn Haverbeke-1/+1
It's proving too inflexible, so I'm ripping out the extra complexity in the hope that regions will, at some point, provide something similar. Closes #918
2011-11-23Remove last traces of auth keywordMarijn Haverbeke-19/+0
The reference now has an empty hole where the auth keyword used to be. Changing the keyword table seems to require manually sorting the keywords and putting them back into some kind of arcane interleaved order. I'll open an issue to actually fix this. Closes #1211
2011-11-22stdlib: Use c_ints instead of ints for nativesBrian Anderson-9/+9
2011-11-22stdlib: Fix some busted macos libc declsBrian Anderson-6/+6
2011-11-22stdlib: win32 fixes for dir handlingBrian Anderson-6/+7
2011-11-22Add fs::rmdir() and tempfile/gen_str() tests.Elly Jones-1/+24
2011-11-22once more with feeling...Elly Jones-2/+1
2011-11-22Use type inference!Elly Jones-1/+1
2011-11-22Fix long linesElly Jones-2/+5
2011-11-22std: add fs::mkdir(), rng.gen_str(), tempfile::mkdtemp()Elly Jones-5/+78
Signed-off-by: Elly Jones <elly@leptoquark.net>
2011-11-21Fixed documentation comment glitches in the logic ADTsStefan Plantikow-5/+5
2011-11-21stdlib: added (2,3,4)-valued logic ADTsStefan Plantikow-2/+556
This is useful for writing caches and perhaps in typestate predicates. It also adds a companion module for bool with from_str, to_str, ... fns.
2011-11-21std: declared fns in math to be pure; requires calling libc via unsafeStefan Plantikow-14/+14
2011-11-21Added logarithm functions for floats to std::mathStefan Plantikow-0/+42
Thanks to marijn for helping with #[link_name]
2011-11-21Separate vec::map and vec::map_mutMarijn Haverbeke-1/+13
The safe-reference checker requires a copy of each mapped-over element only when the vector is mutable. Let's not pay that cost for immutable vectors.
2011-11-18rt: Remove some stack-wasting macros from rust_task::yieldBrian Anderson-0/+1
2011-11-18rt: Remove fail calls from rust_task::yieldBrian Anderson-7/+7
2011-11-18rt: Remove unblock call from rust_task::yieldBrian Anderson-5/+15
2011-11-18intrinsics: Eliminate recv intrinsicBrian Anderson-3/+27
This intrinsic existed just to get ahold of the return pointer. I replaced it with a call_with_retptr intrinsic that grabs the return pointer and passes it to another Rust function, thereby eliminating the need to call C functions on the Rust stack.
2011-11-18intrinsics: Remove the call to get_task from task_sleepBrian Anderson-2/+6
2011-11-18intrinsics: Move the call to upcall_fail out of rust_intrinsic_castBrian Anderson-1/+8
2011-11-18rt: Remove size_of and align_of functions. Now written in RustBrian Anderson-6/+4
2011-11-18stdlib: Add some useful fields to the definition of type_descBrian Anderson-3/+6
2011-11-18Update stdlib, compiler, and tests to new kind systemMarijn Haverbeke-146/+140
This involved adding 'copy' to more generics than I hoped, but an experiment with making it implicit showed that that way lies madness -- unless enforced, you will not remember to mark functions that don't copy as not requiring copyable kind. Issue #1177
2011-11-18Implement a last-use-of-local finding algorithmMarijn Haverbeke-2/+19
Issue #925
2011-11-17remove compile-command from local variable blocksNiko Matsakis-32/+0
2011-11-16Disconnect ports before draining them. Issue #1155Brian Anderson-0/+4
2011-11-16fix minor merge errorsNiko Matsakis-13/+15
2011-11-16correct signed-ness and long lineNiko Matsakis-1/+1
2011-11-16missed mergesNiko Matsakis-5/+0
2011-11-16fix win32 types, make close() use i32 as return typeNiko Matsakis-53/+54