-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1536 from flowbish/fix_1535
Fix issue #1535: use correct names for function parameters in function pointer arguments.
- Loading branch information
Showing
3 changed files
with
49 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
/* automatically generated by rust-bindgen */ | ||
|
||
|
||
#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)] | ||
|
||
#![allow( | ||
dead_code, | ||
non_snake_case, | ||
non_camel_case_types, | ||
non_upper_case_globals | ||
)] | ||
|
||
extern "C" { | ||
pub fn foo(bar: ::std::option::Option<unsafe extern "C" fn()>); | ||
} | ||
extern "C" { | ||
pub fn bar( | ||
one: ::std::option::Option< | ||
unsafe extern "C" fn(a: ::std::os::raw::c_int, b: ::std::os::raw::c_int), | ||
>, | ||
two: ::std::option::Option< | ||
unsafe extern "C" fn(c: ::std::os::raw::c_int, d: ::std::os::raw::c_int), | ||
>, | ||
); | ||
} |
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 |
---|---|---|
@@ -1 +1,3 @@ | ||
void foo(void (*bar)()); | ||
|
||
void bar(void (*one)(int a, int b), void (*two)(int c, int d)); |