Skip to content

Commit 951c2ed

Browse files
committed
---
yaml --- r: 107921 b: refs/heads/dist-snap c: f72a2c7 h: refs/heads/master i: 107919: 7423f43 v: v3
1 parent b6a55b6 commit 951c2ed

32 files changed

+3127
-910
lines changed

[refs]

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

branches/dist-snap/mk/crates.mk

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,22 @@
4949
# automatically generated for all stage/host/target combinations.
5050
################################################################################
5151

52-
TARGET_CRATES := std extra green rustuv native flate arena glob term
52+
TARGET_CRATES := std extra green rustuv native flate arena glob
5353
HOST_CRATES := syntax rustc rustdoc
5454
CRATES := $(TARGET_CRATES) $(HOST_CRATES)
5555
TOOLS := compiletest rustdoc rustc
5656

5757
DEPS_std := native:rustrt
58-
DEPS_extra := std term
58+
DEPS_extra := std
5959
DEPS_green := std
6060
DEPS_rustuv := std native:uv native:uv_support
6161
DEPS_native := std
62-
DEPS_syntax := std extra term
62+
DEPS_syntax := std extra
6363
DEPS_rustc := syntax native:rustllvm flate arena
6464
DEPS_rustdoc := rustc native:sundown
6565
DEPS_flate := std native:miniz
6666
DEPS_arena := std extra
6767
DEPS_glob := std
68-
DEPS_term := std
6968

7069
TOOL_DEPS_compiletest := extra green rustuv
7170
TOOL_DEPS_rustdoc := rustdoc green rustuv

branches/dist-snap/src/doc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ po4a --copyright-holder="The Rust Project Developers" \
5959
--package-name="Rust" \
6060
--package-version="0.10-pre" \
6161
-M UTF-8 -L UTF-8 \
62-
po4a.conf
62+
src/doc/po4a.conf
6363
~~~~
6464

6565
(the version number must be changed if it is not 0.10-pre now.)
@@ -73,7 +73,7 @@ When you want to make a commit, do the command below before staging your
7373
change:
7474

7575
~~~~
76-
for f in doc/po/**/*.po; do
76+
for f in src/doc/po/**/*.po; do
7777
msgattrib --translated $f -o $f.strip
7878
if [ -e $f.strip ]; then
7979
mv $f.strip $f

branches/dist-snap/src/doc/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ li {list-style-type: none; }
4040
* [The `arena` allocation library](arena/index.html)
4141
* [The `flate` compression library](flate/index.html)
4242
* [The `glob` file path matching library](glob/index.html)
43-
* [The `term` terminal-handling library](term/index.html)
4443

4544
# Tooling
4645

branches/dist-snap/src/doc/po/ja/complement-cheatsheet.md.po

Lines changed: 194 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
msgid ""
77
msgstr ""
88
"Project-Id-Version: Rust 0.10-pre\n"
9-
"POT-Creation-Date: 2014-01-13 12:01+0900\n"
9+
"POT-Creation-Date: 2014-02-03 08:13+0900\n"
1010
"PO-Revision-Date: 2014-01-13 12:01+0900\n"
1111
"Last-Translator: Automatically generated\n"
1212
"Language-Team: none\n"
@@ -17,7 +17,20 @@ msgstr ""
1717
"Plural-Forms: nplurals=1; plural=0;\n"
1818

1919
#. type: Plain text
20-
#: doc/complement-cheatsheet.md:13
20+
#: src/doc/complement-cheatsheet.md:8
21+
#, fuzzy
22+
#| msgid ""
23+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
24+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
25+
msgid ""
26+
"Use [`ToStr`](http://static.rust-lang.org/doc/master/std/to_str/trait.ToStr."
27+
"html)."
28+
msgstr ""
29+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
30+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
31+
32+
#. type: Plain text
33+
#: src/doc/complement-cheatsheet.md:13
2134
#, fuzzy
2235
#| msgid ""
2336
#| "~~~~ let x: f64 = 4.0; let y: uint = x as uint; assert!(y == 4u); ~~~~"
@@ -30,7 +43,7 @@ msgstr ""
3043
"~~~~"
3144

3245
#. type: Plain text
33-
#: doc/complement-cheatsheet.md:17
46+
#: src/doc/complement-cheatsheet.md:17
3447
#, fuzzy
3548
#| msgid ""
3649
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
@@ -44,7 +57,7 @@ msgstr ""
4457
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
4558

4659
#. type: Plain text
47-
#: doc/complement-cheatsheet.md:22
60+
#: src/doc/complement-cheatsheet.md:22
4861
#, fuzzy
4962
#| msgid ""
5063
#| "~~~~ let x: f64 = 4.0; let y: uint = x as uint; assert!(y == 4u); ~~~~"
@@ -57,7 +70,20 @@ msgstr ""
5770
"~~~~"
5871

5972
#. type: Plain text
60-
#: doc/complement-cheatsheet.md:29
73+
#: src/doc/complement-cheatsheet.md:26
74+
#, fuzzy
75+
#| msgid ""
76+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
77+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
78+
msgid ""
79+
"Use [`ToStrRadix`](http://static.rust-lang.org/doc/master/std/num/trait."
80+
"ToStrRadix.html)."
81+
msgstr ""
82+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
83+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
84+
85+
#. type: Plain text
86+
#: src/doc/complement-cheatsheet.md:29
6187
#, fuzzy
6288
#| msgid "~~~~ use std::task::spawn;"
6389
msgid "~~~ use std::num::ToStrRadix;"
@@ -66,7 +92,7 @@ msgstr ""
6692
"use std::task::spawn;"
6793

6894
#. type: Plain text
69-
#: doc/complement-cheatsheet.md:33
95+
#: src/doc/complement-cheatsheet.md:33
7096
#, fuzzy
7197
#| msgid ""
7298
#| "~~~~ let x: f64 = 4.0; let y: uint = x as uint; assert!(y == 4u); ~~~~"
@@ -79,7 +105,7 @@ msgstr ""
79105
"~~~~"
80106

81107
#. type: Plain text
82-
#: doc/complement-cheatsheet.md:37
108+
#: src/doc/complement-cheatsheet.md:37
83109
#, fuzzy
84110
#| msgid ""
85111
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
@@ -93,7 +119,7 @@ msgstr ""
93119
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
94120

95121
#. type: Plain text
96-
#: doc/complement-cheatsheet.md:40
122+
#: src/doc/complement-cheatsheet.md:40
97123
#, fuzzy
98124
#| msgid "~~~~ use std::task::spawn;"
99125
msgid "~~~ use std::num::from_str_radix;"
@@ -102,14 +128,44 @@ msgstr ""
102128
"use std::task::spawn;"
103129

104130
#. type: Plain text
105-
#: doc/complement-cheatsheet.md:46
131+
#: src/doc/complement-cheatsheet.md:44
132+
#, fuzzy
133+
#| msgid ""
134+
#| "~~~~ let x: f64 = 4.0; let y: uint = x as uint; assert!(y == 4u); ~~~~"
135+
msgid ""
136+
"let x: Option<i64> = from_str_radix(\"deadbeef\", 16); let y: i64 = x."
137+
"unwrap(); ~~~"
138+
msgstr ""
139+
"~~~~\n"
140+
"let x: f64 = 4.0;\n"
141+
"let y: uint = x as uint;\n"
142+
"assert!(y == 4u);\n"
143+
"~~~~"
144+
145+
#. type: Plain text
146+
#: src/doc/complement-cheatsheet.md:46
106147
#, fuzzy
107148
#| msgid "## Operators"
108149
msgid "# File operations"
109150
msgstr "## 演算子"
110151

111152
#. type: Plain text
112-
#: doc/complement-cheatsheet.md:54
153+
#: src/doc/complement-cheatsheet.md:50
154+
#, fuzzy
155+
#| msgid ""
156+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
157+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
158+
msgid ""
159+
"Use [`File::open`](http://static.rust-lang.org/doc/master/std/io/fs/struct."
160+
"File.html#method.open) to create a [`File`](http://static.rust-lang.org/doc/"
161+
"master/std/io/fs/struct.File.html) struct, which implements the [`Reader`]"
162+
"(http://static.rust-lang.org/doc/master/std/io/trait.Reader.html) trait."
163+
msgstr ""
164+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
165+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
166+
167+
#. type: Plain text
168+
#: src/doc/complement-cheatsheet.md:54
113169
#, fuzzy
114170
#| msgid "~~~~ use std::task::spawn;"
115171
msgid "~~~ {.ignore} use std::path::Path; use std::io::fs::File;"
@@ -118,7 +174,7 @@ msgstr ""
118174
"use std::task::spawn;"
119175

120176
#. type: Plain text
121-
#: doc/complement-cheatsheet.md:63
177+
#: src/doc/complement-cheatsheet.md:63
122178
#, fuzzy
123179
#| msgid ""
124180
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
@@ -132,21 +188,145 @@ msgstr ""
132188
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
133189

134190
#. type: Plain text
135-
#: doc/complement-cheatsheet.md:77
191+
#: src/doc/complement-cheatsheet.md:67
192+
#, fuzzy
193+
#| msgid "~~~~ use std::task::spawn;"
194+
msgid "~~~ use std::io::BufferedReader; # use std::io::MemReader;"
195+
msgstr ""
196+
"~~~~\n"
197+
"use std::task::spawn;"
198+
199+
#. type: Plain text
200+
#: src/doc/complement-cheatsheet.md:77
136201
#, fuzzy
137202
#| msgid "## Using other crates"
138203
msgid "# String operations"
139204
msgstr "## 他のクレートの利用"
140205

141206
#. type: Plain text
142-
#: doc/complement-cheatsheet.md:88 doc/guide-container.md:4
207+
#: src/doc/complement-cheatsheet.md:81
208+
#, fuzzy
209+
#| msgid ""
210+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
211+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
212+
msgid ""
213+
"Use the [`find_str`](http://static.rust-lang.org/doc/master/std/str/trait."
214+
"StrSlice.html#tymethod.find_str) method."
215+
msgstr ""
216+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
217+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
218+
219+
#. type: Plain text
220+
#: src/doc/complement-cheatsheet.md:88 src/doc/guide-container.md:4
143221
#, fuzzy
144222
msgid "# Containers"
145223
msgstr "## 本書の表記について"
146224

147225
#. type: Plain text
148-
#: doc/complement-cheatsheet.md:176
226+
#: src/doc/complement-cheatsheet.md:92
227+
#, fuzzy
228+
#| msgid ""
229+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
230+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
231+
msgid ""
232+
"The [`Container`](http://static.rust-lang.org/doc/master/std/container/trait."
233+
"Container.html) trait provides the `len` method."
234+
msgstr ""
235+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
236+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
237+
238+
#. type: Plain text
239+
#: src/doc/complement-cheatsheet.md:104
240+
#, fuzzy
241+
#| msgid ""
242+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
243+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
244+
msgid ""
245+
"Use the [`iter`](http://static.rust-lang.org/doc/master/std/vec/trait."
246+
"ImmutableVector.html#tymethod.iter) method."
247+
msgstr ""
248+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
249+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
250+
251+
#. type: Plain text
252+
#: src/doc/complement-cheatsheet.md:113
253+
#, fuzzy
254+
#| msgid ""
255+
#| "[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz [win-exe]: "
256+
#| "http://static.rust-lang.org/dist/rust-0.7-install.exe"
257+
msgid ""
258+
"(See also [`mut_iter`](http://static.rust-lang.org/doc/master/std/vec/trait."
259+
"MutableVector.html#tymethod.mut_iter) which yields `&mut int` and "
260+
"[`move_iter`](http://static.rust-lang.org/doc/master/std/vec/trait."
261+
"OwnedVector.html#tymethod.move_iter) which yields `int` while consuming the "
262+
"`values` vector.)"
263+
msgstr ""
264+
"[tarball]: http://static.rust-lang.org/dist/rust-0.7.tar.gz\n"
265+
"[win-exe]: http://static.rust-lang.org/dist/rust-0.7-install.exe"
266+
267+
#. type: Plain text
268+
#: src/doc/complement-cheatsheet.md:115 src/doc/rust.md:3019
269+
#, fuzzy
270+
msgid "# Type system"
271+
msgstr "## タプル"
272+
273+
#. type: Plain text
274+
#: src/doc/complement-cheatsheet.md:122
275+
#, fuzzy, no-wrap
276+
#| msgid "~~~~ {.ignore} // main.rs extern mod world; fn main() { println(~\"hello \" + world::explore()); } ~~~~"
277+
msgid ""
278+
"~~~\n"
279+
"struct Foo {\n"
280+
" myfunc: fn(int, uint) -> i32\n"
281+
"}\n"
282+
msgstr ""
283+
"~~~~ {.ignore}\n"
284+
"// main.rs\n"
285+
"extern mod world;\n"
286+
"fn main() { println(~\"hello \" + world::explore()); }\n"
287+
"~~~~"
288+
289+
#. type: Plain text
290+
#: src/doc/complement-cheatsheet.md:130
291+
#, fuzzy, no-wrap
292+
#| msgid "~~~~ fn line(a: int, b: int, x: int) -> int { a * x + b } fn oops(a: int, b: int, x: int) -> () { a * x + b; }"
293+
msgid ""
294+
"fn a(a: int, b: uint) -> i32 {\n"
295+
" (a as uint + b) as i32\n"
296+
"}\n"
297+
msgstr ""
298+
"~~~~\n"
299+
"fn line(a: int, b: int, x: int) -> int { a * x + b }\n"
300+
"fn oops(a: int, b: int, x: int) -> () { a * x + b; }"
301+
302+
#. type: Plain text
303+
#: src/doc/complement-cheatsheet.md:138
304+
#, fuzzy, no-wrap
305+
#| msgid "~~~~ {.ignore} # struct Point { x: f64, y: f64 } let mut mypoint = Point { x: 1.0, y: 1.0 }; let origin = Point { x: 0.0, y: 0.0 };"
306+
msgid ""
307+
"fn main() {\n"
308+
" let f = Foo { myfunc: a };\n"
309+
" let g = FooClosure { myfunc: |a, b| { (a - b as int) as i32 } };\n"
310+
" println!(\"{}\", (f.myfunc)(1, 2));\n"
311+
" println!(\"{}\", (g.myfunc)(3, 4));\n"
312+
"}\n"
313+
"~~~\n"
314+
msgstr ""
315+
"~~~~ {.ignore}\n"
316+
"# struct Point { x: f64, y: f64 }\n"
317+
"let mut mypoint = Point { x: 1.0, y: 1.0 };\n"
318+
"let origin = Point { x: 0.0, y: 0.0 };"
319+
320+
#. type: Plain text
321+
#: src/doc/complement-cheatsheet.md:176
149322
#, fuzzy
150323
#| msgid "[The foreign function interface][ffi]"
151324
msgid "# FFI (Foreign Function Interface)"
152325
msgstr "[他言語間インターフェース (foreign function inferface)][ffi]"
326+
327+
#. type: Plain text
328+
#: src/doc/complement-cheatsheet.md:178
329+
#, fuzzy
330+
#| msgid "# Control structures"
331+
msgid "## C function signature conversions"
332+
msgstr "# 制御構造"

0 commit comments

Comments
 (0)