]> git.lizzy.rs Git - rust.git/blob - tests/target/issue-2164.rs
Merge pull request #2162 from utkarshkukreti/issue-1753
[rust.git] / tests / target / issue-2164.rs
1 // A stress test against code generated by bindgen.
2 #[repr(C)]
3 #[derive(Debug, Copy, Clone)]
4 pub struct emacs_env_25 {
5     pub size: isize,
6     pub private_members: *mut emacs_env_private,
7     pub make_global_ref: ::std::option::Option<
8         unsafe extern "C" fn(env: *mut emacs_env, any_reference: emacs_value) -> emacs_value,
9     >,
10     pub free_global_ref: ::std::option::Option<
11         unsafe extern "C" fn(env: *mut emacs_env, global_reference: emacs_value),
12     >,
13     pub non_local_exit_check:
14         ::std::option::Option<unsafe extern "C" fn(env: *mut emacs_env) -> emacs_funcall_exit>,
15     pub non_local_exit_clear: ::std::option::Option<unsafe extern "C" fn(env: *mut emacs_env)>,
16     pub non_local_exit_get: ::std::option::Option<
17         unsafe extern "C" fn(
18             env: *mut emacs_env,
19             non_local_exit_symbol_out: *mut emacs_value,
20             non_local_exit_data_out: *mut emacs_value,
21         ) -> emacs_funcall_exit,
22     >,
23     pub non_local_exit_signal: ::std::option::Option<
24         unsafe extern "C" fn(
25             env: *mut emacs_env,
26             non_local_exit_symbol: emacs_value,
27             non_local_exit_data: emacs_value,
28         ),
29     >,
30     pub non_local_exit_throw: ::std::option::Option<
31         unsafe extern "C" fn(env: *mut emacs_env, tag: emacs_value, value: emacs_value),
32     >,
33     pub make_function: ::std::option::Option<
34         unsafe extern "C" fn(
35             env: *mut emacs_env,
36             min_arity: isize,
37             max_arity: isize,
38             function: ::std::option::Option<
39                 unsafe extern "C" fn(
40                     env: *mut emacs_env,
41                     nargs: isize,
42                     args: *mut emacs_value,
43                     arg1: *mut ::libc::c_void,
44                 ) -> emacs_value,
45             >,
46             documentation: *const ::libc::c_char,
47             data: *mut ::libc::c_void,
48         ) -> emacs_value,
49     >,
50     pub funcall: ::std::option::Option<
51         unsafe extern "C" fn(
52             env: *mut emacs_env,
53             function: emacs_value,
54             nargs: isize,
55             args: *mut emacs_value,
56         ) -> emacs_value,
57     >,
58     pub intern: ::std::option::Option<
59         unsafe extern "C" fn(env: *mut emacs_env, symbol_name: *const ::libc::c_char)
60             -> emacs_value,
61     >,
62     pub type_of: ::std::option::Option<
63         unsafe extern "C" fn(env: *mut emacs_env, value: emacs_value) -> emacs_value,
64     >,
65     pub is_not_nil: ::std::option::Option<
66         unsafe extern "C" fn(env: *mut emacs_env, value: emacs_value) -> bool,
67     >,
68     pub eq: ::std::option::Option<
69         unsafe extern "C" fn(env: *mut emacs_env, a: emacs_value, b: emacs_value) -> bool,
70     >,
71     pub extract_integer: ::std::option::Option<
72         unsafe extern "C" fn(env: *mut emacs_env, value: emacs_value) -> intmax_t,
73     >,
74     pub make_integer: ::std::option::Option<
75         unsafe extern "C" fn(env: *mut emacs_env, value: intmax_t) -> emacs_value,
76     >,
77     pub extract_float:
78         ::std::option::Option<unsafe extern "C" fn(env: *mut emacs_env, value: emacs_value) -> f64>,
79     pub make_float:
80         ::std::option::Option<unsafe extern "C" fn(env: *mut emacs_env, value: f64) -> emacs_value>,
81     pub copy_string_contents: ::std::option::Option<
82         unsafe extern "C" fn(
83             env: *mut emacs_env,
84             value: emacs_value,
85             buffer: *mut ::libc::c_char,
86             size_inout: *mut isize,
87         ) -> bool,
88     >,
89     pub make_string: ::std::option::Option<
90         unsafe extern "C" fn(env: *mut emacs_env, contents: *const ::libc::c_char, length: isize)
91             -> emacs_value,
92     >,
93     pub make_user_ptr: ::std::option::Option<
94         unsafe extern "C" fn(
95             env: *mut emacs_env,
96             fin: ::std::option::Option<
97                 unsafe extern "C" fn(arg1: *mut ::libc::c_void),
98             >,
99             ptr: *mut ::libc::c_void,
100         ) -> emacs_value,
101     >,
102     pub get_user_ptr: ::std::option::Option<
103         unsafe extern "C" fn(env: *mut emacs_env, uptr: emacs_value) -> *mut ::libc::c_void,
104     >,
105     pub set_user_ptr: ::std::option::Option<
106         unsafe extern "C" fn(env: *mut emacs_env, uptr: emacs_value, ptr: *mut ::libc::c_void),
107     >,
108     pub get_user_finalizer: ::std::option::Option<
109         unsafe extern "C" fn(
110             arg1: *mut ::libc::c_void, env: *mut emacs_env, uptr: emacs_value
111         ) -> ::std::option::Option<
112             unsafe extern "C" fn(arg1: *mut ::libc::c_void, env: *mut emacs_env, uptr: emacs_value),
113         >,
114     >,
115     pub set_user_finalizer: ::std::option::Option<
116         unsafe extern "C" fn(
117             env: *mut emacs_env,
118             uptr: emacs_value,
119             fin: ::std::option::Option<
120                 unsafe extern "C" fn(arg1: *mut ::libc::c_void),
121             >,
122         ),
123     >,
124     pub vec_get: ::std::option::Option<
125         unsafe extern "C" fn(env: *mut emacs_env, vec: emacs_value, i: isize) -> emacs_value,
126     >,
127     pub vec_set: ::std::option::Option<
128         unsafe extern "C" fn(env: *mut emacs_env, vec: emacs_value, i: isize, val: emacs_value),
129     >,
130     pub vec_size:
131         ::std::option::Option<unsafe extern "C" fn(env: *mut emacs_env, vec: emacs_value) -> isize>,
132 }