Daniel Micay
195911fca4
tutorial-ffi: add example of a custom destructor
2013-04-26 14:07:57 -04:00
bors
8b74efaa7b
auto merge of #5852 : thestinger/rust/ffi, r=thestinger
2013-04-12 03:37:00 -07:00
Daniel Micay
53d2228b37
tutorial-ffi: add another missing word
2013-04-12 06:34:25 -04:00
Daniel Micay
a4db39a6fe
tutorial-ffi: add missing word
2013-04-12 03:15:07 -04:00
Daniel Micay
1faa3596b0
rewrite the ffi tutorial with snappy as an example
...
The example with OpenSSL is incorrect, because OpenSSL is using a
static variable for the return value and isn't thread-safe.
The gettimeofday example isn't great because it's not very portable.
2013-04-12 02:12:00 -04:00
Patrick Walton
1e91595520
librustc: Remove fail_unless!
2013-03-29 16:39:08 -07:00
Patrick Walton
d7e74b5e91
librustc: Convert all uses of assert
over to fail_unless!
2013-03-07 22:37:57 -08:00
Patrick Walton
a3f728238b
librustc: Forbid chained imports and fix the logic for one-level renaming imports
2013-03-02 16:49:30 -08:00
Patrick Walton
c9dd917fad
doc: Remove references to mut fields. rs=demuting
2013-02-26 10:02:36 -08:00
Graydon Hoare
e8f4da78e7
doc: fix tutorial unsafe blocks, r=burningtree.
2013-01-23 23:21:47 -08:00
Tim Chevalier
3fac6f8b54
Revert "doc: Fix tutorial-ffi xfail-tests and update SHA1() to use size_t"
...
This reverts commit 50c8cbb25a
.
2013-01-21 19:39:45 -08:00
Chris Peterson
50c8cbb25a
doc: Fix tutorial-ffi xfail-tests and update SHA1() to use size_t
2013-01-20 22:56:45 -08:00
Eric J. Holmes
0100b02b3a
Fix example.
2012-12-23 13:26:12 -08:00
Tim Chevalier
140d16ac58
Fix tutorial-ffi tests
2012-10-11 19:45:04 -07:00
Tim Chevalier
cd6f24f9d1
Copyedit FFI tutorial
2012-10-09 16:46:16 -07:00
Brian Anderson
3e47b4f17e
Revert "docs: Call () 'unit' instead of 'nil'"
...
This reverts commit c8ee49a5b6
.
2012-10-03 22:18:46 -07:00
Brian Anderson
c8ee49a5b6
docs: Call () 'unit' instead of 'nil'
2012-10-03 20:06:24 -07:00
Tim Chevalier
b18320446e
Move over to calling ptr::addr_of
...
Everything should now call ptr::addr_of instead of
ptr::p2::addr_of. Only the pipes macro code when compiled
by stage0 will call ptr::p2::addr_of. Needs a snapshot to get
rid of that.
2012-10-01 15:12:09 -07:00
Brian Anderson
5424f21d5d
docs: Give all tutorials consistent titles and intro sections
2012-09-26 19:00:13 -07:00
Brian Anderson
2891f5abe3
tutorial: Remove all references to 'records'. Misc
2012-09-26 16:41:35 -07:00
Graydon Hoare
dffe188991
Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];
2012-09-21 18:11:43 -07:00
Brian Anderson
864cca14ee
docs: Make supplemental tutorials testable
2012-09-15 18:06:20 -07:00
Patrick Walton
10c533861b
doc: "import" -> "use"
2012-09-05 12:39:16 -07:00
Patrick Walton
4e515c14af
doc: Split out the FFI part of the tutorial
...
The tutorial should perhaps contain an FFI section, but this one is too long.
2012-09-05 11:20:04 -07:00