File tree Expand file tree Collapse file tree 4 files changed +28
-20
lines changed
Expand file tree Collapse file tree 4 files changed +28
-20
lines changed Original file line number Diff line number Diff line change 88) ]
99
1010extern "C" {
11- pub fn test_fn (
12- a : f32 ,
13- arr : * mut [ :: std:: os:: raw:: c_int ; 20usize ] ,
14- ) -> :: std:: os:: raw:: c_int ;
11+ pub fn test_fn ( a : f32 , arr : * mut [ :: std:: os:: raw:: c_int ; 20usize ] ) -> :: std:: os:: raw:: c_int ;
1512}
1613extern "C" {
17- pub fn test_fn2 (
18- arr : * const [ f32 ; 20usize ] ,
19- b : :: std:: os:: raw:: c_int ,
20- ) -> :: std:: os:: raw:: c_int ;
21- }
14+ pub fn test_fn2 ( arr : * const [ f32 ; 20usize ] , b : :: std:: os:: raw:: c_int ) -> :: std:: os:: raw:: c_int ;
15+ }
16+ pub type defArr = [ :: std:: os:: raw:: c_char ; 20usize ] ;
17+ pub type foo = :: std:: option:: Option < unsafe extern "C" fn ( a : * mut defArr ) > ;
18+ extern "C" {
19+ pub fn bar ( a : * mut defArr ) ;
20+ }
Original file line number Diff line number Diff line change 88) ]
99
1010extern "C" {
11- pub fn test_fn (
12- a : f32 ,
13- arr : * mut :: std:: os:: raw:: c_int ,
14- ) -> :: std:: os:: raw:: c_int ;
11+ pub fn test_fn ( a : f32 , arr : * mut :: std:: os:: raw:: c_int ) -> :: std:: os:: raw:: c_int ;
1512}
1613extern "C" {
17- pub fn test_fn2 (
18- arr : * const f32 ,
19- b : :: std:: os:: raw:: c_int ,
20- ) -> :: std:: os:: raw:: c_int ;
21- }
14+ pub fn test_fn2 ( arr : * const f32 , b : :: std:: os:: raw:: c_int ) -> :: std:: os:: raw:: c_int ;
15+ }
16+ pub type defArr = [ :: std:: os:: raw:: c_char ; 20usize ] ;
17+ pub type foo = :: std:: option:: Option < unsafe extern "C" fn ( a : * mut :: std:: os:: raw:: c_char ) > ;
18+ extern "C" {
19+ pub fn bar ( a : * mut :: std:: os:: raw:: c_char ) ;
20+ }
Original file line number Diff line number Diff line change 22
33int test_fn (float a , int arr [20 ]);
44
5- int test_fn2 (const float arr [20 ], int b );
5+ int test_fn2 (const float arr [20 ], int b );
6+
7+ typedef char defArr [20 ];
8+ typedef void foo (defArr a );
9+
10+ void bar (defArr a );
Original file line number Diff line number Diff line change 11
22int test_fn (float a , int arr [20 ]);
33
4- int test_fn2 (const float arr [20 ], int b );
4+ int test_fn2 (const float arr [20 ], int b );
5+
6+ typedef char defArr [20 ];
7+ typedef void foo (defArr a );
8+
9+ void bar (defArr a );
You can’t perform that action at this time.
0 commit comments