about summary refs log tree commit diff
path: root/src/lib
AgeCommit message (Collapse)AuthorLines
2011-10-12[Fix] float.rs: str_to_float reimplementedDavid Rajchenbach-Teller-14/+177
2011-10-12[Optim] int.rs: reimplemented pow with fast exponentiationDavid Rajchenbach-Teller-10/+13
2011-10-11[Move] Moved str_to_float, float_to_str from compiler to libDavid Rajchenbach-Teller-0/+45
2011-10-10Adjust function signatures to allow for vecs being immediateMarijn Haverbeke-3/+3
Some code was relying on vectors being implicitly by-reference (as non-immediate value). This adds the necessary &&-sigils. Closes #1021
2011-10-10Make vectors and strings immediates againMarijn Haverbeke-4/+4
There's no good reason to force them to be spilled anymore. Some pieces of trans become more elegant this way, and less stack allocs and load/stores are needed. Issue #1021
2011-10-07Give up on providing a by-value version of map, convert fold over toMarijn Haverbeke-16/+0
passing pointers by ref Issue #1008
2011-10-07Parse and typecheck by-value and by-ref arg specsMarijn Haverbeke-13/+26
Add sprinkle && throughout the compiler to make it typecheck again. Issue #1008
2011-10-06Add std::str::containsBrian Anderson-1/+6
2011-10-05stdlib: Add a void typePatrick Walton-0/+5
2011-10-05Fix some path handling in std::fs on win32Brian Anderson-1/+14
2011-10-04Add std::os::get_exe_pathBrian Anderson-2/+53
Need this to correctly determine sysroot in rustc
2011-10-04Add std::ctypesBrian Anderson-0/+5
2011-10-04Add std::fs::normalizeBrian Anderson-0/+78
2011-10-04Add std::fs::splitBrian Anderson-0/+9
2011-10-04Revert "stdlib: Migrate rust_file_is_dir() over to the C stack, and add a ↵Patrick Walton-13/+3
void type" due to build bustage on Windows This reverts commit 9698ef89a0c5513b9670f6ec56ea06de5728eb5a.
2011-10-04stdlib: Migrate rust_file_is_dir() over to the C stack, and add a void typePatrick Walton-3/+13
2011-10-04rt: Switch the AIO stuff to the C stackPatrick Walton-1/+1
2011-09-29Reorganize structure of build directoryBrian Anderson-0/+10
Each stage is organized more according to Unix standards and to accommodate multiple target architectures. stageN/ bin - rustc lives here lib - libraries that rustc needs lib/rustc/$(target_triple/ - target libraries
2011-09-29stdlib: Un-export str::buf; add a commentPatrick Walton-2/+3
2011-09-29stdlib: Export str::bufPatrick Walton-1/+2
2011-09-29stdlib: Add vec::eachi to the standard libraryPatrick Walton-0/+10
2011-09-28Revert "Revert "Implement pattern ranges for all numeric types.""Brian Anderson-0/+23
This reverts commit a034f87146e60e1db2327c6f6807c47406a1bb0b. Conflicts: src/comp/middle/check_alt.rs src/comp/middle/trans_alt.rs src/comp/syntax/ast.rs src/comp/syntax/ast_util.rs src/comp/syntax/fold.rs src/comp/syntax/print/pprust.rs Conflicts: src/comp/middle/trans_alt.rs
2011-09-27Don't ever raise unique kinds of pinned kinds to shared (again)Brian Anderson-6/+6
So *resource, ~resource, [resource] are all pinned. This is counter to the design of the kind system, but this way is a much clearer path to type safety. Once we've established a good baseline with lots of tests, then we can try to make raising pinned kinds work.
2011-09-26Enforce copy restrictions on let initializersBrian Anderson-1/+1
2011-09-26stdlib: Fix typos in comments in lib/test.rsPatrick Walton-3/+3
2011-09-24Mark vec::len as pureJesse Ruderman-4/+2
2011-09-24Vectors containing pinned kinds become pinnedBrian Anderson-4/+4
Otherwise they could be copied
2011-09-23Add vec::filterJesse Ruderman-0/+11
2011-09-21Revert "Implement pattern ranges for all numeric types."Marijn Haverbeke-23/+0
This reverts commit ce0f054f9d56df4e60291fc2e1b89ce979cf374f.
2011-09-21Implement pattern ranges for all numeric types.Josh Matthews-0/+23
2011-09-16Revert "Revert "Make option::get return the option contents by reference" ↵Patrick Walton-2/+2
due to memory corruption" This reverts commit d1c27ba9e06e08e1dc27b493144e467d0efd526c.
2011-09-15Add unreachable() fn, also nitpickingTim Chevalier-7/+8
2011-09-15Begin sketching an ICU binding. Doesn't work yet.Graydon Hoare-0/+167
2011-09-15Revert "Make option::get return the option contents by reference" due to ↵Patrick Walton-2/+2
memory corruption This reverts commit fc0bf125168ec3df75bc57c250a62d3ea225a546.
2011-09-15Make option::get return the option contents by referenceMarijn Haverbeke-2/+2
I can't believe this actually works!
2011-09-15Insert omitted semicolons for statementsMarijn Haverbeke-4/+4
2011-09-12Factor imports mindlessly.Graydon Hoare-32/+14
2011-09-12Merge branch 'unwind'Brian Anderson-9/+41
Conflicts: src/comp/middle/trans.rs src/comp/middle/trans_build.rs src/lib/run_program.rs src/test/compiletest/runtest.rs
2011-09-12Pretty-print for new arg-mode syntaxMarijn Haverbeke-41/+39
2011-09-12Reformat for new mode syntax, step 1Marijn Haverbeke-341/+341
Long lines were fixed in a very crude way, as I'll be following up with another reformat in a bit.
2011-09-11Remove hack_allow_leaksBrian Anderson-7/+0
Happy to close the loop on this one. Issue #236
2011-09-11Add a waitpid wrapper to std::run that interprets the exit status on unixBrian Anderson-2/+41
This makes the result of running a program a little more uniform between unix and windows
2011-09-07Rewrite spawn yet againBrian Anderson-62/+15
The motivation here is that the bottom of each stack needs to contain a C++ try/catch block so that we can unwind. This is already the case for main, but not spawned tasks. Issue #236
2011-09-02Rename istr-stuff to str in the runtime. Issue #855Brian Anderson-3/+3
2011-09-02Reformat. Issue #855Brian Anderson-558/+454
2011-09-02Rename std::vec::unsafe::ivec_repr to vec_repr. Issue #855Brian Anderson-5/+5
2011-09-02Eliminate const_refcount. Issue #855Brian Anderson-3/+0
2011-09-02Remove estrs and evecs from runtime. Issue #855Brian Anderson-4/+0
2011-09-01Remove #ifmt. Issue #855Brian Anderson-430/+0
2011-09-01Convert all uses of #ifmt to #fmt. Issue #855Brian Anderson-8/+8