summary refs log tree commit diff
path: root/doc/tutorial-ffi.md
AgeCommit message (Collapse)AuthorLines
2013-06-28librustc: Disallow "mut" from distributing over bindings.Patrick Walton-2/+2
This is the backwards-incompatible part of per-binding-site "mut".
2013-06-25Change finalize -> drop.Luqman Aden-1/+1
2013-06-04librustc: Disallow multiple patterns from appearing in a "let" declaration.Patrick Walton-4/+4
You can still initialize multiple variables at once with "let (x, y) = (1, 2)".
2013-05-31fix tutorial lint warningsDaniel Micay-2/+1
2013-05-31mv the raw pointer {swap,replace}_ptr to std::ptrDaniel Micay-1/+1
2013-05-29librustc: Stop reexporting the standard modules from prelude.Patrick Walton-0/+2
2013-05-23more testing fallout from core->std/std->extra moveTed Horst-6/+6
2013-05-12libsyntax: Remove `extern mod foo { ... }` from the language.Patrick Walton-1/+2
2013-05-10Fix tests with the swap operatorAlex Crichton-1/+3
2013-05-08fix incorrect region code based on the old 'selfDaniel Micay-7/+7
also removes unnecessary casts from the RcMut implementation
2013-05-04small fix to the tutorial-ffi destructor exampleDaniel Micay-7/+4
The previous example was erroneously attempting to destroy uninitialized memory, which was often zeroed (masking the bug).
2013-04-26tutorial-ffi: add example of a custom destructorDaniel Micay-0/+68
2013-04-12auto merge of #5852 : thestinger/rust/ffi, r=thestingerbors-4/+5
2013-04-12tutorial-ffi: add another missing wordDaniel Micay-4/+5
2013-04-12tutorial-ffi: add missing wordDaniel Micay-2/+2
2013-04-12rewrite the ffi tutorial with snappy as an exampleDaniel Micay-195/+139
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-03-29librustc: Remove `fail_unless!`Patrick Walton-1/+1
2013-03-07librustc: Convert all uses of `assert` over to `fail_unless!`Patrick Walton-1/+1
2013-03-02librustc: Forbid chained imports and fix the logic for one-level renaming ↵Patrick Walton-2/+2
imports
2013-02-26doc: Remove references to mut fields. rs=demutingPatrick Walton-7/+7
2013-01-23doc: fix tutorial unsafe blocks, r=burningtree.Graydon Hoare-12/+17
2013-01-21Revert "doc: Fix tutorial-ffi xfail-tests and update SHA1() to use size_t"Tim Chevalier-24/+16
This reverts commit 50c8cbb25aeb9d8132ac06914e9978d3cddb7f42.
2013-01-20doc: Fix tutorial-ffi xfail-tests and update SHA1() to use size_tChris Peterson-16/+24
2012-12-23Fix example.Eric J. Holmes-3/+3
2012-10-11Fix tutorial-ffi testsTim Chevalier-4/+4
2012-10-09Copyedit FFI tutorialTim Chevalier-66/+65
2012-10-03Revert "docs: Call () 'unit' instead of 'nil'"Brian Anderson-1/+1
This reverts commit c8ee49a5b68ad0b0a33eb30e757fadb0be47f8da.
2012-10-03docs: Call () 'unit' instead of 'nil'Brian Anderson-1/+1
2012-10-01Move over to calling ptr::addr_ofTim Chevalier-1/+1
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-09-26docs: Give all tutorials consistent titles and intro sectionsBrian Anderson-7/+9
2012-09-26tutorial: Remove all references to 'records'. MiscBrian Anderson-6/+12
2012-09-21Install new pub/priv/export rules as defaults, old rules accessible under ↵Graydon Hoare-2/+6
#[legacy_exports];
2012-09-15docs: Make supplemental tutorials testableBrian Anderson-8/+8
2012-09-05doc: "import" -> "use"Patrick Walton-4/+4
2012-09-05doc: Split out the FFI part of the tutorialPatrick Walton-0/+240
The tutorial should perhaps contain an FFI section, but this one is too long.