Skip to content

Commit 979d1d5

Browse files
committed
---
yaml --- r: 85943 b: refs/heads/dist-snap c: 698873e h: refs/heads/master i: 85941: 6ac59b3 85939: b667b03 85935: 1756b92 v: v3
1 parent 3f40a3c commit 979d1d5

File tree

16 files changed

+51
-42
lines changed

16 files changed

+51
-42
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 0983ebe5310d4eb6d289f636f7ed0536c08bbc0e
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: 31fa86511c0b7ccfc3d9977730593d0fd442f6fe
9+
refs/heads/dist-snap: 698873e3a829d764b451f657178403c704044721
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/mk/rt.mk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,17 @@ LIBUV_MAKEFILE_$(1)_$(2) := $$(CFG_BUILD_DIR)rt/$(1)/stage$(2)/libuv/Makefile
173173
LIBUV_NO_LOAD = run-benchmarks.target.mk run-tests.target.mk \
174174
uv_dtrace_header.target.mk uv_dtrace_provider.target.mk
175175

176+
ifeq ($(OSTYPE_$(1)), linux-androideabi)
177+
$$(LIBUV_MAKEFILE_$(1)_$(2)): $$(LIBUV_GYP)
178+
(cd $(S)src/libuv/ && \
179+
$$(CFG_PYTHON) ./gyp_uv -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) -D ninja -DOS=android \
180+
-Goutput_dir=$$(@D) --generator-output $$(@D))
181+
else
176182
$$(LIBUV_MAKEFILE_$(1)_$(2)): $$(LIBUV_GYP)
177183
(cd $(S)src/libuv/ && \
178184
$$(CFG_PYTHON) ./gyp_uv -f make -Dtarget_arch=$$(LIBUV_ARCH_$(1)) -D ninja \
179185
-Goutput_dir=$$(@D) --generator-output $$(@D))
186+
endif
180187

181188
# XXX: Shouldn't need platform-specific conditions here
182189
ifdef CFG_WINDOWSY_$(1)
@@ -194,8 +201,10 @@ $$(LIBUV_LIB_$(1)_$(2)): $$(LIBUV_DEPS) $$(LIBUV_MAKEFILE_$(1)_$(2))
194201
LDFLAGS="$$(CFG_GCCISH_LINK_FLAGS) $$(LIBUV_FLAGS_$$(HOST_$(1)))" \
195202
CC="$$(CC_$(1))" \
196203
CXX="$$(CXX_$(1))" \
204+
LINK="$$(CXX_$(1))" \
197205
AR="$$(AR_$(1))" \
198206
host=android OS=linux \
207+
PLATFORM=android \
199208
builddir="." \
200209
BUILDTYPE=Release \
201210
NO_LOAD="$$(LIBUV_NO_LOAD)" \

branches/dist-snap/src/libextra/json.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -1164,6 +1164,9 @@ impl Ord for Json {
11641164
}
11651165
}
11661166
}
1167+
fn le(&self, other: &Json) -> bool { !(*other).lt(&(*self)) }
1168+
fn ge(&self, other: &Json) -> bool { !(*self).lt(other) }
1169+
fn gt(&self, other: &Json) -> bool { (*other).lt(&(*self)) }
11671170
}
11681171

11691172
/// A trait for converting values to JSON

branches/dist-snap/src/libextra/num/rational.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ macro_rules! cmp_impl {
107107
}
108108
cmp_impl!(impl Eq, eq, ne)
109109
cmp_impl!(impl TotalEq, equals)
110-
cmp_impl!(impl Ord, lt)
110+
cmp_impl!(impl Ord, lt, gt, le, ge)
111111
cmp_impl!(impl TotalOrd, cmp -> cmp::Ordering)
112112

113113
impl<T: Clone + Integer + Ord> Orderable for Ratio<T> {

branches/dist-snap/src/libextra/semver.rs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -37,6 +37,18 @@ impl cmp::Ord for Identifier {
3737
(&AlphaNumeric(_), _) => false
3838
}
3939
}
40+
#[inline]
41+
fn le(&self, other: &Identifier) -> bool {
42+
! (other < self)
43+
}
44+
#[inline]
45+
fn gt(&self, other: &Identifier) -> bool {
46+
other < self
47+
}
48+
#[inline]
49+
fn ge(&self, other: &Identifier) -> bool {
50+
! (self < other)
51+
}
4052
}
4153

4254
impl ToStr for Identifier {

branches/dist-snap/src/libstd/iter.rs

Lines changed: 0 additions & 26 deletions
This file was deleted.

branches/dist-snap/src/libstd/num/num.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,19 @@ pub trait Signed: Num
8080

8181
pub trait Unsigned: Num {}
8282

83+
/// Times trait
84+
///
85+
/// ~~~ {.rust}
86+
/// use num::Times;
87+
/// let ten = 10 as uint;
88+
/// let mut accum = 0;
89+
/// do ten.times { accum += 1; }
90+
/// ~~~
91+
///
92+
pub trait Times {
93+
fn times(&self, it: &fn());
94+
}
95+
8396
pub trait Integer: Num
8497
+ Orderable
8598
+ Div<Self,Self>

branches/dist-snap/src/libstd/num/uint.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
//! Operations and constants for `uint`
1212
13-
use iter;
13+
use num;
1414
use sys;
1515

1616
pub use self::generated::*;
@@ -70,7 +70,7 @@ pub fn div_round(x: uint, y: uint) -> uint {
7070
///
7171
pub fn div_floor(x: uint, y: uint) -> uint { return x / y; }
7272

73-
impl iter::Times for uint {
73+
impl num::Times for uint {
7474
#[inline]
7575
///
7676
/// A convenience form for basic repetition. Given a uint `x`,
@@ -162,7 +162,7 @@ fn test_div() {
162162

163163
#[test]
164164
pub fn test_times() {
165-
use iter::Times;
165+
use num::Times;
166166
let ten = 10 as uint;
167167
let mut accum = 0;
168168
do ten.times { accum += 1; }

branches/dist-snap/src/libstd/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub use cmp::{Eq, ApproxEq, Ord, TotalEq, TotalOrd, Ordering, Less, Equal, Great
4949
pub use char::Char;
5050
pub use container::{Container, Mutable, Map, MutableMap, Set, MutableSet};
5151
pub use hash::Hash;
52-
pub use iter::Times;
52+
pub use num::Times;
5353
pub use iterator::{FromIterator, Extendable};
5454
pub use iterator::{Iterator, DoubleEndedIterator, RandomAccessIterator, ClonableIterator};
5555
pub use iterator::{OrdIterator, MutableDoubleEndedIterator};

branches/dist-snap/src/libstd/rt/comm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ mod test {
718718
use option::*;
719719
use rt::test::*;
720720
use cell::Cell;
721-
use iter::Times;
721+
use num::Times;
722722
use rt::util;
723723

724724
#[test]

branches/dist-snap/src/libstd/rt/sched.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ mod test {
11141114
#[test]
11151115
fn multithreading() {
11161116
use rt::comm::*;
1117-
use iter::Times;
1117+
use num::Times;
11181118
use vec::OwnedVector;
11191119
use container::Container;
11201120

branches/dist-snap/src/libstd/select.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ pub fn select2<TA, A: SelectPort<TA>, TB, B: SelectPort<TB>>(mut a: A, mut b: B)
126126
mod test {
127127
use super::*;
128128
use clone::Clone;
129-
use iter::Times;
129+
use num::Times;
130130
use option::*;
131131
use rt::comm::*;
132132
use rt::test::*;

branches/dist-snap/src/libstd/std.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ pub mod borrow;
140140
pub mod from_str;
141141
#[path = "num/num.rs"]
142142
pub mod num;
143-
pub mod iter;
144143
pub mod iterator;
145144
pub mod to_str;
146145
pub mod to_bytes;
@@ -220,4 +219,3 @@ mod std {
220219
pub use fmt;
221220
pub use to_bytes;
222221
}
223-

branches/dist-snap/src/libstd/str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ use char;
2121
use char::Char;
2222
use clone::{Clone, DeepClone};
2323
use container::{Container, Mutable};
24-
use iter::Times;
24+
use num::Times;
2525
use iterator::{Iterator, FromIterator, Extendable};
2626
use iterator::{Filter, AdditiveIterator, Map};
2727
use iterator::{Invert, DoubleEndedIterator};

branches/dist-snap/src/libuv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit ef2bcd134164adcaa072dcb56e62b737fdcb075e
1+
Subproject commit d88cf5652a1afb23939da0bae86c70ec521b9921

branches/dist-snap/src/llvm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit 0964c68ddf2c67ce455e7443a06f4bb3db9e92bb
1+
Subproject commit 08a3bd96ee6e1d141494f0014ede75d9871114c4

0 commit comments

Comments
 (0)