Commit Graph

22 Commits (16ad2674ec2a566dce7bc6731df57453cf5b9697)

Author SHA1 Message Date
Qingyou Meng f6d6126fc9
ffi: explicitly declare hello_from_rust for C99 (#343)
3 years ago
Alan Wu 0e5a200124
Make C code more recognizably C (#331)
3 years ago
khollbach 66d097d3d8
Fix typo / type error in FFI code example (#327)
3 years ago
Yuki Okushi 88b2dbcce6
Apply review comments
4 years ago
Yuki Okushi 543c9b1bd7
Show the output
4 years ago
Yuki Okushi 044051c0ed
Move the section higher
4 years ago
Yuki Okushi 64553aa569
Write a basic "call Rust from C" example
4 years ago
Yuki Okushi c42314b09b
Remove unnecessary `extern crate`s
4 years ago
Yuki Okushi 5e789618d9
Audit `ignore` annotations
4 years ago
Jason Heeris b9ca313e68 The #[repr(C)] attribute on the callback example is not necessary, since the type is not used in C.
4 years ago
Eric Huss 2e159b0d30
Merge pull request #273 from JohnTitor/mention-extern-types
4 years ago
Yuki Okushi 538345ab83
Turn explanation into a sidenote
4 years ago
Yuki Okushi 9387d35984 Mention "extern types" on the opaque structs section
4 years ago
Yuki Okushi 1fe5457479 Fix minor style issues
4 years ago
Florian Gilcher 90811705ca Fix opaque type representation.
4 years ago
amosonn 4d2d275997 Fix example in FFI, section NPO
5 years ago
amosonn 6e93a7cbf8
Fix example in FFI section Calling Rust from C
5 years ago
Ralf Jung b3d532f55b explain the empty type better, and explain to NOT use enums
7 years ago
Simon Sapin 5b45a89c37
Prefix private fields with _
7 years ago
Simon Sapin 36a7633208
Don’t recommend empty enums for opaque types
7 years ago
projektir 8acf410db2 Fixing link to Drop trait and catch_unwind; closes rust-lang/rust#42064
8 years ago
projektir d0f2868141 Adding the FFI chapter from the first edition of TRPL to nomicon rust-lang/rust#42064
8 years ago