about summary refs log tree commit diff
path: root/doc/tutorial/ffi.md
AgeCommit message (Collapse)AuthorLines
2012-01-19Move tutorial over to a format similar to the reference docMarijn Haverbeke-209/+0
And adjust highlighting/testing scripts to deal with this.
2012-01-12tutorial: rework nolink description to remove mention of "empty string"Graham Fawcett-3/+2
2012-01-12Go over the tutorial againMarijn Haverbeke-8/+5
Edit some things, make sure all code runs.
2011-12-16implement #[nolink]; deprecate #[link_name = ""]; note in stdlib to remove ↵Graham Fawcett-2/+2
empty link_name. Can't remove them from stdlib until the snapshotted compiler supports #[nolink].
2011-11-22Add hacks to extract and compile tutorial codeMarijn Haverbeke-0/+11
Not included in the build by default, since it's fragile and kludgy. Do something like this to run it: cd doc/tutorial RUSTC=../../build/stage2/bin/rustc bash test.sh Closes #1143
2011-11-17tutorial: Fix type mismatch in example FFI codeHaitao Li-1/+1
Compile error: time.rs:13:23: 13:43 error: mismatched types: expected *R[tv_sec=mMltv_usec=mMl] but found *R[tv_sec=Mltv_usec=Ml] (record elements differ in mutability) time.rs:13 libc::gettimeofday(std::ptr::addr_of(x), std::ptr::null()); ^~~~~~~~~~~~~~~~~~~~ error: aborting due to previous errors rust: upcall fail 'explicit failure', ../src/comp/driver/session.rs:70 rust: domain main @0x9dfd178 root task failed
2011-11-16Update tutorial for native mod changesBrian Anderson-9/+15
2011-11-16tutorial: Update with native module syntax changeHaitao Li-11/+20
2011-11-15Use libcrypto.so instead of libssl.so in the ffi part of tutorialMarijn Haverbeke-12/+12
2011-11-02Make ptr::addr_of return an immutable vec, add mut_addr_ofMarijn Haverbeke-2/+3
2011-11-01Fix some typos in tutorialMarijn Haverbeke-1/+1
2011-11-01Fill in the foreign-function part of the tutorialMarijn Haverbeke-1/+184
2011-11-01Flesh out the module section of the tutorialMarijn Haverbeke-0/+3