Skip to content

Commit d622dd9

Browse files
committed
---
yaml --- r: 16382 b: refs/heads/try c: 7c0fd85 h: refs/heads/master v: v3
1 parent 52607a3 commit d622dd9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+774
-505
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: c7c37debe4b7827234642df3c1ed378b7c3e1849
5+
refs/heads/try: 7c0fd858db331d2505ab15bc70e6c5947378f271
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/src/libcore/cmath.rs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,10 @@ native mod c_double {
4848
pure fn frexp(n: c_double, &value: c_int) -> c_double;
4949
pure fn hypot(x: c_double, y: c_double) -> c_double;
5050
pure fn ldexp(x: c_double, n: c_int) -> c_double;
51-
#[cfg(target_os = "linux")]
52-
#[cfg(target_os = "macos")]
53-
#[cfg(target_os = "freebsd")]
51+
#[cfg(unix)]
5452
#[link_name="lgamma_r"] pure fn lgamma(n: c_double,
5553
&sign: c_int) -> c_double;
56-
#[cfg(target_os = "win32")]
54+
#[cfg(windows)]
5755
#[link_name="__lgamma_r"] pure fn lgamma(n: c_double,
5856
&sign: c_int) -> c_double;
5957
// renamed: log is a reserved keyword; ln seems more natural, too
@@ -131,13 +129,11 @@ native mod c_float {
131129
#[link_name="hypotf"] pure fn hypot(x: c_float, y: c_float) -> c_float;
132130
#[link_name="ldexpf"] pure fn ldexp(x: c_float, n: c_int) -> c_float;
133131

134-
#[cfg(target_os="linux")]
135-
#[cfg(target_os="macos")]
136-
#[cfg(target_os="freebsd")]
132+
#[cfg(unix)]
137133
#[link_name="lgammaf_r"] pure fn lgamma(n: c_float,
138134
&sign: c_int) -> c_float;
139135

140-
#[cfg(target_os="win32")]
136+
#[cfg(windows)]
141137
#[link_name="__lgammaf_r"] pure fn lgamma(n: c_float,
142138
&sign: c_int) -> c_float;
143139

branches/try/src/libcore/comm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,15 +420,15 @@ fn test_recv_chan() {
420420

421421
#[test]
422422
#[should_fail]
423-
#[ignore(cfg(target_os = "win32"))]
423+
#[ignore(cfg(windows))]
424424
fn test_recv_chan_dead() {
425425
let ch = chan(port());
426426
send(ch, "flower");
427427
recv_chan(ch);
428428
}
429429

430430
#[test]
431-
#[ignore(cfg(target_os = "win32"))]
431+
#[ignore(cfg(windows))]
432432
fn test_recv_chan_wrong_task() {
433433
let po = port();
434434
let ch = chan(po);
@@ -464,7 +464,7 @@ fn test_listen() {
464464
}
465465

466466
#[test]
467-
#[ignore(cfg(target_os="win32"))]
467+
#[ignore(cfg(windows))]
468468
fn test_port_detach_fail() {
469469
iter::repeat(100u) {||
470470
let builder = task::builder();

branches/try/src/libcore/io.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,10 @@ fn fd_writer(fd: fd_t, cleanup: bool) -> writer {
398398
fn mk_file_writer(path: str, flags: [fileflag])
399399
-> result<writer, str> {
400400

401-
#[cfg(target_os = "win32")]
401+
#[cfg(windows)]
402402
fn wb() -> c_int { (O_WRONLY | O_BINARY) as c_int }
403403

404-
#[cfg(target_os = "linux")]
405-
#[cfg(target_os = "macos")]
406-
#[cfg(target_os = "freebsd")]
404+
#[cfg(unix)]
407405
fn wb() -> c_int { O_WRONLY as c_int }
408406

409407
let mut fflags: c_int = wb();

branches/try/src/libcore/iter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ fn test_min() {
229229
230230
#[test]
231231
#[should_fail]
232-
#[ignore(cfg(target_os = "win32"))]
232+
#[ignore(cfg(windows))]
233233
fn test_min_empty() {
234234
min::<int, [int]>([]);
235235
}
@@ -241,7 +241,7 @@ fn test_max() {
241241
242242
#[test]
243243
#[should_fail]
244-
#[ignore(cfg(target_os = "win32"))]
244+
#[ignore(cfg(windows))]
245245
fn test_max_empty() {
246246
max::<int, [int]>([]);
247247
}

0 commit comments

Comments
 (0)