Commit Graph

31 Commits (60ed8f3bb9d22a60865197a0ac74911436703430)

Author SHA1 Message Date
printfn 60ed8f3bb9 Update to 2024 edition
1 month ago
Thiago Trannin 38f5394280 Use `()` instead of `[u8; 0]` in opaque type
2 months ago
Eric Huss 388750b081
Merge pull request #311 from DrMeepster/abi_thiscall
2 years ago
Matt Harding 51bb051414
Change incorrect reference to "above" in ffi.md
2 years ago
Kyle J Strand d1a59f543e Re-word: only "most" ABIs have `-unwind`
2 years ago
Tyler Mandry 94bb6a629b
Copyedits to FFI and unwinding section
2 years ago
Niki4tap 734ca5e3f7 Don't try to work with invalid values on non-null types, always do what nomicon says
2 years ago
Kyle J Strand 3a43983b76
Changes for `c_unwind` (#365)
3 years ago
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
DrMeepster dcd6c28312
add thiscall abi
4 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