]> git.proxmox.com Git - rustc.git/blame - src/tools/rustfmt/tests/target/issue-2164.rs
Update upstream source from tag 'upstream/1.52.1+dfsg1'
[rustc.git] / src / tools / rustfmt / tests / target / issue-2164.rs
CommitLineData
f20569fa
XL
1// A stress test against code generated by bindgen.
2#[repr(C)]
3#[derive(Debug, Copy, Clone)]
4pub 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(
60 env: *mut emacs_env,
61 symbol_name: *const ::libc::c_char,
62 ) -> emacs_value,
63 >,
64 pub type_of: ::std::option::Option<
65 unsafe extern "C" fn(env: *mut emacs_env, value: emacs_value) -> emacs_value,
66 >,
67 pub is_not_nil: ::std::option::Option<
68 unsafe extern "C" fn(env: *mut emacs_env, value: emacs_value) -> bool,
69 >,
70 pub eq: ::std::option::Option<
71 unsafe extern "C" fn(env: *mut emacs_env, a: emacs_value, b: emacs_value) -> bool,
72 >,
73 pub extract_integer: ::std::option::Option<
74 unsafe extern "C" fn(env: *mut emacs_env, value: emacs_value) -> intmax_t,
75 >,
76 pub make_integer: ::std::option::Option<
77 unsafe extern "C" fn(env: *mut emacs_env, value: intmax_t) -> emacs_value,
78 >,
79 pub extract_float:
80 ::std::option::Option<unsafe extern "C" fn(env: *mut emacs_env, value: emacs_value) -> f64>,
81 pub make_float:
82 ::std::option::Option<unsafe extern "C" fn(env: *mut emacs_env, value: f64) -> emacs_value>,
83 pub copy_string_contents: ::std::option::Option<
84 unsafe extern "C" fn(
85 env: *mut emacs_env,
86 value: emacs_value,
87 buffer: *mut ::libc::c_char,
88 size_inout: *mut isize,
89 ) -> bool,
90 >,
91 pub make_string: ::std::option::Option<
92 unsafe extern "C" fn(
93 env: *mut emacs_env,
94 contents: *const ::libc::c_char,
95 length: isize,
96 ) -> emacs_value,
97 >,
98 pub make_user_ptr: ::std::option::Option<
99 unsafe extern "C" fn(
100 env: *mut emacs_env,
101 fin: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::libc::c_void)>,
102 ptr: *mut ::libc::c_void,
103 ) -> emacs_value,
104 >,
105 pub get_user_ptr: ::std::option::Option<
106 unsafe extern "C" fn(env: *mut emacs_env, uptr: emacs_value) -> *mut ::libc::c_void,
107 >,
108 pub set_user_ptr: ::std::option::Option<
109 unsafe extern "C" fn(env: *mut emacs_env, uptr: emacs_value, ptr: *mut ::libc::c_void),
110 >,
111 pub get_user_finalizer: ::std::option::Option<
112 unsafe extern "C" fn(
113 arg1: *mut ::libc::c_void,
114 env: *mut emacs_env,
115 uptr: emacs_value,
116 ) -> ::std::option::Option<
117 unsafe extern "C" fn(arg1: *mut ::libc::c_void, env: *mut emacs_env, uptr: emacs_value),
118 >,
119 >,
120 pub set_user_finalizer: ::std::option::Option<
121 unsafe extern "C" fn(
122 env: *mut emacs_env,
123 uptr: emacs_value,
124 fin: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::libc::c_void)>,
125 ),
126 >,
127 pub vec_get: ::std::option::Option<
128 unsafe extern "C" fn(env: *mut emacs_env, vec: emacs_value, i: isize) -> emacs_value,
129 >,
130 pub vec_set: ::std::option::Option<
131 unsafe extern "C" fn(env: *mut emacs_env, vec: emacs_value, i: isize, val: emacs_value),
132 >,
133 pub vec_size:
134 ::std::option::Option<unsafe extern "C" fn(env: *mut emacs_env, vec: emacs_value) -> isize>,
135}