File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
branches/try/src/libcore/unstable Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 2d28d645422c1617be58c8ca7ad9a457264ca850
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2d28d645422c1617be58c8ca7ad9a457264ca850
5
- refs/heads/try: f6401bad24d2fb1e1f959595c2f57cb4964e7082
5
+ refs/heads/try: cc2897d559742c5f7630557975aa72c12a0eff01
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -423,16 +423,14 @@ pub unsafe fn strdup_uniq(ptr: *c_uchar, len: uint) -> ~str {
423
423
#[ lang="start" ]
424
424
pub fn start ( main : * u8 , argc : int , argv : * * c_char ,
425
425
crate_map : * u8 ) -> int {
426
- use libc:: getenv;
427
426
use rt;
428
427
use sys:: Closure ;
429
428
use ptr;
430
429
use cast;
430
+ use os;
431
431
432
432
unsafe {
433
- let use_old_rt = do str:: as_c_str ( "RUST_NEWRT" ) |s| {
434
- getenv ( s) . is_null ( )
435
- } ;
433
+ let use_old_rt = os:: getenv ( "RUST_NEWRT" ) . is_none ( ) ;
436
434
if use_old_rt {
437
435
return rust_start ( main as * c_void , argc as c_int , argv,
438
436
crate_map as * c_void ) as int ;
You can’t perform that action at this time.
0 commit comments