Skip to content

Commit 290a347

Browse files
committed
---
yaml --- r: 81908 b: refs/heads/master c: d96dfc9 h: refs/heads/master v: v3
1 parent 9d2eb6a commit 290a347

File tree

123 files changed

+1107
-7110
lines changed

Some content is hidden

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

123 files changed

+1107
-7110
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3165ddeb408cb4caf42fb48954dce4a82e3b4200
2+
refs/heads/master: d96dfc9a59db75323536916e78befea69e85d5ae
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6c08cc2db4f98e9f07ae7d50338396c4123c2f0a
55
refs/heads/try: 70152ff55722878cde684ee6462c14c65f2c4729

trunk/.gitattributes

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*.cpp rust
55
*.h rust
66
*.rs rust
7-
src/etc/pkg/rust-logo.ico binary
87
src/rt/msvc/* -whitespace
98
src/rt/vg/* -whitespace
109
src/rt/linenoise/* -whitespace

trunk/RELEASES.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Version 0.8 (September 2013)
1+
Version 0.8 (October 2013)
22
--------------------------
33

4-
* ~2200 changes, numerous bugfixes
4+
* ~2100 changes, numerous bugfixes
55

66
* Language
77
* The `for` loop syntax has changed to work with the `Iterator` trait.

trunk/configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ do
684684
isaac linenoise sync test \
685685
arch/i386 arch/x86_64 arch/arm arch/mips \
686686
libuv libuv/src/ares libuv/src/eio libuv/src/ev \
687-
jemalloc sundown/src sundown/html
687+
jemalloc
688688
do
689689
make_dir $t/rt/stage$s/$i
690690
done

trunk/mk/rt.mk

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,7 @@ RUNTIME_CXXS_$(1)_$(2) := \
8282
rt/rust_android_dummy.cpp \
8383
rt/rust_test_helpers.cpp
8484

85-
RUNTIME_CS_$(1)_$(2) := rt/linenoise/linenoise.c \
86-
rt/linenoise/utf8.c \
87-
rt/sundown/src/autolink.c \
88-
rt/sundown/src/buffer.c \
89-
rt/sundown/src/stack.c \
90-
rt/sundown/src/markdown.c \
91-
rt/sundown/html/houdini_href_e.c \
92-
rt/sundown/html/houdini_html_e.c \
93-
rt/sundown/html/html_smartypants.c \
94-
rt/sundown/html/html.c
85+
RUNTIME_CS_$(1)_$(2) := rt/linenoise/linenoise.c rt/linenoise/utf8.c
9586

9687
RUNTIME_S_$(1)_$(2) := rt/arch/$$(HOST_$(1))/_context.S \
9788
rt/arch/$$(HOST_$(1))/ccall.S \
@@ -126,8 +117,6 @@ RUNTIME_DEF_$(1)_$(2) := $$(RT_OUTPUT_DIR_$(1))/rustrt$$(CFG_DEF_SUFFIX_$(1))
126117
RUNTIME_INCS_$(1)_$(2) := -I $$(S)src/rt -I $$(S)src/rt/isaac -I $$(S)src/rt/uthash \
127118
-I $$(S)src/rt/arch/$$(HOST_$(1)) \
128119
-I $$(S)src/rt/linenoise \
129-
-I $$(S)src/rt/sundown/src \
130-
-I $$(S)src/rt/sundown/html \
131120
-I $$(S)src/libuv/include
132121
RUNTIME_OBJS_$(1)_$(2) := $$(RUNTIME_CXXS_$(1)_$(2):rt/%.cpp=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \
133122
$$(RUNTIME_CS_$(1)_$(2):rt/%.c=$$(RT_BUILD_DIR_$(1)_$(2))/%.o) \

trunk/mk/tests.mk

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,8 @@ ALL_CS := $(wildcard $(S)src/rt/*.cpp \
227227
$(S)src/rt/*/*/*.cpp \
228228
$(S)src/rustllvm/*.cpp)
229229
ALL_CS := $(filter-out $(S)src/rt/miniz.cpp \
230-
$(wildcard $(S)src/rt/linenoise/*.c) \
231-
$(wildcard $(S)src/rt/sundown/src/*.c) \
232-
$(wildcard $(S)src/rt/sundown/html/*.c) \
230+
$(S)src/rt/linenoise/linenoise.c \
231+
$(S)src/rt/linenoise/utf8.c \
233232
,$(ALL_CS))
234233
ALL_HS := $(wildcard $(S)src/rt/*.h \
235234
$(S)src/rt/*/*.h \
@@ -242,8 +241,6 @@ ALL_HS := $(filter-out $(S)src/rt/vg/valgrind.h \
242241
$(S)src/rt/msvc/inttypes.h \
243242
$(S)src/rt/linenoise/linenoise.h \
244243
$(S)src/rt/linenoise/utf8.h \
245-
$(wildcard $(S)src/rt/sundown/src/*.h) \
246-
$(wildcard $(S)src/rt/sundown/html/*.h) \
247244
,$(ALL_HS))
248245

249246
# Run the tidy script in multiple parts to avoid huge 'echo' commands

trunk/src/etc/pkg/rust-logo.ico

-2 Bytes
Binary file not shown.

trunk/src/libextra/arc.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* In this example, a large vector of floats is shared between several tasks.
1818
* With simple pipes, without Arc, a copy would have to be made for each task.
1919
*
20-
* ```rust
20+
* ~~~ {.rust}
2121
* extern mod std;
2222
* use extra::arc;
2323
* let numbers=vec::from_fn(100, |ind| (ind as float)*rand::random());
@@ -34,7 +34,7 @@
3434
* // Work with the local numbers
3535
* }
3636
* }
37-
* ```
37+
* ~~~
3838
*/
3939

4040
#[allow(missing_doc)];
@@ -440,7 +440,7 @@ impl<T:Freeze + Send> RWArc<T> {
440440
*
441441
* # Example
442442
*
443-
* ```rust
443+
* ~~~ {.rust}
444444
* do arc.write_downgrade |mut write_token| {
445445
* do write_token.write_cond |state, condvar| {
446446
* ... exclusive access with mutable state ...
@@ -450,7 +450,7 @@ impl<T:Freeze + Send> RWArc<T> {
450450
* ... shared access with immutable state ...
451451
* }
452452
* }
453-
* ```
453+
* ~~~
454454
*/
455455
pub fn write_downgrade<U>(&self, blk: &fn(v: RWWriteMode<T>) -> U) -> U {
456456
unsafe {

trunk/src/libextra/base64.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,19 @@ use std::str;
1313

1414
/// Available encoding character sets
1515
pub enum CharacterSet {
16-
/// The standard character set (uses `+` and `/`)
16+
/// The standard character set (uses '+' and '/')
1717
Standard,
18-
/// The URL safe character set (uses `-` and `_`)
18+
/// The URL safe character set (uses '-' and '_')
1919
UrlSafe
2020
}
2121

22-
/// Contains configuration parameters for `to_base64`.
22+
/// Contains configuration parameters for to_base64
2323
pub struct Config {
2424
/// Character set to use
2525
char_set: CharacterSet,
26-
/// True to pad output with `=` characters
26+
/// True to pad output with '=' characters
2727
pad: bool,
28-
/// `Some(len)` to wrap lines at `len`, `None` to disable line wrapping
28+
/// Some(len) to wrap lines at len, None to disable line wrapping
2929
line_length: Option<uint>
3030
}
3131

@@ -62,15 +62,15 @@ impl<'self> ToBase64 for &'self [u8] {
6262
*
6363
* # Example
6464
*
65-
* ```rust
65+
* ~~~ {.rust}
6666
* extern mod extra;
6767
* use extra::base64::{ToBase64, standard};
6868
*
6969
* fn main () {
7070
* let str = [52,32].to_base64(standard);
7171
* printfln!("%s", str);
7272
* }
73-
* ```
73+
* ~~~
7474
*/
7575
fn to_base64(&self, config: Config) -> ~str {
7676
let bytes = match config.char_set {
@@ -170,7 +170,7 @@ impl<'self> FromBase64 for &'self str {
170170
*
171171
* This converts a string literal to base64 and back.
172172
*
173-
* ```rust
173+
* ~~~ {.rust}
174174
* extern mod extra;
175175
* use extra::base64::{ToBase64, FromBase64, standard};
176176
* use std::str;
@@ -183,7 +183,7 @@ impl<'self> FromBase64 for &'self str {
183183
* let result_str = str::from_utf8(bytes);
184184
* printfln!("%s", result_str);
185185
* }
186-
* ```
186+
* ~~~
187187
*/
188188
fn from_base64(&self) -> Result<~[u8], ~str> {
189189
let mut r = ~[];

trunk/src/libextra/bitv.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ struct BigBitv {
116116
}
117117

118118
/**
119-
* A mask that has a 1 for each defined bit in the n'th element of a `BigBitv`,
119+
* a mask that has a 1 for each defined bit in the nth element of a big_bitv,
120120
* assuming n bits.
121121
*/
122122
#[inline]
@@ -284,7 +284,7 @@ impl Bitv {
284284
* Calculates the union of two bitvectors
285285
*
286286
* Sets `self` to the union of `self` and `v1`. Both bitvectors must be
287-
* the same length. Returns `true` if `self` changed.
287+
* the same length. Returns 'true' if `self` changed.
288288
*/
289289
#[inline]
290290
pub fn union(&mut self, v1: &Bitv) -> bool { self.do_op(Union, v1) }
@@ -293,7 +293,7 @@ impl Bitv {
293293
* Calculates the intersection of two bitvectors
294294
*
295295
* Sets `self` to the intersection of `self` and `v1`. Both bitvectors
296-
* must be the same length. Returns `true` if `self` changed.
296+
* must be the same length. Returns 'true' if `self` changed.
297297
*/
298298
#[inline]
299299
pub fn intersect(&mut self, v1: &Bitv) -> bool {
@@ -395,7 +395,7 @@ impl Bitv {
395395
self.do_op(Difference, v)
396396
}
397397

398-
/// Returns `true` if all bits are 1
398+
/// Returns true if all bits are 1
399399
#[inline]
400400
pub fn is_true(&self) -> bool {
401401
match self.rep {
@@ -417,7 +417,7 @@ impl Bitv {
417417
self.iter().invert()
418418
}
419419

420-
/// Returns `true` if all bits are 0
420+
/// Returns true if all bits are 0
421421
pub fn is_false(&self) -> bool {
422422
match self.rep {
423423
Small(ref b) => b.is_false(self.nbits),
@@ -433,18 +433,18 @@ impl Bitv {
433433
}
434434

435435
/**
436-
* Converts `self` to a vector of `uint` with the same length.
436+
* Converts `self` to a vector of uint with the same length.
437437
*
438-
* Each `uint` in the resulting vector has either value `0u` or `1u`.
438+
* Each uint in the resulting vector has either value 0u or 1u.
439439
*/
440440
pub fn to_vec(&self) -> ~[uint] {
441441
vec::from_fn(self.nbits, |x| self.init_to_vec(x))
442442
}
443443

444444
/**
445445
* Organise the bits into bytes, such that the first bit in the
446-
* `Bitv` becomes the high-order bit of the first byte. If the
447-
* size of the `Bitv` is not a multiple of 8 then trailing bits
446+
* bitv becomes the high-order bit of the first byte. If the
447+
* size of the bitv is not a multiple of 8 then trailing bits
448448
* will be filled-in with false/0
449449
*/
450450
pub fn to_bytes(&self) -> ~[u8] {
@@ -472,7 +472,7 @@ impl Bitv {
472472
}
473473

474474
/**
475-
* Transform `self` into a `[bool]` by turning each bit into a `bool`.
475+
* Transform self into a [bool] by turning each bit into a bool
476476
*/
477477
pub fn to_bools(&self) -> ~[bool] {
478478
vec::from_fn(self.nbits, |i| self[i])
@@ -498,7 +498,7 @@ impl Bitv {
498498

499499

500500
/**
501-
* Compare a bitvector to a vector of `bool`.
501+
* Compare a bitvector to a vector of bool.
502502
*
503503
* Both the bitvector and vector must have the same length.
504504
*/
@@ -519,9 +519,9 @@ impl Bitv {
519519
}
520520

521521
/**
522-
* Transform a byte-vector into a `Bitv`. Each byte becomes 8 bits,
522+
* Transform a byte-vector into a bitv. Each byte becomes 8 bits,
523523
* with the most significant bits of each byte coming first. Each
524-
* bit becomes `true` if equal to 1 or `false` if equal to 0.
524+
* bit becomes true if equal to 1 or false if equal to 0.
525525
*/
526526
pub fn from_utf8(bytes: &[u8]) -> Bitv {
527527
from_fn(bytes.len() * 8, |i| {
@@ -532,15 +532,15 @@ pub fn from_utf8(bytes: &[u8]) -> Bitv {
532532
}
533533

534534
/**
535-
* Transform a `[bool]` into a `Bitv` by converting each `bool` into a bit.
535+
* Transform a [bool] into a bitv by converting each bool into a bit.
536536
*/
537537
pub fn from_bools(bools: &[bool]) -> Bitv {
538538
from_fn(bools.len(), |i| bools[i])
539539
}
540540

541541
/**
542-
* Create a `Bitv` of the specified length where the value at each
543-
* index is `f(index)`.
542+
* Create a bitv of the specified length where the value at each
543+
* index is f(index).
544544
*/
545545
pub fn from_fn(len: uint, f: &fn(index: uint) -> bool) -> Bitv {
546546
let mut bitv = Bitv::new(len, false);
@@ -571,7 +571,7 @@ fn iterate_bits(base: uint, bits: uint, f: &fn(uint) -> bool) -> bool {
571571
return true;
572572
}
573573

574-
/// An iterator for `Bitv`.
574+
/// An iterator for Bitv
575575
pub struct BitvIterator<'self> {
576576
priv bitv: &'self Bitv,
577577
priv next_idx: uint,
@@ -631,12 +631,12 @@ impl<'self> RandomAccessIterator<bool> for BitvIterator<'self> {
631631
///
632632
/// It should also be noted that the amount of storage necessary for holding a
633633
/// set of objects is proportional to the maximum of the objects when viewed
634-
/// as a `uint`.
634+
/// as a uint.
635635
#[deriving(Clone)]
636636
pub struct BitvSet {
637637
priv size: uint,
638638

639-
// In theory this is a `Bitv` instead of always a `BigBitv`, but knowing that
639+
// In theory this is a Bitv instead of always a BigBitv, but knowing that
640640
// there's an array of storage makes our lives a whole lot easier when
641641
// performing union/intersection/etc operations
642642
priv bitv: BigBitv
@@ -861,7 +861,7 @@ impl MutableSet<uint> for BitvSet {
861861
}
862862

863863
impl BitvSet {
864-
/// Visits each of the words that the two bit vectors (`self` and `other`)
864+
/// Visits each of the words that the two bit vectors (self and other)
865865
/// both have in common. The three yielded arguments are (bit location,
866866
/// w1, w2) where the bit location is the number of bits offset so far,
867867
/// and w1/w2 are the words coming from the two vectors self, other.
@@ -874,13 +874,13 @@ impl BitvSet {
874874
.map(|((i, &w), o_store)| (i * uint::bits, w, o_store[i]))
875875
}
876876

877-
/// Visits each word in `self` or `other` that extends beyond the other. This
877+
/// Visits each word in self or other that extends beyond the other. This
878878
/// will only iterate through one of the vectors, and it only iterates
879879
/// over the portion that doesn't overlap with the other one.
880880
///
881-
/// The yielded arguments are a `bool`, the bit offset, and a word. The `bool`
882-
/// is true if the word comes from `self`, and `false` if it comes from
883-
/// `other`.
881+
/// The yielded arguments are a bool, the bit offset, and a word. The bool
882+
/// is true if the word comes from 'self', and false if it comes from
883+
/// 'other'.
884884
fn outlier_iter<'a>(&'a self, other: &'a BitvSet)
885885
-> Map<'static, ((uint, &'a uint), uint), (bool, uint, uint),
886886
Zip<Enumerate<vec::VecIterator<'a, uint>>, Repeat<uint>>> {

trunk/src/libextra/extra.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ Rust extras are part of the standard Rust distribution.
2626
url = "https://github.com/mozilla/rust/tree/master/src/libextra")];
2727

2828
#[doc(html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
29-
html_favicon_url = "http://www.rust-lang.org/favicon.ico")];
29+
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
30+
passes = "strip-hidden")];
3031

3132
#[comment = "Rust extras"];
3233
#[license = "MIT/ASL2"];

trunk/src/libextra/flatpipes.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ports and channels.
2525
2626
This example sends boxed integers across tasks using serialization.
2727
28-
```rust
28+
~~~ {.rust}
2929
let (port, chan) = serial::pipe_stream();
3030
3131
do task::spawn || {
@@ -37,7 +37,7 @@ do task::spawn || {
3737
for i in range(0, 10) {
3838
assert @i == port.recv()
3939
}
40-
```
40+
~~~
4141
4242
# Safety Note
4343

trunk/src/libextra/future.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
*
1515
* # Example
1616
*
17-
* ```rust
17+
* ~~~ {.rust}
1818
* # fn fib(n: uint) -> uint {42};
1919
* # fn make_a_sandwich() {};
2020
* let mut delayed_fib = extra::future::spawn (|| fib(5000) );
2121
* make_a_sandwich();
2222
* printfln!("fib(5000) = %?", delayed_fib.get())
23-
* ```
23+
* ~~~
2424
*/
2525

2626
#[allow(missing_doc)];

0 commit comments

Comments
 (0)