Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to force explicit extern ABI's
- Loading branch information
1 parent
68f04ce
commit f364a7e
Showing
6 changed files
with
40 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// rustfmt-force_explicit_abi: false | ||
|
||
extern "C" { | ||
fn some_fn() -> (); | ||
} | ||
|
||
extern "C" fn sup() { | ||
|
||
} | ||
|
||
type funky_func = extern "C" fn (unsafe extern "rust-call" fn(*const JSJitInfo, *mut JSContext, | ||
HandleObject, *mut libc::c_void, u32, | ||
*mut JSVal) | ||
-> u8); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// rustfmt-force_explicit_abi: false | ||
|
||
extern { | ||
fn some_fn() -> (); | ||
} | ||
|
||
extern fn sup() {} | ||
|
||
type funky_func = extern fn(unsafe extern "rust-call" fn(*const JSJitInfo, | ||
*mut JSContext, | ||
HandleObject, | ||
*mut libc::c_void, | ||
u32, | ||
*mut JSVal) | ||
-> u8); |