1#[repr(C)]
4#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
5pub struct __BindgenBitfieldUnit<Storage> {
6 storage: Storage,
7}
8impl<Storage> __BindgenBitfieldUnit<Storage> {
9 #[inline]
10 pub const fn new(storage: Storage) -> Self {
11 Self { storage }
12 }
13}
14impl<Storage> __BindgenBitfieldUnit<Storage>
15where
16 Storage: AsRef<[u8]> + AsMut<[u8]>,
17{
18 #[inline]
19 fn extract_bit(byte: u8, index: usize) -> bool {
20 let bit_index = if cfg!(target_endian = "big") {
21 7 - (index % 8)
22 } else {
23 index % 8
24 };
25 let mask = 1 << bit_index;
26 byte & mask == mask
27 }
28 #[inline]
29 pub fn get_bit(&self, index: usize) -> bool {
30 debug_assert!(index / 8 < self.storage.as_ref().len());
31 let byte_index = index / 8;
32 let byte = self.storage.as_ref()[byte_index];
33 Self::extract_bit(byte, index)
34 }
35 #[inline]
36 pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
37 debug_assert!(index / 8 < core::mem::size_of::<Storage>());
38 let byte_index = index / 8;
39 let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize);
40 Self::extract_bit(byte, index)
41 }
42 #[inline]
43 fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
44 let bit_index = if cfg!(target_endian = "big") {
45 7 - (index % 8)
46 } else {
47 index % 8
48 };
49 let mask = 1 << bit_index;
50 if val {
51 byte | mask
52 } else {
53 byte & !mask
54 }
55 }
56 #[inline]
57 pub fn set_bit(&mut self, index: usize, val: bool) {
58 debug_assert!(index / 8 < self.storage.as_ref().len());
59 let byte_index = index / 8;
60 let byte = &mut self.storage.as_mut()[byte_index];
61 *byte = Self::change_bit(*byte, index, val);
62 }
63 #[inline]
64 pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
65 debug_assert!(index / 8 < core::mem::size_of::<Storage>());
66 let byte_index = index / 8;
67 let byte =
68 (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize);
69 *byte = Self::change_bit(*byte, index, val);
70 }
71 #[inline]
72 pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
73 debug_assert!(bit_width <= 64);
74 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
75 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
76 let mut val = 0;
77 for i in 0..(bit_width as usize) {
78 if self.get_bit(i + bit_offset) {
79 let index = if cfg!(target_endian = "big") {
80 bit_width as usize - 1 - i
81 } else {
82 i
83 };
84 val |= 1 << index;
85 }
86 }
87 val
88 }
89 #[inline]
90 pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
91 debug_assert!(bit_width <= 64);
92 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
93 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
94 let mut val = 0;
95 for i in 0..(bit_width as usize) {
96 if Self::raw_get_bit(this, i + bit_offset) {
97 let index = if cfg!(target_endian = "big") {
98 bit_width as usize - 1 - i
99 } else {
100 i
101 };
102 val |= 1 << index;
103 }
104 }
105 val
106 }
107 #[inline]
108 pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
109 debug_assert!(bit_width <= 64);
110 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
111 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
112 for i in 0..(bit_width as usize) {
113 let mask = 1 << i;
114 let val_bit_is_set = val & mask == mask;
115 let index = if cfg!(target_endian = "big") {
116 bit_width as usize - 1 - i
117 } else {
118 i
119 };
120 self.set_bit(index + bit_offset, val_bit_is_set);
121 }
122 }
123 #[inline]
124 pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
125 debug_assert!(bit_width <= 64);
126 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
127 debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
128 for i in 0..(bit_width as usize) {
129 let mask = 1 << i;
130 let val_bit_is_set = val & mask == mask;
131 let index = if cfg!(target_endian = "big") {
132 bit_width as usize - 1 - i
133 } else {
134 i
135 };
136 Self::raw_set_bit(this, index + bit_offset, val_bit_is_set);
137 }
138 }
139}
140#[repr(C)]
141#[derive(Default)]
142pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
143impl<T> __IncompleteArrayField<T> {
144 #[inline]
145 pub const fn new() -> Self {
146 __IncompleteArrayField(::std::marker::PhantomData, [])
147 }
148 #[inline]
149 pub fn as_ptr(&self) -> *const T {
150 self as *const _ as *const T
151 }
152 #[inline]
153 pub fn as_mut_ptr(&mut self) -> *mut T {
154 self as *mut _ as *mut T
155 }
156 #[inline]
157 pub unsafe fn as_slice(&self, len: usize) -> &[T] {
158 ::std::slice::from_raw_parts(self.as_ptr(), len)
159 }
160 #[inline]
161 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
162 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
163 }
164}
165impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
166 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
167 fmt.write_str("__IncompleteArrayField")
168 }
169}
170#[repr(C)]
171#[derive(Debug, Copy, Clone)]
172pub struct __sigset_t {
173 pub __val: [usize; 16usize],
174}
175#[repr(C)]
176#[derive(Debug, Copy, Clone)]
177pub struct __pthread_internal_list {
178 pub __prev: *mut __pthread_internal_list,
179 pub __next: *mut __pthread_internal_list,
180}
181pub type __pthread_list_t = __pthread_internal_list;
182#[repr(C)]
183#[derive(Debug, Copy, Clone)]
184pub struct __pthread_mutex_s {
185 pub __lock: ::std::os::raw::c_int,
186 pub __count: ::std::os::raw::c_uint,
187 pub __owner: ::std::os::raw::c_int,
188 pub __nusers: ::std::os::raw::c_uint,
189 pub __kind: ::std::os::raw::c_int,
190 pub __spins: ::std::os::raw::c_short,
191 pub __elision: ::std::os::raw::c_short,
192 pub __list: __pthread_list_t,
193}
194#[repr(C)]
195#[derive(Copy, Clone)]
196pub struct __pthread_cond_s {
197 pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
198 pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
199 pub __g_refs: [::std::os::raw::c_uint; 2usize],
200 pub __g_size: [::std::os::raw::c_uint; 2usize],
201 pub __g1_orig_size: ::std::os::raw::c_uint,
202 pub __wrefs: ::std::os::raw::c_uint,
203 pub __g_signals: [::std::os::raw::c_uint; 2usize],
204}
205#[repr(C)]
206#[derive(Copy, Clone)]
207pub union __pthread_cond_s__bindgen_ty_1 {
208 pub __wseq: ::std::os::raw::c_ulonglong,
209 pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
210}
211#[repr(C)]
212#[derive(Debug, Copy, Clone)]
213pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
214 pub __low: ::std::os::raw::c_uint,
215 pub __high: ::std::os::raw::c_uint,
216}
217impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_1 {
218 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
219 write!(f, "__pthread_cond_s__bindgen_ty_1 {{ union }}")
220 }
221}
222#[repr(C)]
223#[derive(Copy, Clone)]
224pub union __pthread_cond_s__bindgen_ty_2 {
225 pub __g1_start: ::std::os::raw::c_ulonglong,
226 pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
227}
228#[repr(C)]
229#[derive(Debug, Copy, Clone)]
230pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
231 pub __low: ::std::os::raw::c_uint,
232 pub __high: ::std::os::raw::c_uint,
233}
234impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_2 {
235 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
236 write!(f, "__pthread_cond_s__bindgen_ty_2 {{ union }}")
237 }
238}
239impl ::std::fmt::Debug for __pthread_cond_s {
240 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
241 write ! (f , "__pthread_cond_s {{ __bindgen_anon_1: {:?}, __bindgen_anon_2: {:?}, __g_refs: {:?}, __g_size: {:?}, __g1_orig_size: {:?}, __wrefs: {:?}, __g_signals: {:?} }}" , self . __bindgen_anon_1 , self . __bindgen_anon_2 , self . __g_refs , self . __g_size , self . __g1_orig_size , self . __wrefs , self . __g_signals)
242 }
243}
244pub type pthread_t = usize;
245#[repr(C)]
246#[derive(Copy, Clone)]
247pub union pthread_mutex_t {
248 pub __data: __pthread_mutex_s,
249 pub __size: [::std::os::raw::c_char; 40usize],
250 pub __align: ::std::os::raw::c_long,
251}
252impl ::std::fmt::Debug for pthread_mutex_t {
253 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
254 write!(f, "pthread_mutex_t {{ union }}")
255 }
256}
257#[repr(C)]
258#[derive(Copy, Clone)]
259pub union pthread_cond_t {
260 pub __data: __pthread_cond_s,
261 pub __size: [::std::os::raw::c_char; 48usize],
262 pub __align: ::std::os::raw::c_longlong,
263}
264impl ::std::fmt::Debug for pthread_cond_t {
265 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
266 write!(f, "pthread_cond_t {{ union }}")
267 }
268}
269pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
270#[repr(C)]
271#[derive(Debug, Copy, Clone)]
272pub struct __jmp_buf_tag {
273 pub __jmpbuf: __jmp_buf,
274 pub __mask_was_saved: ::std::os::raw::c_int,
275 pub __saved_mask: __sigset_t,
276}
277pub type jmp_buf = [__jmp_buf_tag; 1usize];
278pub type sigjmp_buf = [__jmp_buf_tag; 1usize];
279#[repr(C)]
280#[derive(Debug, Copy, Clone)]
281pub struct ccan_list_node {
282 pub next: *mut ccan_list_node,
283 pub prev: *mut ccan_list_node,
284}
285#[repr(C)]
286#[derive(Debug, Copy, Clone)]
287pub struct ccan_list_head {
288 pub n: ccan_list_node,
289}
290pub const ruby_id_types_RUBY_ID_STATIC_SYM: ruby_id_types = 1;
291pub const ruby_id_types_RUBY_ID_LOCAL: ruby_id_types = 0;
292pub const ruby_id_types_RUBY_ID_INSTANCE: ruby_id_types = 2;
293pub const ruby_id_types_RUBY_ID_GLOBAL: ruby_id_types = 6;
294pub const ruby_id_types_RUBY_ID_ATTRSET: ruby_id_types = 8;
295pub const ruby_id_types_RUBY_ID_CONST: ruby_id_types = 10;
296pub const ruby_id_types_RUBY_ID_CLASS: ruby_id_types = 12;
297pub const ruby_id_types_RUBY_ID_JUNK: ruby_id_types = 14;
298pub const ruby_id_types_RUBY_ID_INTERNAL: ruby_id_types = 14;
299pub const ruby_id_types_RUBY_ID_SCOPE_SHIFT: ruby_id_types = 4;
300pub const ruby_id_types_RUBY_ID_SCOPE_MASK: ruby_id_types = 14;
301pub type ruby_id_types = ::std::os::raw::c_uint;
302pub const ruby_method_ids_idDot2: ruby_method_ids = 128;
303pub const ruby_method_ids_idDot3: ruby_method_ids = 129;
304pub const ruby_method_ids_idUPlus: ruby_method_ids = 132;
305pub const ruby_method_ids_idUMinus: ruby_method_ids = 133;
306pub const ruby_method_ids_idPow: ruby_method_ids = 134;
307pub const ruby_method_ids_idCmp: ruby_method_ids = 135;
308pub const ruby_method_ids_idPLUS: ruby_method_ids = 43;
309pub const ruby_method_ids_idMINUS: ruby_method_ids = 45;
310pub const ruby_method_ids_idMULT: ruby_method_ids = 42;
311pub const ruby_method_ids_idDIV: ruby_method_ids = 47;
312pub const ruby_method_ids_idMOD: ruby_method_ids = 37;
313pub const ruby_method_ids_idLTLT: ruby_method_ids = 136;
314pub const ruby_method_ids_idGTGT: ruby_method_ids = 137;
315pub const ruby_method_ids_idLT: ruby_method_ids = 60;
316pub const ruby_method_ids_idLE: ruby_method_ids = 138;
317pub const ruby_method_ids_idGT: ruby_method_ids = 62;
318pub const ruby_method_ids_idGE: ruby_method_ids = 139;
319pub const ruby_method_ids_idEq: ruby_method_ids = 140;
320pub const ruby_method_ids_idEqq: ruby_method_ids = 141;
321pub const ruby_method_ids_idNeq: ruby_method_ids = 142;
322pub const ruby_method_ids_idNot: ruby_method_ids = 33;
323pub const ruby_method_ids_idAnd: ruby_method_ids = 38;
324pub const ruby_method_ids_idOr: ruby_method_ids = 124;
325pub const ruby_method_ids_idBackquote: ruby_method_ids = 96;
326pub const ruby_method_ids_idEqTilde: ruby_method_ids = 143;
327pub const ruby_method_ids_idNeqTilde: ruby_method_ids = 144;
328pub const ruby_method_ids_idAREF: ruby_method_ids = 145;
329pub const ruby_method_ids_idASET: ruby_method_ids = 146;
330pub const ruby_method_ids_idCOLON2: ruby_method_ids = 147;
331pub const ruby_method_ids_idANDOP: ruby_method_ids = 148;
332pub const ruby_method_ids_idOROP: ruby_method_ids = 149;
333pub const ruby_method_ids_idANDDOT: ruby_method_ids = 150;
334pub const ruby_method_ids_tPRESERVED_ID_BEGIN: ruby_method_ids = 150;
335pub const ruby_method_ids_idNilP: ruby_method_ids = 151;
336pub const ruby_method_ids_idNULL: ruby_method_ids = 152;
337pub const ruby_method_ids_idEmptyP: ruby_method_ids = 153;
338pub const ruby_method_ids_idEqlP: ruby_method_ids = 154;
339pub const ruby_method_ids_idRespond_to: ruby_method_ids = 155;
340pub const ruby_method_ids_idRespond_to_missing: ruby_method_ids = 156;
341pub const ruby_method_ids_idIFUNC: ruby_method_ids = 157;
342pub const ruby_method_ids_idCFUNC: ruby_method_ids = 158;
343pub const ruby_method_ids_id_core_set_method_alias: ruby_method_ids = 159;
344pub const ruby_method_ids_id_core_set_variable_alias: ruby_method_ids = 160;
345pub const ruby_method_ids_id_core_undef_method: ruby_method_ids = 161;
346pub const ruby_method_ids_id_core_define_method: ruby_method_ids = 162;
347pub const ruby_method_ids_id_core_define_singleton_method: ruby_method_ids = 163;
348pub const ruby_method_ids_id_core_set_postexe: ruby_method_ids = 164;
349pub const ruby_method_ids_id_core_hash_merge_ptr: ruby_method_ids = 165;
350pub const ruby_method_ids_id_core_hash_merge_kwd: ruby_method_ids = 166;
351pub const ruby_method_ids_id_core_raise: ruby_method_ids = 167;
352pub const ruby_method_ids_id_core_sprintf: ruby_method_ids = 168;
353pub const ruby_method_ids_id_debug_created_info: ruby_method_ids = 169;
354pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 170;
355pub const ruby_method_ids_tTOKEN_LOCAL_BEGIN: ruby_method_ids = 169;
356pub const ruby_method_ids_tMax: ruby_method_ids = 170;
357pub const ruby_method_ids_tMin: ruby_method_ids = 171;
358pub const ruby_method_ids_tHash: ruby_method_ids = 172;
359pub const ruby_method_ids_tFreeze: ruby_method_ids = 173;
360pub const ruby_method_ids_tInspect: ruby_method_ids = 174;
361pub const ruby_method_ids_tIntern: ruby_method_ids = 175;
362pub const ruby_method_ids_tObject_id: ruby_method_ids = 176;
363pub const ruby_method_ids_tConst_added: ruby_method_ids = 177;
364pub const ruby_method_ids_tConst_missing: ruby_method_ids = 178;
365pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 179;
366pub const ruby_method_ids_tMethod_added: ruby_method_ids = 180;
367pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 181;
368pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 182;
369pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 183;
370pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 184;
371pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 185;
372pub const ruby_method_ids_tLength: ruby_method_ids = 186;
373pub const ruby_method_ids_tSize: ruby_method_ids = 187;
374pub const ruby_method_ids_tGets: ruby_method_ids = 188;
375pub const ruby_method_ids_tSucc: ruby_method_ids = 189;
376pub const ruby_method_ids_tEach: ruby_method_ids = 190;
377pub const ruby_method_ids_tProc: ruby_method_ids = 191;
378pub const ruby_method_ids_tLambda: ruby_method_ids = 192;
379pub const ruby_method_ids_tSend: ruby_method_ids = 193;
380pub const ruby_method_ids_t__send__: ruby_method_ids = 194;
381pub const ruby_method_ids_t__recursive_key__: ruby_method_ids = 195;
382pub const ruby_method_ids_tInitialize: ruby_method_ids = 196;
383pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 197;
384pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 198;
385pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 199;
386pub const ruby_method_ids_tTo_int: ruby_method_ids = 200;
387pub const ruby_method_ids_tTo_ary: ruby_method_ids = 201;
388pub const ruby_method_ids_tTo_str: ruby_method_ids = 202;
389pub const ruby_method_ids_tTo_sym: ruby_method_ids = 203;
390pub const ruby_method_ids_tTo_hash: ruby_method_ids = 204;
391pub const ruby_method_ids_tTo_proc: ruby_method_ids = 205;
392pub const ruby_method_ids_tTo_io: ruby_method_ids = 206;
393pub const ruby_method_ids_tTo_a: ruby_method_ids = 207;
394pub const ruby_method_ids_tTo_s: ruby_method_ids = 208;
395pub const ruby_method_ids_tTo_i: ruby_method_ids = 209;
396pub const ruby_method_ids_tTo_f: ruby_method_ids = 210;
397pub const ruby_method_ids_tTo_r: ruby_method_ids = 211;
398pub const ruby_method_ids_tBt: ruby_method_ids = 212;
399pub const ruby_method_ids_tBt_locations: ruby_method_ids = 213;
400pub const ruby_method_ids_tCall: ruby_method_ids = 214;
401pub const ruby_method_ids_tMesg: ruby_method_ids = 215;
402pub const ruby_method_ids_tException: ruby_method_ids = 216;
403pub const ruby_method_ids_tLocals: ruby_method_ids = 217;
404pub const ruby_method_ids_tNOT: ruby_method_ids = 218;
405pub const ruby_method_ids_tAND: ruby_method_ids = 219;
406pub const ruby_method_ids_tOR: ruby_method_ids = 220;
407pub const ruby_method_ids_tDiv: ruby_method_ids = 221;
408pub const ruby_method_ids_tDivmod: ruby_method_ids = 222;
409pub const ruby_method_ids_tFdiv: ruby_method_ids = 223;
410pub const ruby_method_ids_tQuo: ruby_method_ids = 224;
411pub const ruby_method_ids_tName: ruby_method_ids = 225;
412pub const ruby_method_ids_tNil: ruby_method_ids = 226;
413pub const ruby_method_ids_tPath: ruby_method_ids = 227;
414pub const ruby_method_ids_tUScore: ruby_method_ids = 228;
415pub const ruby_method_ids_tNUMPARAM_1: ruby_method_ids = 229;
416pub const ruby_method_ids_tNUMPARAM_2: ruby_method_ids = 230;
417pub const ruby_method_ids_tNUMPARAM_3: ruby_method_ids = 231;
418pub const ruby_method_ids_tNUMPARAM_4: ruby_method_ids = 232;
419pub const ruby_method_ids_tNUMPARAM_5: ruby_method_ids = 233;
420pub const ruby_method_ids_tNUMPARAM_6: ruby_method_ids = 234;
421pub const ruby_method_ids_tNUMPARAM_7: ruby_method_ids = 235;
422pub const ruby_method_ids_tNUMPARAM_8: ruby_method_ids = 236;
423pub const ruby_method_ids_tNUMPARAM_9: ruby_method_ids = 237;
424pub const ruby_method_ids_tDefault: ruby_method_ids = 238;
425pub const ruby_method_ids_tTOKEN_LOCAL_END: ruby_method_ids = 239;
426pub const ruby_method_ids_tTOKEN_INSTANCE_BEGIN: ruby_method_ids = 238;
427pub const ruby_method_ids_tTOKEN_INSTANCE_END: ruby_method_ids = 239;
428pub const ruby_method_ids_tTOKEN_GLOBAL_BEGIN: ruby_method_ids = 238;
429pub const ruby_method_ids_tLASTLINE: ruby_method_ids = 239;
430pub const ruby_method_ids_tBACKREF: ruby_method_ids = 240;
431pub const ruby_method_ids_tERROR_INFO: ruby_method_ids = 241;
432pub const ruby_method_ids_tTOKEN_GLOBAL_END: ruby_method_ids = 242;
433pub const ruby_method_ids_tTOKEN_CONST_BEGIN: ruby_method_ids = 241;
434pub const ruby_method_ids_tTOKEN_CONST_END: ruby_method_ids = 242;
435pub const ruby_method_ids_tTOKEN_CLASS_BEGIN: ruby_method_ids = 241;
436pub const ruby_method_ids_tTOKEN_CLASS_END: ruby_method_ids = 242;
437pub const ruby_method_ids_tTOKEN_ATTRSET_BEGIN: ruby_method_ids = 241;
438pub const ruby_method_ids_tTOKEN_ATTRSET_END: ruby_method_ids = 242;
439pub const ruby_method_ids_tNEXT_ID: ruby_method_ids = 242;
440pub const ruby_method_ids_idMax: ruby_method_ids = 2721;
441pub const ruby_method_ids_idMin: ruby_method_ids = 2737;
442pub const ruby_method_ids_idHash: ruby_method_ids = 2753;
443pub const ruby_method_ids_idFreeze: ruby_method_ids = 2769;
444pub const ruby_method_ids_idInspect: ruby_method_ids = 2785;
445pub const ruby_method_ids_idIntern: ruby_method_ids = 2801;
446pub const ruby_method_ids_idObject_id: ruby_method_ids = 2817;
447pub const ruby_method_ids_idConst_added: ruby_method_ids = 2833;
448pub const ruby_method_ids_idConst_missing: ruby_method_ids = 2849;
449pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 2865;
450pub const ruby_method_ids_idMethod_added: ruby_method_ids = 2881;
451pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 2897;
452pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 2913;
453pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 2929;
454pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 2945;
455pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 2961;
456pub const ruby_method_ids_idLength: ruby_method_ids = 2977;
457pub const ruby_method_ids_idSize: ruby_method_ids = 2993;
458pub const ruby_method_ids_idGets: ruby_method_ids = 3009;
459pub const ruby_method_ids_idSucc: ruby_method_ids = 3025;
460pub const ruby_method_ids_idEach: ruby_method_ids = 3041;
461pub const ruby_method_ids_idProc: ruby_method_ids = 3057;
462pub const ruby_method_ids_idLambda: ruby_method_ids = 3073;
463pub const ruby_method_ids_idSend: ruby_method_ids = 3089;
464pub const ruby_method_ids_id__send__: ruby_method_ids = 3105;
465pub const ruby_method_ids_id__recursive_key__: ruby_method_ids = 3121;
466pub const ruby_method_ids_idInitialize: ruby_method_ids = 3137;
467pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 3153;
468pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 3169;
469pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 3185;
470pub const ruby_method_ids_idTo_int: ruby_method_ids = 3201;
471pub const ruby_method_ids_idTo_ary: ruby_method_ids = 3217;
472pub const ruby_method_ids_idTo_str: ruby_method_ids = 3233;
473pub const ruby_method_ids_idTo_sym: ruby_method_ids = 3249;
474pub const ruby_method_ids_idTo_hash: ruby_method_ids = 3265;
475pub const ruby_method_ids_idTo_proc: ruby_method_ids = 3281;
476pub const ruby_method_ids_idTo_io: ruby_method_ids = 3297;
477pub const ruby_method_ids_idTo_a: ruby_method_ids = 3313;
478pub const ruby_method_ids_idTo_s: ruby_method_ids = 3329;
479pub const ruby_method_ids_idTo_i: ruby_method_ids = 3345;
480pub const ruby_method_ids_idTo_f: ruby_method_ids = 3361;
481pub const ruby_method_ids_idTo_r: ruby_method_ids = 3377;
482pub const ruby_method_ids_idBt: ruby_method_ids = 3393;
483pub const ruby_method_ids_idBt_locations: ruby_method_ids = 3409;
484pub const ruby_method_ids_idCall: ruby_method_ids = 3425;
485pub const ruby_method_ids_idMesg: ruby_method_ids = 3441;
486pub const ruby_method_ids_idException: ruby_method_ids = 3457;
487pub const ruby_method_ids_idLocals: ruby_method_ids = 3473;
488pub const ruby_method_ids_idNOT: ruby_method_ids = 3489;
489pub const ruby_method_ids_idAND: ruby_method_ids = 3505;
490pub const ruby_method_ids_idOR: ruby_method_ids = 3521;
491pub const ruby_method_ids_idDiv: ruby_method_ids = 3537;
492pub const ruby_method_ids_idDivmod: ruby_method_ids = 3553;
493pub const ruby_method_ids_idFdiv: ruby_method_ids = 3569;
494pub const ruby_method_ids_idQuo: ruby_method_ids = 3585;
495pub const ruby_method_ids_idName: ruby_method_ids = 3601;
496pub const ruby_method_ids_idNil: ruby_method_ids = 3617;
497pub const ruby_method_ids_idPath: ruby_method_ids = 3633;
498pub const ruby_method_ids_idUScore: ruby_method_ids = 3649;
499pub const ruby_method_ids_idNUMPARAM_1: ruby_method_ids = 3665;
500pub const ruby_method_ids_idNUMPARAM_2: ruby_method_ids = 3681;
501pub const ruby_method_ids_idNUMPARAM_3: ruby_method_ids = 3697;
502pub const ruby_method_ids_idNUMPARAM_4: ruby_method_ids = 3713;
503pub const ruby_method_ids_idNUMPARAM_5: ruby_method_ids = 3729;
504pub const ruby_method_ids_idNUMPARAM_6: ruby_method_ids = 3745;
505pub const ruby_method_ids_idNUMPARAM_7: ruby_method_ids = 3761;
506pub const ruby_method_ids_idNUMPARAM_8: ruby_method_ids = 3777;
507pub const ruby_method_ids_idNUMPARAM_9: ruby_method_ids = 3793;
508pub const ruby_method_ids_idDefault: ruby_method_ids = 3809;
509pub const ruby_method_ids_idLASTLINE: ruby_method_ids = 3831;
510pub const ruby_method_ids_idBACKREF: ruby_method_ids = 3847;
511pub const ruby_method_ids_idERROR_INFO: ruby_method_ids = 3863;
512pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 169;
513pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 10;
514pub type ruby_method_ids = ::std::os::raw::c_uint;
515pub type VALUE = usize;
516pub type ID = usize;
517#[repr(C)]
518#[derive(Debug, Copy, Clone)]
519pub struct RBasic {
520 pub flags: VALUE,
521 pub klass: VALUE,
522}
523pub const ruby_fl_ushift_RUBY_FL_USHIFT: ruby_fl_ushift = 12;
524pub type ruby_fl_ushift = ::std::os::raw::c_uint;
525pub const ruby_fl_type_RUBY_FL_WB_PROTECTED: ruby_fl_type = 32;
526pub const ruby_fl_type_RUBY_FL_PROMOTED: ruby_fl_type = 32;
527pub const ruby_fl_type_RUBY_FL_UNUSED6: ruby_fl_type = 64;
528pub const ruby_fl_type_RUBY_FL_FINALIZE: ruby_fl_type = 128;
529pub const ruby_fl_type_RUBY_FL_TAINT: ruby_fl_type = 0;
530pub const ruby_fl_type_RUBY_FL_SHAREABLE: ruby_fl_type = 256;
531pub const ruby_fl_type_RUBY_FL_UNTRUSTED: ruby_fl_type = 0;
532pub const ruby_fl_type_RUBY_FL_SEEN_OBJ_ID: ruby_fl_type = 512;
533pub const ruby_fl_type_RUBY_FL_EXIVAR: ruby_fl_type = 1024;
534pub const ruby_fl_type_RUBY_FL_FREEZE: ruby_fl_type = 2048;
535pub const ruby_fl_type_RUBY_FL_USER0: ruby_fl_type = 4096;
536pub const ruby_fl_type_RUBY_FL_USER1: ruby_fl_type = 8192;
537pub const ruby_fl_type_RUBY_FL_USER2: ruby_fl_type = 16384;
538pub const ruby_fl_type_RUBY_FL_USER3: ruby_fl_type = 32768;
539pub const ruby_fl_type_RUBY_FL_USER4: ruby_fl_type = 65536;
540pub const ruby_fl_type_RUBY_FL_USER5: ruby_fl_type = 131072;
541pub const ruby_fl_type_RUBY_FL_USER6: ruby_fl_type = 262144;
542pub const ruby_fl_type_RUBY_FL_USER7: ruby_fl_type = 524288;
543pub const ruby_fl_type_RUBY_FL_USER8: ruby_fl_type = 1048576;
544pub const ruby_fl_type_RUBY_FL_USER9: ruby_fl_type = 2097152;
545pub const ruby_fl_type_RUBY_FL_USER10: ruby_fl_type = 4194304;
546pub const ruby_fl_type_RUBY_FL_USER11: ruby_fl_type = 8388608;
547pub const ruby_fl_type_RUBY_FL_USER12: ruby_fl_type = 16777216;
548pub const ruby_fl_type_RUBY_FL_USER13: ruby_fl_type = 33554432;
549pub const ruby_fl_type_RUBY_FL_USER14: ruby_fl_type = 67108864;
550pub const ruby_fl_type_RUBY_FL_USER15: ruby_fl_type = 134217728;
551pub const ruby_fl_type_RUBY_FL_USER16: ruby_fl_type = 268435456;
552pub const ruby_fl_type_RUBY_FL_USER17: ruby_fl_type = 536870912;
553pub const ruby_fl_type_RUBY_FL_USER18: ruby_fl_type = 1073741824;
554pub const ruby_fl_type_RUBY_FL_USER19: ruby_fl_type = -2147483648;
555pub const ruby_fl_type_RUBY_ELTS_SHARED: ruby_fl_type = 16384;
556pub const ruby_fl_type_RUBY_FL_SINGLETON: ruby_fl_type = 4096;
557pub type ruby_fl_type = ::std::os::raw::c_int;
558#[repr(C)]
559#[derive(Copy, Clone)]
560pub struct RString {
561 pub basic: RBasic,
562 pub len: ::std::os::raw::c_long,
563 pub as_: RString__bindgen_ty_1,
564}
565#[repr(C)]
566#[derive(Copy, Clone)]
567pub union RString__bindgen_ty_1 {
568 pub heap: RString__bindgen_ty_1__bindgen_ty_1,
569 pub embed: RString__bindgen_ty_1__bindgen_ty_2,
570}
571#[repr(C)]
572#[derive(Copy, Clone)]
573pub struct RString__bindgen_ty_1__bindgen_ty_1 {
574 pub ptr: *mut ::std::os::raw::c_char,
575 pub aux: RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
576}
577#[repr(C)]
578#[derive(Copy, Clone)]
579pub union RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
580 pub capa: ::std::os::raw::c_long,
581 pub shared: VALUE,
582}
583impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
584 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
585 write!(
586 f,
587 "RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
588 )
589 }
590}
591impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1 {
592 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
593 write!(
594 f,
595 "RString__bindgen_ty_1__bindgen_ty_1 {{ ptr: {:?}, aux: {:?} }}",
596 self.ptr, self.aux
597 )
598 }
599}
600#[repr(C)]
601#[derive(Debug, Copy, Clone)]
602pub struct RString__bindgen_ty_1__bindgen_ty_2 {
603 pub ary: [::std::os::raw::c_char; 1usize],
604}
605impl ::std::fmt::Debug for RString__bindgen_ty_1 {
606 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
607 write!(f, "RString__bindgen_ty_1 {{ union }}")
608 }
609}
610impl ::std::fmt::Debug for RString {
611 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
612 write!(
613 f,
614 "RString {{ basic: {:?}, len: {:?}, as: {:?} }}",
615 self.basic, self.len, self.as_
616 )
617 }
618}
619pub type st_data_t = usize;
620pub type st_index_t = st_data_t;
621#[repr(C)]
622#[derive(Debug, Copy, Clone)]
623pub struct st_hash_type {
624 pub compare: ::std::option::Option<
625 unsafe extern "C" fn(arg1: st_data_t, arg2: st_data_t) -> ::std::os::raw::c_int,
626 >,
627 pub hash: ::std::option::Option<unsafe extern "C" fn(arg1: st_data_t) -> st_index_t>,
628}
629#[repr(C)]
630#[derive(Debug, Copy, Clone)]
631pub struct st_table_entry {
632 _unused: [u8; 0],
633}
634#[repr(C)]
635#[derive(Debug, Copy, Clone)]
636pub struct st_table {
637 pub entry_power: ::std::os::raw::c_uchar,
638 pub bin_power: ::std::os::raw::c_uchar,
639 pub size_ind: ::std::os::raw::c_uchar,
640 pub rebuilds_num: ::std::os::raw::c_uint,
641 pub type_: *const st_hash_type,
642 pub num_entries: st_index_t,
643 pub bins: *mut st_index_t,
644 pub entries_start: st_index_t,
645 pub entries_bound: st_index_t,
646 pub entries: *mut st_table_entry,
647}
648#[repr(C)]
649#[derive(Copy, Clone)]
650pub struct RArray {
651 pub basic: RBasic,
652 pub as_: RArray__bindgen_ty_1,
653}
654#[repr(C)]
655#[derive(Copy, Clone)]
656pub union RArray__bindgen_ty_1 {
657 pub heap: RArray__bindgen_ty_1__bindgen_ty_1,
658 pub ary: [VALUE; 1usize],
659}
660#[repr(C)]
661#[derive(Copy, Clone)]
662pub struct RArray__bindgen_ty_1__bindgen_ty_1 {
663 pub len: ::std::os::raw::c_long,
664 pub aux: RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
665 pub ptr: *const VALUE,
666}
667#[repr(C)]
668#[derive(Copy, Clone)]
669pub union RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
670 pub capa: ::std::os::raw::c_long,
671 pub shared_root: VALUE,
672}
673impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
674 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
675 write!(
676 f,
677 "RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
678 )
679 }
680}
681impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1 {
682 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
683 write!(
684 f,
685 "RArray__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, aux: {:?}, ptr: {:?} }}",
686 self.len, self.aux, self.ptr
687 )
688 }
689}
690impl ::std::fmt::Debug for RArray__bindgen_ty_1 {
691 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
692 write!(f, "RArray__bindgen_ty_1 {{ union }}")
693 }
694}
695impl ::std::fmt::Debug for RArray {
696 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
697 write!(
698 f,
699 "RArray {{ basic: {:?}, as: {:?} }}",
700 self.basic, self.as_
701 )
702 }
703}
704pub type rb_event_flag_t = u32;
705pub type rb_unblock_function_t =
706 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
707pub type rb_serial_t = ::std::os::raw::c_ulonglong;
708pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
709pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
710pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
711pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
712pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
713pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
714pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
715pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
716pub type method_missing_reason = ::std::os::raw::c_uint;
717#[repr(C)]
718#[derive(Debug, Copy, Clone)]
719pub struct rb_callcache {
720 _unused: [u8; 0],
721}
722pub const imemo_type_imemo_env: imemo_type = 0;
723pub const imemo_type_imemo_cref: imemo_type = 1;
724pub const imemo_type_imemo_svar: imemo_type = 2;
725pub const imemo_type_imemo_throw_data: imemo_type = 3;
726pub const imemo_type_imemo_ifunc: imemo_type = 4;
727pub const imemo_type_imemo_memo: imemo_type = 5;
728pub const imemo_type_imemo_ment: imemo_type = 6;
729pub const imemo_type_imemo_iseq: imemo_type = 7;
730pub const imemo_type_imemo_tmpbuf: imemo_type = 8;
731pub const imemo_type_imemo_ast: imemo_type = 9;
732pub const imemo_type_imemo_parser_strterm: imemo_type = 10;
733pub const imemo_type_imemo_callinfo: imemo_type = 11;
734pub const imemo_type_imemo_callcache: imemo_type = 12;
735pub const imemo_type_imemo_constcache: imemo_type = 13;
736pub type imemo_type = ::std::os::raw::c_uint;
737#[repr(C)]
738#[derive(Debug, Copy, Clone)]
739pub struct vm_svar {
740 pub flags: VALUE,
741 pub cref_or_me: VALUE,
742 pub lastline: VALUE,
743 pub backref: VALUE,
744 pub others: VALUE,
745}
746pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
747pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
748pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
749pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
750pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
751pub type rb_method_visibility_t = ::std::os::raw::c_uint;
752#[repr(C)]
753#[repr(align(4))]
754#[derive(Debug, Copy, Clone)]
755pub struct rb_scope_visi_struct {
756 pub _bitfield_align_1: [u8; 0],
757 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
758 pub __bindgen_padding_0: [u8; 3usize],
759}
760impl rb_scope_visi_struct {
761 #[inline]
762 pub fn method_visi(&self) -> rb_method_visibility_t {
763 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 3u8) as u32) }
764 }
765 #[inline]
766 pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
767 unsafe {
768 let val: u32 = ::std::mem::transmute(val);
769 self._bitfield_1.set(0usize, 3u8, val as u64)
770 }
771 }
772 #[inline]
773 pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
774 unsafe {
775 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
776 ::std::ptr::addr_of!((*this)._bitfield_1),
777 0usize,
778 3u8,
779 ) as u32)
780 }
781 }
782 #[inline]
783 pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
784 unsafe {
785 let val: u32 = ::std::mem::transmute(val);
786 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
787 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
788 0usize,
789 3u8,
790 val as u64,
791 )
792 }
793 }
794 #[inline]
795 pub fn module_func(&self) -> ::std::os::raw::c_uint {
796 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
797 }
798 #[inline]
799 pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
800 unsafe {
801 let val: u32 = ::std::mem::transmute(val);
802 self._bitfield_1.set(3usize, 1u8, val as u64)
803 }
804 }
805 #[inline]
806 pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
807 unsafe {
808 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
809 ::std::ptr::addr_of!((*this)._bitfield_1),
810 3usize,
811 1u8,
812 ) as u32)
813 }
814 }
815 #[inline]
816 pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
817 unsafe {
818 let val: u32 = ::std::mem::transmute(val);
819 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
820 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
821 3usize,
822 1u8,
823 val as u64,
824 )
825 }
826 }
827 #[inline]
828 pub fn new_bitfield_1(
829 method_visi: rb_method_visibility_t,
830 module_func: ::std::os::raw::c_uint,
831 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
832 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
833 __bindgen_bitfield_unit.set(0usize, 3u8, {
834 let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
835 method_visi as u64
836 });
837 __bindgen_bitfield_unit.set(3usize, 1u8, {
838 let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
839 module_func as u64
840 });
841 __bindgen_bitfield_unit
842 }
843}
844pub type rb_scope_visibility_t = rb_scope_visi_struct;
845#[repr(C)]
846#[derive(Debug, Copy, Clone)]
847pub struct rb_cref_struct {
848 pub flags: VALUE,
849 pub refinements: VALUE,
850 pub klass_or_self: VALUE,
851 pub next: *mut rb_cref_struct,
852 pub scope_visi: rb_scope_visibility_t,
853}
854pub type rb_cref_t = rb_cref_struct;
855#[repr(C)]
856#[derive(Debug, Copy, Clone)]
857pub struct rb_method_entry_struct {
858 pub flags: VALUE,
859 pub defined_class: VALUE,
860 pub def: *mut rb_method_definition_struct,
861 pub called_id: ID,
862 pub owner: VALUE,
863}
864pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
865pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
866pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
867pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
868pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
869pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
870pub const rb_method_type_t_VM_METHOD_TYPE_ALIAS: rb_method_type_t = 6;
871pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 7;
872pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 8;
873pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 9;
874pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 10;
875pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 11;
876pub type rb_method_type_t = ::std::os::raw::c_uint;
877pub type rb_iseq_t = rb_iseq_struct;
878#[repr(C)]
879#[derive(Debug, Copy, Clone)]
880pub struct rb_method_iseq_struct {
881 pub iseqptr: *const rb_iseq_t,
882 pub cref: *mut rb_cref_t,
883}
884pub type rb_method_iseq_t = rb_method_iseq_struct;
885#[repr(C)]
886#[derive(Debug, Copy, Clone)]
887pub struct rb_method_cfunc_struct {
888 pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
889 pub invoker: ::std::option::Option<
890 unsafe extern "C" fn(
891 recv: VALUE,
892 argc: ::std::os::raw::c_int,
893 argv: *const VALUE,
894 func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
895 ) -> VALUE,
896 >,
897 pub argc: ::std::os::raw::c_int,
898}
899pub type rb_method_cfunc_t = rb_method_cfunc_struct;
900#[repr(C)]
901#[derive(Debug, Copy, Clone)]
902pub struct rb_method_attr_struct {
903 pub id: ID,
904 pub location: VALUE,
905}
906pub type rb_method_attr_t = rb_method_attr_struct;
907#[repr(C)]
908#[derive(Debug, Copy, Clone)]
909pub struct rb_method_alias_struct {
910 pub original_me: *mut rb_method_entry_struct,
911}
912pub type rb_method_alias_t = rb_method_alias_struct;
913#[repr(C)]
914#[derive(Debug, Copy, Clone)]
915pub struct rb_method_refined_struct {
916 pub orig_me: *mut rb_method_entry_struct,
917}
918pub type rb_method_refined_t = rb_method_refined_struct;
919#[repr(C)]
920#[derive(Debug, Copy, Clone)]
921pub struct rb_method_bmethod_struct {
922 pub proc_: VALUE,
923 pub hooks: *mut rb_hook_list_struct,
924 pub defined_ractor: VALUE,
925}
926pub type rb_method_bmethod_t = rb_method_bmethod_struct;
927pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND: method_optimized_type = 0;
928pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL: method_optimized_type = 1;
929pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_BLOCK_CALL: method_optimized_type = 2;
930pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_STRUCT_AREF: method_optimized_type = 3;
931pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_STRUCT_ASET: method_optimized_type = 4;
932pub const method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX: method_optimized_type = 5;
933pub type method_optimized_type = ::std::os::raw::c_uint;
934#[repr(C)]
935#[derive(Debug, Copy, Clone)]
936pub struct rb_method_optimized {
937 pub type_: method_optimized_type,
938 pub index: ::std::os::raw::c_uint,
939}
940pub type rb_method_optimized_t = rb_method_optimized;
941#[repr(C)]
942#[derive(Copy, Clone)]
943pub struct rb_method_definition_struct {
944 pub _bitfield_align_1: [u32; 0],
945 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
946 pub body: rb_method_definition_struct__bindgen_ty_1,
947 pub original_id: ID,
948 pub method_serial: usize,
949}
950#[repr(C)]
951#[derive(Copy, Clone)]
952pub union rb_method_definition_struct__bindgen_ty_1 {
953 pub iseq: rb_method_iseq_t,
954 pub cfunc: rb_method_cfunc_t,
955 pub attr: rb_method_attr_t,
956 pub alias: rb_method_alias_t,
957 pub refined: rb_method_refined_t,
958 pub bmethod: rb_method_bmethod_t,
959 pub optimized: rb_method_optimized_t,
960}
961impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
962 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
963 write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
964 }
965}
966impl rb_method_definition_struct {
967 #[inline]
968 pub fn type_(&self) -> rb_method_type_t {
969 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 4u8) as u32) }
970 }
971 #[inline]
972 pub fn set_type(&mut self, val: rb_method_type_t) {
973 unsafe {
974 let val: u32 = ::std::mem::transmute(val);
975 self._bitfield_1.set(0usize, 4u8, val as u64)
976 }
977 }
978 #[inline]
979 pub unsafe fn type__raw(this: *const Self) -> rb_method_type_t {
980 unsafe {
981 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
982 ::std::ptr::addr_of!((*this)._bitfield_1),
983 0usize,
984 4u8,
985 ) as u32)
986 }
987 }
988 #[inline]
989 pub unsafe fn set_type_raw(this: *mut Self, val: rb_method_type_t) {
990 unsafe {
991 let val: u32 = ::std::mem::transmute(val);
992 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
993 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
994 0usize,
995 4u8,
996 val as u64,
997 )
998 }
999 }
1000 #[inline]
1001 pub fn iseq_overload(&self) -> ::std::os::raw::c_uint {
1002 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1003 }
1004 #[inline]
1005 pub fn set_iseq_overload(&mut self, val: ::std::os::raw::c_uint) {
1006 unsafe {
1007 let val: u32 = ::std::mem::transmute(val);
1008 self._bitfield_1.set(4usize, 1u8, val as u64)
1009 }
1010 }
1011 #[inline]
1012 pub unsafe fn iseq_overload_raw(this: *const Self) -> ::std::os::raw::c_uint {
1013 unsafe {
1014 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1015 ::std::ptr::addr_of!((*this)._bitfield_1),
1016 4usize,
1017 1u8,
1018 ) as u32)
1019 }
1020 }
1021 #[inline]
1022 pub unsafe fn set_iseq_overload_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1023 unsafe {
1024 let val: u32 = ::std::mem::transmute(val);
1025 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1026 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1027 4usize,
1028 1u8,
1029 val as u64,
1030 )
1031 }
1032 }
1033 #[inline]
1034 pub fn no_redef_warning(&self) -> ::std::os::raw::c_uint {
1035 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1036 }
1037 #[inline]
1038 pub fn set_no_redef_warning(&mut self, val: ::std::os::raw::c_uint) {
1039 unsafe {
1040 let val: u32 = ::std::mem::transmute(val);
1041 self._bitfield_1.set(5usize, 1u8, val as u64)
1042 }
1043 }
1044 #[inline]
1045 pub unsafe fn no_redef_warning_raw(this: *const Self) -> ::std::os::raw::c_uint {
1046 unsafe {
1047 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1048 ::std::ptr::addr_of!((*this)._bitfield_1),
1049 5usize,
1050 1u8,
1051 ) as u32)
1052 }
1053 }
1054 #[inline]
1055 pub unsafe fn set_no_redef_warning_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1056 unsafe {
1057 let val: u32 = ::std::mem::transmute(val);
1058 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1059 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1060 5usize,
1061 1u8,
1062 val as u64,
1063 )
1064 }
1065 }
1066 #[inline]
1067 pub fn aliased(&self) -> ::std::os::raw::c_uint {
1068 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1069 }
1070 #[inline]
1071 pub fn set_aliased(&mut self, val: ::std::os::raw::c_uint) {
1072 unsafe {
1073 let val: u32 = ::std::mem::transmute(val);
1074 self._bitfield_1.set(6usize, 1u8, val as u64)
1075 }
1076 }
1077 #[inline]
1078 pub unsafe fn aliased_raw(this: *const Self) -> ::std::os::raw::c_uint {
1079 unsafe {
1080 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1081 ::std::ptr::addr_of!((*this)._bitfield_1),
1082 6usize,
1083 1u8,
1084 ) as u32)
1085 }
1086 }
1087 #[inline]
1088 pub unsafe fn set_aliased_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1089 unsafe {
1090 let val: u32 = ::std::mem::transmute(val);
1091 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1092 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1093 6usize,
1094 1u8,
1095 val as u64,
1096 )
1097 }
1098 }
1099 #[inline]
1100 pub fn reference_count(&self) -> ::std::os::raw::c_int {
1101 unsafe { ::std::mem::transmute(self._bitfield_1.get(32usize, 28u8) as u32) }
1102 }
1103 #[inline]
1104 pub fn set_reference_count(&mut self, val: ::std::os::raw::c_int) {
1105 unsafe {
1106 let val: u32 = ::std::mem::transmute(val);
1107 self._bitfield_1.set(32usize, 28u8, val as u64)
1108 }
1109 }
1110 #[inline]
1111 pub unsafe fn reference_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1112 unsafe {
1113 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
1114 ::std::ptr::addr_of!((*this)._bitfield_1),
1115 32usize,
1116 28u8,
1117 ) as u32)
1118 }
1119 }
1120 #[inline]
1121 pub unsafe fn set_reference_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1122 unsafe {
1123 let val: u32 = ::std::mem::transmute(val);
1124 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
1125 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1126 32usize,
1127 28u8,
1128 val as u64,
1129 )
1130 }
1131 }
1132 #[inline]
1133 pub fn new_bitfield_1(
1134 type_: rb_method_type_t,
1135 iseq_overload: ::std::os::raw::c_uint,
1136 no_redef_warning: ::std::os::raw::c_uint,
1137 aliased: ::std::os::raw::c_uint,
1138 reference_count: ::std::os::raw::c_int,
1139 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
1140 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
1141 __bindgen_bitfield_unit.set(0usize, 4u8, {
1142 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1143 type_ as u64
1144 });
1145 __bindgen_bitfield_unit.set(4usize, 1u8, {
1146 let iseq_overload: u32 = unsafe { ::std::mem::transmute(iseq_overload) };
1147 iseq_overload as u64
1148 });
1149 __bindgen_bitfield_unit.set(5usize, 1u8, {
1150 let no_redef_warning: u32 = unsafe { ::std::mem::transmute(no_redef_warning) };
1151 no_redef_warning as u64
1152 });
1153 __bindgen_bitfield_unit.set(6usize, 1u8, {
1154 let aliased: u32 = unsafe { ::std::mem::transmute(aliased) };
1155 aliased as u64
1156 });
1157 __bindgen_bitfield_unit.set(32usize, 28u8, {
1158 let reference_count: u32 = unsafe { ::std::mem::transmute(reference_count) };
1159 reference_count as u64
1160 });
1161 __bindgen_bitfield_unit
1162 }
1163}
1164#[repr(C)]
1165#[derive(Debug, Copy, Clone)]
1166pub struct rb_id_table {
1167 _unused: [u8; 0],
1168}
1169#[repr(C)]
1170#[derive(Debug, Copy, Clone)]
1171pub struct rb_code_position_struct {
1172 pub lineno: ::std::os::raw::c_int,
1173 pub column: ::std::os::raw::c_int,
1174}
1175pub type rb_code_position_t = rb_code_position_struct;
1176#[repr(C)]
1177#[derive(Debug, Copy, Clone)]
1178pub struct rb_code_location_struct {
1179 pub beg_pos: rb_code_position_t,
1180 pub end_pos: rb_code_position_t,
1181}
1182pub type rb_code_location_t = rb_code_location_struct;
1183#[repr(C)]
1184#[derive(Debug, Copy, Clone)]
1185pub struct RNode {
1186 pub flags: VALUE,
1187 pub nd_loc: rb_code_location_t,
1188 pub node_id: ::std::os::raw::c_int,
1189}
1190pub type NODE = RNode;
1191pub type rb_atomic_t = ::std::os::raw::c_uint;
1192pub type rb_nativethread_id_t = pthread_t;
1193pub type rb_nativethread_lock_t = pthread_mutex_t;
1194pub type rb_nativethread_cond_t = pthread_cond_t;
1195#[repr(C)]
1196#[derive(Debug, Copy, Clone)]
1197pub struct rb_thread_sched_item {
1198 pub node: rb_thread_sched_item__bindgen_ty_1,
1199 pub waiting_reason: rb_thread_sched_item__bindgen_ty_2,
1200 pub finished: bool,
1201 pub malloc_stack: bool,
1202 pub context_stack: *mut ::std::os::raw::c_void,
1203 pub context: *mut coroutine_context,
1204}
1205#[repr(C)]
1206#[derive(Debug, Copy, Clone)]
1207pub struct rb_thread_sched_item__bindgen_ty_1 {
1208 pub ubf: ccan_list_node,
1209 pub readyq: ccan_list_node,
1210 pub timeslice_threads: ccan_list_node,
1211 pub running_threads: ccan_list_node,
1212 pub zombie_threads: ccan_list_node,
1213}
1214#[repr(C)]
1215#[derive(Debug, Copy, Clone)]
1216pub struct rb_thread_sched_item__bindgen_ty_2 {
1217 pub flags: rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag,
1218 pub data: rb_thread_sched_item__bindgen_ty_2__bindgen_ty_1,
1219 pub node: ccan_list_node,
1220}
1221pub const rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag_thread_sched_waiting_none:
1222 rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = 0;
1223pub const rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag_thread_sched_waiting_timeout : rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = 1 ;
1224pub const rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag_thread_sched_waiting_io_read : rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = 2 ;
1225pub const rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag_thread_sched_waiting_io_write : rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = 8 ;
1226pub const rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag_thread_sched_waiting_io_force : rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = 64 ;
1227pub type rb_thread_sched_item__bindgen_ty_2_thread_sched_waiting_flag = ::std::os::raw::c_uint;
1228#[repr(C)]
1229#[derive(Debug, Copy, Clone)]
1230pub struct rb_thread_sched_item__bindgen_ty_2__bindgen_ty_1 {
1231 pub timeout: u64,
1232 pub fd: ::std::os::raw::c_int,
1233 pub result: ::std::os::raw::c_int,
1234}
1235#[repr(C)]
1236#[derive(Copy, Clone)]
1237pub struct rb_native_thread {
1238 pub serial: rb_atomic_t,
1239 pub vm: *mut rb_vm_struct,
1240 pub thread_id: rb_nativethread_id_t,
1241 pub tid: ::std::os::raw::c_int,
1242 pub running_thread: *mut rb_thread_struct,
1243 pub cond: rb_native_thread__bindgen_ty_1,
1244 pub altstack: *mut ::std::os::raw::c_void,
1245 pub nt_context: *mut coroutine_context,
1246 pub dedicated: ::std::os::raw::c_int,
1247 pub machine_stack_maxsize: usize,
1248}
1249#[repr(C)]
1250#[derive(Copy, Clone)]
1251pub union rb_native_thread__bindgen_ty_1 {
1252 pub intr: rb_nativethread_cond_t,
1253 pub readyq: rb_nativethread_cond_t,
1254}
1255impl ::std::fmt::Debug for rb_native_thread__bindgen_ty_1 {
1256 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1257 write!(f, "rb_native_thread__bindgen_ty_1 {{ union }}")
1258 }
1259}
1260impl ::std::fmt::Debug for rb_native_thread {
1261 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1262 write ! (f , "rb_native_thread {{ serial: {:?}, vm: {:?}, thread_id: {:?}, tid: {:?}, running_thread: {:?}, cond: {:?}, altstack: {:?}, nt_context: {:?}, dedicated: {:?} }}" , self . serial , self . vm , self . thread_id , self . tid , self . running_thread , self . cond , self . altstack , self . nt_context , self . dedicated)
1263 }
1264}
1265#[repr(C)]
1266#[derive(Copy, Clone)]
1267pub struct rb_thread_sched {
1268 pub lock_: rb_nativethread_lock_t,
1269 pub running: *mut rb_thread_struct,
1270 pub is_running: bool,
1271 pub is_running_timeslice: bool,
1272 pub enable_mn_threads: bool,
1273 pub readyq: ccan_list_head,
1274 pub readyq_cnt: ::std::os::raw::c_int,
1275 pub grq_node: ccan_list_node,
1276}
1277impl ::std::fmt::Debug for rb_thread_sched {
1278 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1279 write ! (f , "rb_thread_sched {{ lock_: {:?}, running: {:?}, is_running: {:?}, is_running_timeslice: {:?}, enable_mn_threads: {:?}, readyq: {:?}, readyq_cnt: {:?}, grq_node: {:?} }}" , self . lock_ , self . running , self . is_running , self . is_running_timeslice , self . enable_mn_threads , self . readyq , self . readyq_cnt , self . grq_node)
1280 }
1281}
1282pub type rb_snum_t = ::std::os::raw::c_long;
1283pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1284pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1285pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1286pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1287pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1288pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1289pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1290pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1291pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1292pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1293pub type ruby_tag_type = ::std::os::raw::c_uint;
1294pub type rb_compile_option_t = rb_compile_option_struct;
1295#[repr(C)]
1296#[derive(Debug, Copy, Clone)]
1297pub struct iseq_inline_constant_cache_entry {
1298 pub flags: VALUE,
1299 pub value: VALUE,
1300 pub _unused1: VALUE,
1301 pub _unused2: VALUE,
1302 pub ic_cref: *const rb_cref_t,
1303}
1304#[repr(C)]
1305#[derive(Debug, Copy, Clone)]
1306pub struct iseq_inline_constant_cache {
1307 pub entry: *mut iseq_inline_constant_cache_entry,
1308 pub segments: *const ID,
1309}
1310#[repr(C)]
1311#[derive(Debug, Copy, Clone)]
1312pub struct iseq_inline_iv_cache_entry {
1313 pub value: usize,
1314 pub iv_set_name: ID,
1315}
1316#[repr(C)]
1317#[derive(Copy, Clone)]
1318pub union iseq_inline_storage_entry {
1319 pub once: iseq_inline_storage_entry__bindgen_ty_1,
1320 pub ic_cache: iseq_inline_constant_cache,
1321 pub iv_cache: iseq_inline_iv_cache_entry,
1322}
1323#[repr(C)]
1324#[derive(Debug, Copy, Clone)]
1325pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1326 pub running_thread: *mut rb_thread_struct,
1327 pub value: VALUE,
1328}
1329impl ::std::fmt::Debug for iseq_inline_storage_entry {
1330 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1331 write!(f, "iseq_inline_storage_entry {{ union }}")
1332 }
1333}
1334#[repr(C)]
1335#[derive(Debug, Copy, Clone)]
1336pub struct rb_calling_info {
1337 pub cd: *mut rb_call_data,
1338 pub cc: *const rb_callcache,
1339 pub block_handler: VALUE,
1340 pub recv: VALUE,
1341 pub argc: ::std::os::raw::c_int,
1342 pub kw_splat: bool,
1343 pub heap_argv: VALUE,
1344}
1345#[repr(C)]
1346#[derive(Debug, Copy, Clone)]
1347pub struct rb_iseq_location_struct {
1348 pub pathobj: VALUE,
1349 pub base_label: VALUE,
1350 pub label: VALUE,
1351 pub first_lineno: ::std::os::raw::c_int,
1352 pub node_id: ::std::os::raw::c_int,
1353 pub code_location: rb_code_location_t,
1354}
1355pub type rb_iseq_location_t = rb_iseq_location_struct;
1356pub type iseq_bits_t = usize;
1357pub const rb_iseq_type_ISEQ_TYPE_TOP: rb_iseq_type = 0;
1358pub const rb_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_type = 1;
1359pub const rb_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_type = 2;
1360pub const rb_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_type = 3;
1361pub const rb_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_type = 4;
1362pub const rb_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_type = 5;
1363pub const rb_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_type = 6;
1364pub const rb_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_type = 7;
1365pub const rb_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_type = 8;
1366pub type rb_iseq_type = ::std::os::raw::c_uint;
1367pub type rb_jit_func_t = ::std::option::Option<
1368 unsafe extern "C" fn(
1369 arg1: *mut rb_execution_context_struct,
1370 arg2: *mut rb_control_frame_struct,
1371 ) -> VALUE,
1372>;
1373#[repr(C)]
1374#[derive(Copy, Clone)]
1375pub struct rb_iseq_constant_body {
1376 pub type_: rb_iseq_type,
1377 pub iseq_size: ::std::os::raw::c_uint,
1378 pub iseq_encoded: *mut VALUE,
1379 pub param: rb_iseq_constant_body__bindgen_ty_1,
1380 pub location: rb_iseq_location_t,
1381 pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1382 pub local_table: *const ID,
1383 pub catch_table: *mut iseq_catch_table,
1384 pub parent_iseq: *const rb_iseq_struct,
1385 pub local_iseq: *mut rb_iseq_struct,
1386 pub is_entries: *mut iseq_inline_storage_entry,
1387 pub call_data: *mut rb_call_data,
1388 pub variable: rb_iseq_constant_body__bindgen_ty_2,
1389 pub local_table_size: ::std::os::raw::c_uint,
1390 pub ic_size: ::std::os::raw::c_uint,
1391 pub ise_size: ::std::os::raw::c_uint,
1392 pub ivc_size: ::std::os::raw::c_uint,
1393 pub icvarc_size: ::std::os::raw::c_uint,
1394 pub ci_size: ::std::os::raw::c_uint,
1395 pub stack_max: ::std::os::raw::c_uint,
1396 pub builtin_attrs: ::std::os::raw::c_uint,
1397 pub mark_bits: rb_iseq_constant_body__bindgen_ty_3,
1398 pub outer_variables: *mut rb_id_table,
1399 pub mandatory_only_iseq: *const rb_iseq_t,
1400 pub jit_entry: rb_jit_func_t,
1401 pub jit_entry_calls: ::std::os::raw::c_ulong,
1402 pub jit_exception: rb_jit_func_t,
1403 pub jit_exception_calls: ::std::os::raw::c_ulong,
1404 pub rjit_blocks: VALUE,
1405 pub yjit_payload: *mut ::std::os::raw::c_void,
1406 pub yjit_calls_at_interv: u64,
1407}
1408#[repr(C)]
1409#[derive(Debug, Copy, Clone)]
1410pub struct rb_iseq_constant_body__bindgen_ty_1 {
1411 pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1412 pub size: ::std::os::raw::c_uint,
1413 pub lead_num: ::std::os::raw::c_int,
1414 pub opt_num: ::std::os::raw::c_int,
1415 pub rest_start: ::std::os::raw::c_int,
1416 pub post_start: ::std::os::raw::c_int,
1417 pub post_num: ::std::os::raw::c_int,
1418 pub block_start: ::std::os::raw::c_int,
1419 pub opt_table: *const VALUE,
1420 pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1421}
1422#[repr(C)]
1423#[repr(align(4))]
1424#[derive(Debug, Copy, Clone)]
1425pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1426 pub _bitfield_align_1: [u8; 0],
1427 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
1428 pub __bindgen_padding_0: u16,
1429}
1430impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1431 #[inline]
1432 pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1433 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1434 }
1435 #[inline]
1436 pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1437 unsafe {
1438 let val: u32 = ::std::mem::transmute(val);
1439 self._bitfield_1.set(0usize, 1u8, val as u64)
1440 }
1441 }
1442 #[inline]
1443 pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1444 unsafe {
1445 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1446 ::std::ptr::addr_of!((*this)._bitfield_1),
1447 0usize,
1448 1u8,
1449 ) as u32)
1450 }
1451 }
1452 #[inline]
1453 pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1454 unsafe {
1455 let val: u32 = ::std::mem::transmute(val);
1456 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1457 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1458 0usize,
1459 1u8,
1460 val as u64,
1461 )
1462 }
1463 }
1464 #[inline]
1465 pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1466 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1467 }
1468 #[inline]
1469 pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1470 unsafe {
1471 let val: u32 = ::std::mem::transmute(val);
1472 self._bitfield_1.set(1usize, 1u8, val as u64)
1473 }
1474 }
1475 #[inline]
1476 pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1477 unsafe {
1478 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1479 ::std::ptr::addr_of!((*this)._bitfield_1),
1480 1usize,
1481 1u8,
1482 ) as u32)
1483 }
1484 }
1485 #[inline]
1486 pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1487 unsafe {
1488 let val: u32 = ::std::mem::transmute(val);
1489 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1490 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1491 1usize,
1492 1u8,
1493 val as u64,
1494 )
1495 }
1496 }
1497 #[inline]
1498 pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1499 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1500 }
1501 #[inline]
1502 pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1503 unsafe {
1504 let val: u32 = ::std::mem::transmute(val);
1505 self._bitfield_1.set(2usize, 1u8, val as u64)
1506 }
1507 }
1508 #[inline]
1509 pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1510 unsafe {
1511 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1512 ::std::ptr::addr_of!((*this)._bitfield_1),
1513 2usize,
1514 1u8,
1515 ) as u32)
1516 }
1517 }
1518 #[inline]
1519 pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1520 unsafe {
1521 let val: u32 = ::std::mem::transmute(val);
1522 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1523 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1524 2usize,
1525 1u8,
1526 val as u64,
1527 )
1528 }
1529 }
1530 #[inline]
1531 pub fn has_post(&self) -> ::std::os::raw::c_uint {
1532 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1533 }
1534 #[inline]
1535 pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1536 unsafe {
1537 let val: u32 = ::std::mem::transmute(val);
1538 self._bitfield_1.set(3usize, 1u8, val as u64)
1539 }
1540 }
1541 #[inline]
1542 pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1543 unsafe {
1544 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1545 ::std::ptr::addr_of!((*this)._bitfield_1),
1546 3usize,
1547 1u8,
1548 ) as u32)
1549 }
1550 }
1551 #[inline]
1552 pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1553 unsafe {
1554 let val: u32 = ::std::mem::transmute(val);
1555 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1556 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1557 3usize,
1558 1u8,
1559 val as u64,
1560 )
1561 }
1562 }
1563 #[inline]
1564 pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1565 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1566 }
1567 #[inline]
1568 pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1569 unsafe {
1570 let val: u32 = ::std::mem::transmute(val);
1571 self._bitfield_1.set(4usize, 1u8, val as u64)
1572 }
1573 }
1574 #[inline]
1575 pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1576 unsafe {
1577 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1578 ::std::ptr::addr_of!((*this)._bitfield_1),
1579 4usize,
1580 1u8,
1581 ) as u32)
1582 }
1583 }
1584 #[inline]
1585 pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1586 unsafe {
1587 let val: u32 = ::std::mem::transmute(val);
1588 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1589 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1590 4usize,
1591 1u8,
1592 val as u64,
1593 )
1594 }
1595 }
1596 #[inline]
1597 pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1598 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1599 }
1600 #[inline]
1601 pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1602 unsafe {
1603 let val: u32 = ::std::mem::transmute(val);
1604 self._bitfield_1.set(5usize, 1u8, val as u64)
1605 }
1606 }
1607 #[inline]
1608 pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1609 unsafe {
1610 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1611 ::std::ptr::addr_of!((*this)._bitfield_1),
1612 5usize,
1613 1u8,
1614 ) as u32)
1615 }
1616 }
1617 #[inline]
1618 pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1619 unsafe {
1620 let val: u32 = ::std::mem::transmute(val);
1621 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1622 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1623 5usize,
1624 1u8,
1625 val as u64,
1626 )
1627 }
1628 }
1629 #[inline]
1630 pub fn has_block(&self) -> ::std::os::raw::c_uint {
1631 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1632 }
1633 #[inline]
1634 pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1635 unsafe {
1636 let val: u32 = ::std::mem::transmute(val);
1637 self._bitfield_1.set(6usize, 1u8, val as u64)
1638 }
1639 }
1640 #[inline]
1641 pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1642 unsafe {
1643 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1644 ::std::ptr::addr_of!((*this)._bitfield_1),
1645 6usize,
1646 1u8,
1647 ) as u32)
1648 }
1649 }
1650 #[inline]
1651 pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1652 unsafe {
1653 let val: u32 = ::std::mem::transmute(val);
1654 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1655 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1656 6usize,
1657 1u8,
1658 val as u64,
1659 )
1660 }
1661 }
1662 #[inline]
1663 pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1664 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1665 }
1666 #[inline]
1667 pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1668 unsafe {
1669 let val: u32 = ::std::mem::transmute(val);
1670 self._bitfield_1.set(7usize, 1u8, val as u64)
1671 }
1672 }
1673 #[inline]
1674 pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1675 unsafe {
1676 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1677 ::std::ptr::addr_of!((*this)._bitfield_1),
1678 7usize,
1679 1u8,
1680 ) as u32)
1681 }
1682 }
1683 #[inline]
1684 pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1685 unsafe {
1686 let val: u32 = ::std::mem::transmute(val);
1687 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1688 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1689 7usize,
1690 1u8,
1691 val as u64,
1692 )
1693 }
1694 }
1695 #[inline]
1696 pub fn accepts_no_kwarg(&self) -> ::std::os::raw::c_uint {
1697 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
1698 }
1699 #[inline]
1700 pub fn set_accepts_no_kwarg(&mut self, val: ::std::os::raw::c_uint) {
1701 unsafe {
1702 let val: u32 = ::std::mem::transmute(val);
1703 self._bitfield_1.set(8usize, 1u8, val as u64)
1704 }
1705 }
1706 #[inline]
1707 pub unsafe fn accepts_no_kwarg_raw(this: *const Self) -> ::std::os::raw::c_uint {
1708 unsafe {
1709 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1710 ::std::ptr::addr_of!((*this)._bitfield_1),
1711 8usize,
1712 1u8,
1713 ) as u32)
1714 }
1715 }
1716 #[inline]
1717 pub unsafe fn set_accepts_no_kwarg_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1718 unsafe {
1719 let val: u32 = ::std::mem::transmute(val);
1720 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1721 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1722 8usize,
1723 1u8,
1724 val as u64,
1725 )
1726 }
1727 }
1728 #[inline]
1729 pub fn ruby2_keywords(&self) -> ::std::os::raw::c_uint {
1730 unsafe { ::std::mem::transmute(self._bitfield_1.get(9usize, 1u8) as u32) }
1731 }
1732 #[inline]
1733 pub fn set_ruby2_keywords(&mut self, val: ::std::os::raw::c_uint) {
1734 unsafe {
1735 let val: u32 = ::std::mem::transmute(val);
1736 self._bitfield_1.set(9usize, 1u8, val as u64)
1737 }
1738 }
1739 #[inline]
1740 pub unsafe fn ruby2_keywords_raw(this: *const Self) -> ::std::os::raw::c_uint {
1741 unsafe {
1742 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
1743 ::std::ptr::addr_of!((*this)._bitfield_1),
1744 9usize,
1745 1u8,
1746 ) as u32)
1747 }
1748 }
1749 #[inline]
1750 pub unsafe fn set_ruby2_keywords_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1751 unsafe {
1752 let val: u32 = ::std::mem::transmute(val);
1753 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
1754 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1755 9usize,
1756 1u8,
1757 val as u64,
1758 )
1759 }
1760 }
1761 #[inline]
1762 pub fn new_bitfield_1(
1763 has_lead: ::std::os::raw::c_uint,
1764 has_opt: ::std::os::raw::c_uint,
1765 has_rest: ::std::os::raw::c_uint,
1766 has_post: ::std::os::raw::c_uint,
1767 has_kw: ::std::os::raw::c_uint,
1768 has_kwrest: ::std::os::raw::c_uint,
1769 has_block: ::std::os::raw::c_uint,
1770 ambiguous_param0: ::std::os::raw::c_uint,
1771 accepts_no_kwarg: ::std::os::raw::c_uint,
1772 ruby2_keywords: ::std::os::raw::c_uint,
1773 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
1774 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
1775 __bindgen_bitfield_unit.set(0usize, 1u8, {
1776 let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1777 has_lead as u64
1778 });
1779 __bindgen_bitfield_unit.set(1usize, 1u8, {
1780 let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1781 has_opt as u64
1782 });
1783 __bindgen_bitfield_unit.set(2usize, 1u8, {
1784 let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1785 has_rest as u64
1786 });
1787 __bindgen_bitfield_unit.set(3usize, 1u8, {
1788 let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1789 has_post as u64
1790 });
1791 __bindgen_bitfield_unit.set(4usize, 1u8, {
1792 let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1793 has_kw as u64
1794 });
1795 __bindgen_bitfield_unit.set(5usize, 1u8, {
1796 let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1797 has_kwrest as u64
1798 });
1799 __bindgen_bitfield_unit.set(6usize, 1u8, {
1800 let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1801 has_block as u64
1802 });
1803 __bindgen_bitfield_unit.set(7usize, 1u8, {
1804 let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
1805 ambiguous_param0 as u64
1806 });
1807 __bindgen_bitfield_unit.set(8usize, 1u8, {
1808 let accepts_no_kwarg: u32 = unsafe { ::std::mem::transmute(accepts_no_kwarg) };
1809 accepts_no_kwarg as u64
1810 });
1811 __bindgen_bitfield_unit.set(9usize, 1u8, {
1812 let ruby2_keywords: u32 = unsafe { ::std::mem::transmute(ruby2_keywords) };
1813 ruby2_keywords as u64
1814 });
1815 __bindgen_bitfield_unit
1816 }
1817}
1818#[repr(C)]
1819#[derive(Debug, Copy, Clone)]
1820pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
1821 pub num: ::std::os::raw::c_int,
1822 pub required_num: ::std::os::raw::c_int,
1823 pub bits_start: ::std::os::raw::c_int,
1824 pub rest_start: ::std::os::raw::c_int,
1825 pub table: *const ID,
1826 pub default_values: *mut VALUE,
1827}
1828#[repr(C)]
1829#[derive(Debug, Copy, Clone)]
1830pub struct rb_iseq_constant_body_iseq_insn_info {
1831 pub body: *const iseq_insn_info_entry,
1832 pub positions: *mut ::std::os::raw::c_uint,
1833 pub size: ::std::os::raw::c_uint,
1834 pub succ_index_table: *mut succ_index_table,
1835}
1836#[repr(C)]
1837#[derive(Debug, Copy, Clone)]
1838pub struct rb_iseq_constant_body__bindgen_ty_2 {
1839 pub flip_count: rb_snum_t,
1840 pub script_lines: VALUE,
1841 pub coverage: VALUE,
1842 pub pc2branchindex: VALUE,
1843 pub original_iseq: *mut VALUE,
1844}
1845#[repr(C)]
1846#[derive(Copy, Clone)]
1847pub union rb_iseq_constant_body__bindgen_ty_3 {
1848 pub list: *mut iseq_bits_t,
1849 pub single: iseq_bits_t,
1850}
1851impl ::std::fmt::Debug for rb_iseq_constant_body__bindgen_ty_3 {
1852 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1853 write!(f, "rb_iseq_constant_body__bindgen_ty_3 {{ union }}")
1854 }
1855}
1856impl ::std::fmt::Debug for rb_iseq_constant_body {
1857 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1858 write ! (f , "rb_iseq_constant_body {{ type: {:?}, iseq_size: {:?}, iseq_encoded: {:?}, param: {:?}, location: {:?}, insns_info: {:?}, local_table: {:?}, catch_table: {:?}, parent_iseq: {:?}, local_iseq: {:?}, is_entries: {:?}, call_data: {:?}, variable: {:?}, local_table_size: {:?}, ic_size: {:?}, ise_size: {:?}, ivc_size: {:?}, icvarc_size: {:?}, ci_size: {:?}, stack_max: {:?}, builtin_attrs: {:?}, mark_bits: {:?}, outer_variables: {:?}, mandatory_only_iseq: {:?}, jit_entry: {:?}, jit_entry_calls: {:?}, jit_exception: {:?}, jit_exception_calls: {:?}, rjit_blocks: {:?}, yjit_payload: {:?} }}" , self . type_ , self . iseq_size , self . iseq_encoded , self . param , self . location , self . insns_info , self . local_table , self . catch_table , self . parent_iseq , self . local_iseq , self . is_entries , self . call_data , self . variable , self . local_table_size , self . ic_size , self . ise_size , self . ivc_size , self . icvarc_size , self . ci_size , self . stack_max , self . builtin_attrs , self . mark_bits , self . outer_variables , self . mandatory_only_iseq , self . jit_entry , self . jit_entry_calls , self . jit_exception , self . jit_exception_calls , self . rjit_blocks , self . yjit_payload)
1859 }
1860}
1861#[repr(C)]
1862#[derive(Copy, Clone)]
1863pub struct rb_iseq_struct {
1864 pub flags: VALUE,
1865 pub wrapper: VALUE,
1866 pub body: *mut rb_iseq_constant_body,
1867 pub aux: rb_iseq_struct__bindgen_ty_1,
1868}
1869#[repr(C)]
1870#[derive(Copy, Clone)]
1871pub union rb_iseq_struct__bindgen_ty_1 {
1872 pub compile_data: *mut iseq_compile_data,
1873 pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
1874 pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
1875}
1876#[repr(C)]
1877#[derive(Debug, Copy, Clone)]
1878pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
1879 pub obj: VALUE,
1880 pub index: ::std::os::raw::c_int,
1881}
1882#[repr(C)]
1883#[derive(Debug, Copy, Clone)]
1884pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
1885 pub local_hooks: *mut rb_hook_list_struct,
1886 pub global_trace_events: rb_event_flag_t,
1887}
1888impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
1889 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1890 write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
1891 }
1892}
1893impl ::std::fmt::Debug for rb_iseq_struct {
1894 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1895 write!(
1896 f,
1897 "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
1898 self.flags, self.wrapper, self.body, self.aux
1899 )
1900 }
1901}
1902pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
1903#[repr(C)]
1904#[derive(Debug, Copy, Clone)]
1905pub struct rb_at_exit_list {
1906 pub func: rb_vm_at_exit_func,
1907 pub next: *mut rb_at_exit_list,
1908}
1909#[repr(C)]
1910#[derive(Debug, Copy, Clone)]
1911pub struct rb_objspace {
1912 _unused: [u8; 0],
1913}
1914#[repr(C)]
1915#[derive(Debug, Copy, Clone)]
1916pub struct rb_hook_list_struct {
1917 pub hooks: *mut rb_event_hook_struct,
1918 pub events: rb_event_flag_t,
1919 pub running: ::std::os::raw::c_uint,
1920 pub need_clean: bool,
1921 pub is_local: bool,
1922}
1923pub type rb_hook_list_t = rb_hook_list_struct;
1924#[repr(C)]
1925#[derive(Debug, Copy, Clone)]
1926pub struct rb_builtin_function {
1927 _unused: [u8; 0],
1928}
1929#[repr(C)]
1930#[derive(Copy, Clone)]
1931pub struct rb_vm_struct {
1932 pub self_: VALUE,
1933 pub ractor: rb_vm_struct__bindgen_ty_1,
1934 pub main_altstack: *mut ::std::os::raw::c_void,
1935 pub fork_gen: rb_serial_t,
1936 pub waiting_fds: ccan_list_head,
1937 pub ubf_async_safe: ::std::os::raw::c_int,
1938 pub _bitfield_align_1: [u8; 0],
1939 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1940 pub mark_object_ary: VALUE,
1941 pub special_exceptions: [VALUE; 5usize],
1942 pub top_self: VALUE,
1943 pub load_path: VALUE,
1944 pub load_path_snapshot: VALUE,
1945 pub load_path_check_cache: VALUE,
1946 pub expanded_load_path: VALUE,
1947 pub loaded_features: VALUE,
1948 pub loaded_features_snapshot: VALUE,
1949 pub loaded_features_realpaths: VALUE,
1950 pub loaded_features_realpath_map: VALUE,
1951 pub loaded_features_index: *mut st_table,
1952 pub loading_table: *mut st_table,
1953 pub static_ext_inits: *mut st_table,
1954 pub trap_list: rb_vm_struct__bindgen_ty_2,
1955 pub ensure_rollback_table: *mut st_table,
1956 pub postponed_job_queue: *mut rb_postponed_job_queue,
1957 pub src_encoding_index: ::std::os::raw::c_int,
1958 pub workqueue: ccan_list_head,
1959 pub workqueue_lock: rb_nativethread_lock_t,
1960 pub orig_progname: VALUE,
1961 pub progname: VALUE,
1962 pub coverages: VALUE,
1963 pub me2counter: VALUE,
1964 pub coverage_mode: ::std::os::raw::c_int,
1965 pub defined_module_hash: *mut st_table,
1966 pub objspace: *mut rb_objspace,
1967 pub at_exit: *mut rb_at_exit_list,
1968 pub frozen_strings: *mut st_table,
1969 pub builtin_function_table: *const rb_builtin_function,
1970 pub builtin_inline_index: ::std::os::raw::c_int,
1971 pub ci_table: *mut st_table,
1972 pub negative_cme_table: *mut rb_id_table,
1973 pub overloaded_cme_table: *mut st_table,
1974 pub constant_cache: *mut rb_id_table,
1975 pub inserting_constant_cache_id: ID,
1976 pub global_cc_cache_table: [*const rb_callcache; 1023usize],
1977 pub default_params: rb_vm_struct__bindgen_ty_3,
1978}
1979#[repr(C)]
1980#[derive(Copy, Clone)]
1981pub struct rb_vm_struct__bindgen_ty_1 {
1982 pub set: ccan_list_head,
1983 pub cnt: ::std::os::raw::c_uint,
1984 pub blocking_cnt: ::std::os::raw::c_uint,
1985 pub main_ractor: *mut rb_ractor_struct,
1986 pub main_thread: *mut rb_thread_struct,
1987 pub sync: rb_vm_struct__bindgen_ty_1__bindgen_ty_1,
1988 pub sched: rb_vm_struct__bindgen_ty_1__bindgen_ty_2,
1989}
1990#[repr(C)]
1991#[derive(Copy, Clone)]
1992pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
1993 pub lock: rb_nativethread_lock_t,
1994 pub lock_owner: *mut rb_ractor_struct,
1995 pub lock_rec: ::std::os::raw::c_uint,
1996 pub terminate_cond: rb_nativethread_cond_t,
1997 pub terminate_waiting: bool,
1998}
1999impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {
2000 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2001 write ! (f , "rb_vm_struct__bindgen_ty_1__bindgen_ty_1 {{ lock: {:?}, lock_owner: {:?}, lock_rec: {:?}, terminate_cond: {:?}, terminate_waiting: {:?} }}" , self . lock , self . lock_owner , self . lock_rec , self . terminate_cond , self . terminate_waiting)
2002 }
2003}
2004#[repr(C)]
2005#[derive(Copy, Clone)]
2006pub struct rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2007 pub lock: rb_nativethread_lock_t,
2008 pub lock_owner: *mut rb_ractor_struct,
2009 pub locked: bool,
2010 pub cond: rb_nativethread_cond_t,
2011 pub snt_cnt: ::std::os::raw::c_uint,
2012 pub dnt_cnt: ::std::os::raw::c_uint,
2013 pub running_cnt: ::std::os::raw::c_uint,
2014 pub max_cpu: ::std::os::raw::c_uint,
2015 pub grq: ccan_list_head,
2016 pub grq_cnt: ::std::os::raw::c_uint,
2017 pub running_threads: ccan_list_head,
2018 pub timeslice_threads: ccan_list_head,
2019 pub zombie_threads: ccan_list_head,
2020 pub timeslice_wait_inf: bool,
2021 pub barrier_complete_cond: rb_nativethread_cond_t,
2022 pub barrier_release_cond: rb_nativethread_cond_t,
2023 pub barrier_waiting: bool,
2024 pub barrier_waiting_cnt: ::std::os::raw::c_uint,
2025 pub barrier_serial: ::std::os::raw::c_uint,
2026}
2027impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {
2028 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2029 write ! (f , "rb_vm_struct__bindgen_ty_1__bindgen_ty_2 {{ lock: {:?}, lock_owner: {:?}, locked: {:?}, cond: {:?}, snt_cnt: {:?}, dnt_cnt: {:?}, running_cnt: {:?}, max_cpu: {:?}, grq: {:?}, grq_cnt: {:?}, running_threads: {:?}, timeslice_threads: {:?}, zombie_threads: {:?}, timeslice_wait_inf: {:?}, barrier_complete_cond: {:?}, barrier_release_cond: {:?}, barrier_waiting: {:?}, barrier_waiting_cnt: {:?}, barrier_serial: {:?} }}" , self . lock , self . lock_owner , self . locked , self . cond , self . snt_cnt , self . dnt_cnt , self . running_cnt , self . max_cpu , self . grq , self . grq_cnt , self . running_threads , self . timeslice_threads , self . zombie_threads , self . timeslice_wait_inf , self . barrier_complete_cond , self . barrier_release_cond , self . barrier_waiting , self . barrier_waiting_cnt , self . barrier_serial)
2030 }
2031}
2032impl ::std::fmt::Debug for rb_vm_struct__bindgen_ty_1 {
2033 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2034 write ! (f , "rb_vm_struct__bindgen_ty_1 {{ set: {:?}, cnt: {:?}, blocking_cnt: {:?}, main_ractor: {:?}, main_thread: {:?}, sync: {:?}, sched: {:?} }}" , self . set , self . cnt , self . blocking_cnt , self . main_ractor , self . main_thread , self . sync , self . sched)
2035 }
2036}
2037#[repr(C)]
2038#[derive(Debug, Copy, Clone)]
2039pub struct rb_vm_struct__bindgen_ty_2 {
2040 pub cmd: [VALUE; 65usize],
2041}
2042#[repr(C)]
2043#[derive(Debug, Copy, Clone)]
2044pub struct rb_vm_struct__bindgen_ty_3 {
2045 pub thread_vm_stack_size: usize,
2046 pub thread_machine_stack_size: usize,
2047 pub fiber_vm_stack_size: usize,
2048 pub fiber_machine_stack_size: usize,
2049}
2050impl ::std::fmt::Debug for rb_vm_struct {
2051 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2052 write ! (f , "rb_vm_struct {{ self: {:?}, ractor: {:?}, main_altstack: {:?}, fork_gen: {:?}, waiting_fds: {:?}, ubf_async_safe: {:?}, running : {:?}, thread_abort_on_exception : {:?}, thread_report_on_exception : {:?}, thread_ignore_deadlock : {:?}, mark_object_ary: {:?}, special_exceptions: {:?}, top_self: {:?}, load_path: {:?}, load_path_snapshot: {:?}, load_path_check_cache: {:?}, expanded_load_path: {:?}, loaded_features: {:?}, loaded_features_snapshot: {:?}, loaded_features_realpaths: {:?}, loaded_features_realpath_map: {:?}, loaded_features_index: {:?}, loading_table: {:?}, static_ext_inits: {:?}, trap_list: {:?}, ensure_rollback_table: {:?}, postponed_job_queue: {:?}, src_encoding_index: {:?}, workqueue: {:?}, workqueue_lock: {:?}, orig_progname: {:?}, progname: {:?}, coverages: {:?}, me2counter: {:?}, coverage_mode: {:?}, defined_module_hash: {:?}, objspace: {:?}, at_exit: {:?}, frozen_strings: {:?}, builtin_function_table: {:?}, builtin_inline_index: {:?}, ci_table: {:?}, negative_cme_table: {:?}, overloaded_cme_table: {:?}, constant_cache: {:?}, inserting_constant_cache_id: {:?}, global_cc_cache_table: {:?}, default_params: {:?} }}" , self . self_ , self . ractor , self . main_altstack , self . fork_gen , self . waiting_fds , self . ubf_async_safe , self . running () , self . thread_abort_on_exception () , self . thread_report_on_exception () , self . thread_ignore_deadlock () , self . mark_object_ary , self . special_exceptions , self . top_self , self . load_path , self . load_path_snapshot , self . load_path_check_cache , self . expanded_load_path , self . loaded_features , self . loaded_features_snapshot , self . loaded_features_realpaths , self . loaded_features_realpath_map , self . loaded_features_index , self . loading_table , self . static_ext_inits , self . trap_list , self . ensure_rollback_table , self . postponed_job_queue , self . src_encoding_index , self . workqueue , self . workqueue_lock , self . orig_progname , self . progname , self . coverages , self . me2counter , self . coverage_mode , self . defined_module_hash , self . objspace , self . at_exit , self . frozen_strings , self . builtin_function_table , self . builtin_inline_index , self . ci_table , self . negative_cme_table , self . overloaded_cme_table , self . constant_cache , self . inserting_constant_cache_id , self . global_cc_cache_table , self . default_params)
2053 }
2054}
2055impl rb_vm_struct {
2056 #[inline]
2057 pub fn running(&self) -> ::std::os::raw::c_uint {
2058 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2059 }
2060 #[inline]
2061 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2062 unsafe {
2063 let val: u32 = ::std::mem::transmute(val);
2064 self._bitfield_1.set(0usize, 1u8, val as u64)
2065 }
2066 }
2067 #[inline]
2068 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2069 unsafe {
2070 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2071 ::std::ptr::addr_of!((*this)._bitfield_1),
2072 0usize,
2073 1u8,
2074 ) as u32)
2075 }
2076 }
2077 #[inline]
2078 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2079 unsafe {
2080 let val: u32 = ::std::mem::transmute(val);
2081 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2082 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2083 0usize,
2084 1u8,
2085 val as u64,
2086 )
2087 }
2088 }
2089 #[inline]
2090 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2091 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2092 }
2093 #[inline]
2094 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2095 unsafe {
2096 let val: u32 = ::std::mem::transmute(val);
2097 self._bitfield_1.set(1usize, 1u8, val as u64)
2098 }
2099 }
2100 #[inline]
2101 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2102 unsafe {
2103 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2104 ::std::ptr::addr_of!((*this)._bitfield_1),
2105 1usize,
2106 1u8,
2107 ) as u32)
2108 }
2109 }
2110 #[inline]
2111 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2112 unsafe {
2113 let val: u32 = ::std::mem::transmute(val);
2114 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2115 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2116 1usize,
2117 1u8,
2118 val as u64,
2119 )
2120 }
2121 }
2122 #[inline]
2123 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2124 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2125 }
2126 #[inline]
2127 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2128 unsafe {
2129 let val: u32 = ::std::mem::transmute(val);
2130 self._bitfield_1.set(2usize, 1u8, val as u64)
2131 }
2132 }
2133 #[inline]
2134 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2135 unsafe {
2136 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2137 ::std::ptr::addr_of!((*this)._bitfield_1),
2138 2usize,
2139 1u8,
2140 ) as u32)
2141 }
2142 }
2143 #[inline]
2144 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2145 unsafe {
2146 let val: u32 = ::std::mem::transmute(val);
2147 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2148 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2149 2usize,
2150 1u8,
2151 val as u64,
2152 )
2153 }
2154 }
2155 #[inline]
2156 pub fn thread_ignore_deadlock(&self) -> ::std::os::raw::c_uint {
2157 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2158 }
2159 #[inline]
2160 pub fn set_thread_ignore_deadlock(&mut self, val: ::std::os::raw::c_uint) {
2161 unsafe {
2162 let val: u32 = ::std::mem::transmute(val);
2163 self._bitfield_1.set(3usize, 1u8, val as u64)
2164 }
2165 }
2166 #[inline]
2167 pub unsafe fn thread_ignore_deadlock_raw(this: *const Self) -> ::std::os::raw::c_uint {
2168 unsafe {
2169 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2170 ::std::ptr::addr_of!((*this)._bitfield_1),
2171 3usize,
2172 1u8,
2173 ) as u32)
2174 }
2175 }
2176 #[inline]
2177 pub unsafe fn set_thread_ignore_deadlock_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2178 unsafe {
2179 let val: u32 = ::std::mem::transmute(val);
2180 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2181 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2182 3usize,
2183 1u8,
2184 val as u64,
2185 )
2186 }
2187 }
2188 #[inline]
2189 pub fn new_bitfield_1(
2190 running: ::std::os::raw::c_uint,
2191 thread_abort_on_exception: ::std::os::raw::c_uint,
2192 thread_report_on_exception: ::std::os::raw::c_uint,
2193 thread_ignore_deadlock: ::std::os::raw::c_uint,
2194 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2195 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2196 __bindgen_bitfield_unit.set(0usize, 1u8, {
2197 let running: u32 = unsafe { ::std::mem::transmute(running) };
2198 running as u64
2199 });
2200 __bindgen_bitfield_unit.set(1usize, 1u8, {
2201 let thread_abort_on_exception: u32 =
2202 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2203 thread_abort_on_exception as u64
2204 });
2205 __bindgen_bitfield_unit.set(2usize, 1u8, {
2206 let thread_report_on_exception: u32 =
2207 unsafe { ::std::mem::transmute(thread_report_on_exception) };
2208 thread_report_on_exception as u64
2209 });
2210 __bindgen_bitfield_unit.set(3usize, 1u8, {
2211 let thread_ignore_deadlock: u32 =
2212 unsafe { ::std::mem::transmute(thread_ignore_deadlock) };
2213 thread_ignore_deadlock as u64
2214 });
2215 __bindgen_bitfield_unit
2216 }
2217}
2218pub type rb_vm_t = rb_vm_struct;
2219#[repr(C)]
2220#[derive(Debug, Copy, Clone)]
2221pub struct rb_control_frame_struct {
2222 pub pc: *const VALUE,
2223 pub sp: *mut VALUE,
2224 pub iseq: *const rb_iseq_t,
2225 pub self_: VALUE,
2226 pub ep: *const VALUE,
2227 pub block_code: *const ::std::os::raw::c_void,
2228 pub jit_return: *mut ::std::os::raw::c_void,
2229}
2230pub type rb_control_frame_t = rb_control_frame_struct;
2231pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2232pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2233pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2234pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2235pub type rb_thread_status = ::std::os::raw::c_uint;
2236pub type rb_jmpbuf_t = sigjmp_buf;
2237pub type rb_vm_tag_jmpbuf_t = rb_jmpbuf_t;
2238#[repr(C)]
2239#[derive(Debug, Copy, Clone)]
2240pub struct rb_vm_tag {
2241 pub tag: VALUE,
2242 pub retval: VALUE,
2243 pub buf: rb_vm_tag_jmpbuf_t,
2244 pub prev: *mut rb_vm_tag,
2245 pub state: ruby_tag_type,
2246 pub lock_rec: ::std::os::raw::c_uint,
2247}
2248#[repr(C)]
2249#[derive(Debug, Copy, Clone)]
2250pub struct rb_unblock_callback {
2251 pub func: rb_unblock_function_t,
2252 pub arg: *mut ::std::os::raw::c_void,
2253}
2254#[repr(C)]
2255#[derive(Debug, Copy, Clone)]
2256pub struct rb_mutex_struct {
2257 _unused: [u8; 0],
2258}
2259#[repr(C)]
2260#[derive(Debug, Copy, Clone)]
2261pub struct rb_ensure_entry {
2262 pub marker: VALUE,
2263 pub e_proc: ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>,
2264 pub data2: VALUE,
2265}
2266#[repr(C)]
2267#[derive(Debug, Copy, Clone)]
2268pub struct rb_ensure_list {
2269 pub next: *mut rb_ensure_list,
2270 pub entry: rb_ensure_entry,
2271}
2272pub type rb_ensure_list_t = rb_ensure_list;
2273#[repr(C)]
2274#[derive(Debug, Copy, Clone)]
2275pub struct rb_fiber_struct {
2276 _unused: [u8; 0],
2277}
2278pub type rb_fiber_t = rb_fiber_struct;
2279#[repr(C)]
2280#[derive(Debug, Copy, Clone)]
2281pub struct rb_waiting_list {
2282 pub next: *mut rb_waiting_list,
2283 pub thread: *mut rb_thread_struct,
2284 pub fiber: *mut rb_fiber_struct,
2285}
2286#[repr(C)]
2287#[derive(Debug, Copy, Clone)]
2288pub struct rb_execution_context_struct {
2289 pub vm_stack: *mut VALUE,
2290 pub vm_stack_size: usize,
2291 pub cfp: *mut rb_control_frame_t,
2292 pub tag: *mut rb_vm_tag,
2293 pub interrupt_flag: rb_atomic_t,
2294 pub interrupt_mask: rb_atomic_t,
2295 pub fiber_ptr: *mut rb_fiber_t,
2296 pub thread_ptr: *mut rb_thread_struct,
2297 pub local_storage: *mut rb_id_table,
2298 pub local_storage_recursive_hash: VALUE,
2299 pub local_storage_recursive_hash_for_trace: VALUE,
2300 pub storage: VALUE,
2301 pub root_lep: *const VALUE,
2302 pub root_svar: VALUE,
2303 pub ensure_list: *mut rb_ensure_list_t,
2304 pub trace_arg: *mut rb_trace_arg_struct,
2305 pub errinfo: VALUE,
2306 pub passed_block_handler: VALUE,
2307 pub raised_flag: u8,
2308 pub _bitfield_align_1: [u8; 0],
2309 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2310 pub private_const_reference: VALUE,
2311 pub machine: rb_execution_context_struct__bindgen_ty_1,
2312}
2313#[repr(C)]
2314#[derive(Debug, Copy, Clone)]
2315pub struct rb_execution_context_struct__bindgen_ty_1 {
2316 pub stack_start: *mut VALUE,
2317 pub stack_end: *mut VALUE,
2318 pub stack_maxsize: usize,
2319 pub regs: jmp_buf,
2320}
2321impl rb_execution_context_struct {
2322 #[inline]
2323 pub fn method_missing_reason(&self) -> method_missing_reason {
2324 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
2325 }
2326 #[inline]
2327 pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2328 unsafe {
2329 let val: u32 = ::std::mem::transmute(val);
2330 self._bitfield_1.set(0usize, 8u8, val as u64)
2331 }
2332 }
2333 #[inline]
2334 pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2335 unsafe {
2336 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2337 ::std::ptr::addr_of!((*this)._bitfield_1),
2338 0usize,
2339 8u8,
2340 ) as u32)
2341 }
2342 }
2343 #[inline]
2344 pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2345 unsafe {
2346 let val: u32 = ::std::mem::transmute(val);
2347 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2348 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2349 0usize,
2350 8u8,
2351 val as u64,
2352 )
2353 }
2354 }
2355 #[inline]
2356 pub fn new_bitfield_1(
2357 method_missing_reason: method_missing_reason,
2358 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2359 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2360 __bindgen_bitfield_unit.set(0usize, 8u8, {
2361 let method_missing_reason: u32 =
2362 unsafe { ::std::mem::transmute(method_missing_reason) };
2363 method_missing_reason as u64
2364 });
2365 __bindgen_bitfield_unit
2366 }
2367}
2368pub type rb_execution_context_t = rb_execution_context_struct;
2369#[repr(C)]
2370#[derive(Debug, Copy, Clone)]
2371pub struct rb_ext_config {
2372 pub ractor_safe: bool,
2373}
2374pub type rb_ractor_t = rb_ractor_struct;
2375#[repr(C)]
2376#[derive(Copy, Clone)]
2377pub struct rb_thread_struct {
2378 pub lt_node: ccan_list_node,
2379 pub self_: VALUE,
2380 pub ractor: *mut rb_ractor_t,
2381 pub vm: *mut rb_vm_t,
2382 pub nt: *mut rb_native_thread,
2383 pub ec: *mut rb_execution_context_t,
2384 pub sched: rb_thread_sched_item,
2385 pub serial: rb_atomic_t,
2386 pub last_status: VALUE,
2387 pub calling: *mut rb_calling_info,
2388 pub top_self: VALUE,
2389 pub top_wrapper: VALUE,
2390 pub _bitfield_align_1: [u8; 0],
2391 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2392 pub priority: i8,
2393 pub running_time_us: u32,
2394 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2395 pub thgroup: VALUE,
2396 pub value: VALUE,
2397 pub pending_interrupt_queue: VALUE,
2398 pub pending_interrupt_mask_stack: VALUE,
2399 pub interrupt_lock: rb_nativethread_lock_t,
2400 pub unblock: rb_unblock_callback,
2401 pub locking_mutex: VALUE,
2402 pub keeping_mutexes: *mut rb_mutex_struct,
2403 pub join_list: *mut rb_waiting_list,
2404 pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2405 pub invoke_type: rb_thread_struct_thread_invoke_type,
2406 pub stat_insn_usage: VALUE,
2407 pub root_fiber: *mut rb_fiber_t,
2408 pub scheduler: VALUE,
2409 pub blocking: ::std::os::raw::c_uint,
2410 pub name: VALUE,
2411 pub specific_storage: *mut *mut ::std::os::raw::c_void,
2412 pub ext_config: rb_ext_config,
2413}
2414#[repr(C)]
2415#[derive(Copy, Clone)]
2416pub union rb_thread_struct__bindgen_ty_1 {
2417 pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2418 pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2419}
2420#[repr(C)]
2421#[derive(Debug, Copy, Clone)]
2422pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2423 pub proc_: VALUE,
2424 pub args: VALUE,
2425 pub kw_splat: ::std::os::raw::c_int,
2426}
2427#[repr(C)]
2428#[derive(Debug, Copy, Clone)]
2429pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2430 pub func:
2431 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> VALUE>,
2432 pub arg: *mut ::std::os::raw::c_void,
2433}
2434impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2435 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2436 write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2437 }
2438}
2439pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_none:
2440 rb_thread_struct_thread_invoke_type = 0;
2441pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_proc:
2442 rb_thread_struct_thread_invoke_type = 1;
2443pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_ractor_proc:
2444 rb_thread_struct_thread_invoke_type = 2;
2445pub const rb_thread_struct_thread_invoke_type_thread_invoke_type_func:
2446 rb_thread_struct_thread_invoke_type = 3;
2447pub type rb_thread_struct_thread_invoke_type = ::std::os::raw::c_uint;
2448impl ::std::fmt::Debug for rb_thread_struct {
2449 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2450 write ! (f , "rb_thread_struct {{ lt_node: {:?}, self: {:?}, ractor: {:?}, vm: {:?}, nt: {:?}, ec: {:?}, sched: {:?}, serial: {:?}, last_status: {:?}, calling: {:?}, top_self: {:?}, top_wrapper: {:?}, status : {:?}, has_dedicated_nt : {:?}, to_kill : {:?}, abort_on_exception : {:?}, report_on_exception : {:?}, pending_interrupt_queue_checked : {:?}, blocking_region_buffer: {:?}, thgroup: {:?}, value: {:?}, pending_interrupt_queue: {:?}, pending_interrupt_mask_stack: {:?}, interrupt_lock: {:?}, unblock: {:?}, locking_mutex: {:?}, keeping_mutexes: {:?}, join_list: {:?}, invoke_arg: {:?}, invoke_type: {:?}, stat_insn_usage: {:?}, root_fiber: {:?}, scheduler: {:?}, blocking: {:?}, name: {:?}, specific_storage: {:?}, ext_config: {:?} }}" , self . lt_node , self . self_ , self . ractor , self . vm , self . nt , self . ec , self . sched , self . serial , self . last_status , self . calling , self . top_self , self . top_wrapper , self . status () , self . has_dedicated_nt () , self . to_kill () , self . abort_on_exception () , self . report_on_exception () , self . pending_interrupt_queue_checked () , self . blocking_region_buffer , self . thgroup , self . value , self . pending_interrupt_queue , self . pending_interrupt_mask_stack , self . interrupt_lock , self . unblock , self . locking_mutex , self . keeping_mutexes , self . join_list , self . invoke_arg , self . invoke_type , self . stat_insn_usage , self . root_fiber , self . scheduler , self . blocking , self . name , self . specific_storage , self . ext_config)
2451 }
2452}
2453impl rb_thread_struct {
2454 #[inline]
2455 pub fn status(&self) -> rb_thread_status {
2456 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 2u8) as u32) }
2457 }
2458 #[inline]
2459 pub fn set_status(&mut self, val: rb_thread_status) {
2460 unsafe {
2461 let val: u32 = ::std::mem::transmute(val);
2462 self._bitfield_1.set(0usize, 2u8, val as u64)
2463 }
2464 }
2465 #[inline]
2466 pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2467 unsafe {
2468 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2469 ::std::ptr::addr_of!((*this)._bitfield_1),
2470 0usize,
2471 2u8,
2472 ) as u32)
2473 }
2474 }
2475 #[inline]
2476 pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2477 unsafe {
2478 let val: u32 = ::std::mem::transmute(val);
2479 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2480 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2481 0usize,
2482 2u8,
2483 val as u64,
2484 )
2485 }
2486 }
2487 #[inline]
2488 pub fn has_dedicated_nt(&self) -> ::std::os::raw::c_uint {
2489 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
2490 }
2491 #[inline]
2492 pub fn set_has_dedicated_nt(&mut self, val: ::std::os::raw::c_uint) {
2493 unsafe {
2494 let val: u32 = ::std::mem::transmute(val);
2495 self._bitfield_1.set(2usize, 1u8, val as u64)
2496 }
2497 }
2498 #[inline]
2499 pub unsafe fn has_dedicated_nt_raw(this: *const Self) -> ::std::os::raw::c_uint {
2500 unsafe {
2501 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2502 ::std::ptr::addr_of!((*this)._bitfield_1),
2503 2usize,
2504 1u8,
2505 ) as u32)
2506 }
2507 }
2508 #[inline]
2509 pub unsafe fn set_has_dedicated_nt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2510 unsafe {
2511 let val: u32 = ::std::mem::transmute(val);
2512 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2513 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2514 2usize,
2515 1u8,
2516 val as u64,
2517 )
2518 }
2519 }
2520 #[inline]
2521 pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2522 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
2523 }
2524 #[inline]
2525 pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2526 unsafe {
2527 let val: u32 = ::std::mem::transmute(val);
2528 self._bitfield_1.set(3usize, 1u8, val as u64)
2529 }
2530 }
2531 #[inline]
2532 pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2533 unsafe {
2534 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2535 ::std::ptr::addr_of!((*this)._bitfield_1),
2536 3usize,
2537 1u8,
2538 ) as u32)
2539 }
2540 }
2541 #[inline]
2542 pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2543 unsafe {
2544 let val: u32 = ::std::mem::transmute(val);
2545 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2546 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2547 3usize,
2548 1u8,
2549 val as u64,
2550 )
2551 }
2552 }
2553 #[inline]
2554 pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2555 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
2556 }
2557 #[inline]
2558 pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2559 unsafe {
2560 let val: u32 = ::std::mem::transmute(val);
2561 self._bitfield_1.set(4usize, 1u8, val as u64)
2562 }
2563 }
2564 #[inline]
2565 pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2566 unsafe {
2567 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2568 ::std::ptr::addr_of!((*this)._bitfield_1),
2569 4usize,
2570 1u8,
2571 ) as u32)
2572 }
2573 }
2574 #[inline]
2575 pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2576 unsafe {
2577 let val: u32 = ::std::mem::transmute(val);
2578 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2579 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2580 4usize,
2581 1u8,
2582 val as u64,
2583 )
2584 }
2585 }
2586 #[inline]
2587 pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2588 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
2589 }
2590 #[inline]
2591 pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2592 unsafe {
2593 let val: u32 = ::std::mem::transmute(val);
2594 self._bitfield_1.set(5usize, 1u8, val as u64)
2595 }
2596 }
2597 #[inline]
2598 pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2599 unsafe {
2600 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2601 ::std::ptr::addr_of!((*this)._bitfield_1),
2602 5usize,
2603 1u8,
2604 ) as u32)
2605 }
2606 }
2607 #[inline]
2608 pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2609 unsafe {
2610 let val: u32 = ::std::mem::transmute(val);
2611 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2612 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2613 5usize,
2614 1u8,
2615 val as u64,
2616 )
2617 }
2618 }
2619 #[inline]
2620 pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
2621 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
2622 }
2623 #[inline]
2624 pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
2625 unsafe {
2626 let val: u32 = ::std::mem::transmute(val);
2627 self._bitfield_1.set(6usize, 1u8, val as u64)
2628 }
2629 }
2630 #[inline]
2631 pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
2632 unsafe {
2633 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
2634 ::std::ptr::addr_of!((*this)._bitfield_1),
2635 6usize,
2636 1u8,
2637 ) as u32)
2638 }
2639 }
2640 #[inline]
2641 pub unsafe fn set_pending_interrupt_queue_checked_raw(
2642 this: *mut Self,
2643 val: ::std::os::raw::c_uint,
2644 ) {
2645 unsafe {
2646 let val: u32 = ::std::mem::transmute(val);
2647 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
2648 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2649 6usize,
2650 1u8,
2651 val as u64,
2652 )
2653 }
2654 }
2655 #[inline]
2656 pub fn new_bitfield_1(
2657 status: rb_thread_status,
2658 has_dedicated_nt: ::std::os::raw::c_uint,
2659 to_kill: ::std::os::raw::c_uint,
2660 abort_on_exception: ::std::os::raw::c_uint,
2661 report_on_exception: ::std::os::raw::c_uint,
2662 pending_interrupt_queue_checked: ::std::os::raw::c_uint,
2663 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2664 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2665 __bindgen_bitfield_unit.set(0usize, 2u8, {
2666 let status: u32 = unsafe { ::std::mem::transmute(status) };
2667 status as u64
2668 });
2669 __bindgen_bitfield_unit.set(2usize, 1u8, {
2670 let has_dedicated_nt: u32 = unsafe { ::std::mem::transmute(has_dedicated_nt) };
2671 has_dedicated_nt as u64
2672 });
2673 __bindgen_bitfield_unit.set(3usize, 1u8, {
2674 let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
2675 to_kill as u64
2676 });
2677 __bindgen_bitfield_unit.set(4usize, 1u8, {
2678 let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2679 abort_on_exception as u64
2680 });
2681 __bindgen_bitfield_unit.set(5usize, 1u8, {
2682 let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2683 report_on_exception as u64
2684 });
2685 __bindgen_bitfield_unit.set(6usize, 1u8, {
2686 let pending_interrupt_queue_checked: u32 =
2687 unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
2688 pending_interrupt_queue_checked as u64
2689 });
2690 __bindgen_bitfield_unit
2691 }
2692}
2693pub type rb_thread_t = rb_thread_struct;
2694#[repr(C)]
2695#[derive(Debug, Copy, Clone)]
2696pub struct rb_trace_arg_struct {
2697 pub event: rb_event_flag_t,
2698 pub ec: *mut rb_execution_context_t,
2699 pub cfp: *const rb_control_frame_t,
2700 pub self_: VALUE,
2701 pub id: ID,
2702 pub called_id: ID,
2703 pub klass: VALUE,
2704 pub data: VALUE,
2705 pub klass_solved: ::std::os::raw::c_int,
2706 pub lineno: ::std::os::raw::c_int,
2707 pub path: VALUE,
2708}
2709#[repr(C)]
2710#[derive(Debug, Copy, Clone)]
2711pub struct rb_ractor_pub {
2712 pub self_: VALUE,
2713 pub id: u32,
2714 pub hooks: rb_hook_list_t,
2715}
2716#[repr(C)]
2717#[derive(Debug, Copy, Clone)]
2718pub struct ractor_newobj_size_pool_cache {
2719 pub freelist: *mut RVALUE,
2720 pub using_page: *mut heap_page,
2721}
2722pub type rb_ractor_newobj_size_pool_cache_t = ractor_newobj_size_pool_cache;
2723#[repr(C)]
2724#[derive(Debug, Copy, Clone)]
2725pub struct ractor_newobj_cache {
2726 pub incremental_mark_step_allocated_slots: usize,
2727 pub size_pool_caches: [rb_ractor_newobj_size_pool_cache_t; 5usize],
2728}
2729pub type rb_ractor_newobj_cache_t = ractor_newobj_cache;
2730pub const rb_ractor_basket_type_basket_type_none: rb_ractor_basket_type = 0;
2731pub const rb_ractor_basket_type_basket_type_ref: rb_ractor_basket_type = 1;
2732pub const rb_ractor_basket_type_basket_type_copy: rb_ractor_basket_type = 2;
2733pub const rb_ractor_basket_type_basket_type_move: rb_ractor_basket_type = 3;
2734pub const rb_ractor_basket_type_basket_type_will: rb_ractor_basket_type = 4;
2735pub const rb_ractor_basket_type_basket_type_deleted: rb_ractor_basket_type = 5;
2736pub const rb_ractor_basket_type_basket_type_reserved: rb_ractor_basket_type = 6;
2737pub const rb_ractor_basket_type_basket_type_take_basket: rb_ractor_basket_type = 7;
2738pub const rb_ractor_basket_type_basket_type_yielding: rb_ractor_basket_type = 8;
2739pub type rb_ractor_basket_type = ::std::os::raw::c_uint;
2740#[repr(C)]
2741#[derive(Debug, Copy, Clone)]
2742pub struct rb_ractor_selector_take_config {
2743 pub closed: bool,
2744 pub oneshot: bool,
2745}
2746#[repr(C)]
2747#[derive(Copy, Clone)]
2748pub struct rb_ractor_basket {
2749 pub type_: rb_ractor_basket__bindgen_ty_1,
2750 pub sender: VALUE,
2751 pub p: rb_ractor_basket__bindgen_ty_2,
2752}
2753#[repr(C)]
2754#[derive(Copy, Clone)]
2755pub union rb_ractor_basket__bindgen_ty_1 {
2756 pub e: rb_ractor_basket_type,
2757 pub atomic: rb_atomic_t,
2758}
2759impl ::std::fmt::Debug for rb_ractor_basket__bindgen_ty_1 {
2760 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2761 write!(f, "rb_ractor_basket__bindgen_ty_1 {{ union }}")
2762 }
2763}
2764#[repr(C)]
2765#[derive(Copy, Clone)]
2766pub union rb_ractor_basket__bindgen_ty_2 {
2767 pub send: rb_ractor_basket__bindgen_ty_2__bindgen_ty_1,
2768 pub take: rb_ractor_basket__bindgen_ty_2__bindgen_ty_2,
2769}
2770#[repr(C)]
2771#[derive(Debug, Copy, Clone)]
2772pub struct rb_ractor_basket__bindgen_ty_2__bindgen_ty_1 {
2773 pub v: VALUE,
2774 pub exception: bool,
2775}
2776#[repr(C)]
2777#[derive(Debug, Copy, Clone)]
2778pub struct rb_ractor_basket__bindgen_ty_2__bindgen_ty_2 {
2779 pub basket: *mut rb_ractor_basket,
2780 pub config: *mut rb_ractor_selector_take_config,
2781}
2782impl ::std::fmt::Debug for rb_ractor_basket__bindgen_ty_2 {
2783 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2784 write!(f, "rb_ractor_basket__bindgen_ty_2 {{ union }}")
2785 }
2786}
2787impl ::std::fmt::Debug for rb_ractor_basket {
2788 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2789 write!(
2790 f,
2791 "rb_ractor_basket {{ type: {:?}, sender: {:?}, p: {:?} }}",
2792 self.type_, self.sender, self.p
2793 )
2794 }
2795}
2796#[repr(C)]
2797#[derive(Debug, Copy, Clone)]
2798pub struct rb_ractor_queue {
2799 pub baskets: *mut rb_ractor_basket,
2800 pub start: ::std::os::raw::c_int,
2801 pub cnt: ::std::os::raw::c_int,
2802 pub size: ::std::os::raw::c_int,
2803 pub serial: ::std::os::raw::c_uint,
2804 pub reserved_cnt: ::std::os::raw::c_uint,
2805}
2806pub const rb_ractor_wait_status_wait_none: rb_ractor_wait_status = 0;
2807pub const rb_ractor_wait_status_wait_receiving: rb_ractor_wait_status = 1;
2808pub const rb_ractor_wait_status_wait_taking: rb_ractor_wait_status = 2;
2809pub const rb_ractor_wait_status_wait_yielding: rb_ractor_wait_status = 4;
2810pub const rb_ractor_wait_status_wait_moving: rb_ractor_wait_status = 8;
2811pub type rb_ractor_wait_status = ::std::os::raw::c_uint;
2812pub const rb_ractor_wakeup_status_wakeup_none: rb_ractor_wakeup_status = 0;
2813pub const rb_ractor_wakeup_status_wakeup_by_send: rb_ractor_wakeup_status = 1;
2814pub const rb_ractor_wakeup_status_wakeup_by_yield: rb_ractor_wakeup_status = 2;
2815pub const rb_ractor_wakeup_status_wakeup_by_take: rb_ractor_wakeup_status = 3;
2816pub const rb_ractor_wakeup_status_wakeup_by_close: rb_ractor_wakeup_status = 4;
2817pub const rb_ractor_wakeup_status_wakeup_by_interrupt: rb_ractor_wakeup_status = 5;
2818pub const rb_ractor_wakeup_status_wakeup_by_retry: rb_ractor_wakeup_status = 6;
2819pub type rb_ractor_wakeup_status = ::std::os::raw::c_uint;
2820#[repr(C)]
2821#[derive(Copy, Clone)]
2822pub struct rb_ractor_sync {
2823 pub lock: rb_nativethread_lock_t,
2824 pub incoming_port_closed: bool,
2825 pub outgoing_port_closed: bool,
2826 pub recv_queue: rb_ractor_queue,
2827 pub takers_queue: rb_ractor_queue,
2828 pub will_basket: rb_ractor_basket,
2829 pub wait: rb_ractor_sync_ractor_wait,
2830}
2831#[repr(C)]
2832#[derive(Debug, Copy, Clone)]
2833pub struct rb_ractor_sync_ractor_wait {
2834 pub status: rb_ractor_wait_status,
2835 pub wakeup_status: rb_ractor_wakeup_status,
2836 pub waiting_thread: *mut rb_thread_t,
2837}
2838impl ::std::fmt::Debug for rb_ractor_sync {
2839 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2840 write ! (f , "rb_ractor_sync {{ lock: {:?}, incoming_port_closed: {:?}, outgoing_port_closed: {:?}, recv_queue: {:?}, takers_queue: {:?}, will_basket: {:?}, wait: {:?} }}" , self . lock , self . incoming_port_closed , self . outgoing_port_closed , self . recv_queue , self . takers_queue , self . will_basket , self . wait)
2841 }
2842}
2843pub const ractor_status_ractor_created: ractor_status = 0;
2844pub const ractor_status_ractor_running: ractor_status = 1;
2845pub const ractor_status_ractor_blocking: ractor_status = 2;
2846pub const ractor_status_ractor_terminated: ractor_status = 3;
2847pub type ractor_status = ::std::os::raw::c_uint;
2848#[repr(C)]
2849#[derive(Copy, Clone)]
2850pub struct rb_ractor_struct {
2851 pub pub_: rb_ractor_pub,
2852 pub sync: rb_ractor_sync,
2853 pub receiving_mutex: VALUE,
2854 pub barrier_wait_cond: rb_nativethread_cond_t,
2855 pub threads: rb_ractor_struct__bindgen_ty_1,
2856 pub thgroup_default: VALUE,
2857 pub name: VALUE,
2858 pub loc: VALUE,
2859 pub status_: ractor_status,
2860 pub vmlr_node: ccan_list_node,
2861 pub local_storage: *mut st_table,
2862 pub idkey_local_storage: *mut rb_id_table,
2863 pub r_stdin: VALUE,
2864 pub r_stdout: VALUE,
2865 pub r_stderr: VALUE,
2866 pub verbose: VALUE,
2867 pub debug: VALUE,
2868 pub newobj_cache: rb_ractor_newobj_cache_t,
2869 pub mfd: *mut rb_ractor_struct_gc_mark_func_data_struct,
2870}
2871#[repr(C)]
2872#[derive(Copy, Clone)]
2873pub struct rb_ractor_struct__bindgen_ty_1 {
2874 pub set: ccan_list_head,
2875 pub cnt: ::std::os::raw::c_uint,
2876 pub blocking_cnt: ::std::os::raw::c_uint,
2877 pub sleeper: ::std::os::raw::c_uint,
2878 pub sched: rb_thread_sched,
2879 pub running_ec: *mut rb_execution_context_t,
2880 pub main: *mut rb_thread_t,
2881}
2882impl ::std::fmt::Debug for rb_ractor_struct__bindgen_ty_1 {
2883 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2884 write ! (f , "rb_ractor_struct__bindgen_ty_1 {{ set: {:?}, cnt: {:?}, blocking_cnt: {:?}, sleeper: {:?}, sched: {:?}, running_ec: {:?}, main: {:?} }}" , self . set , self . cnt , self . blocking_cnt , self . sleeper , self . sched , self . running_ec , self . main)
2885 }
2886}
2887#[repr(C)]
2888#[derive(Debug, Copy, Clone)]
2889pub struct rb_ractor_struct_gc_mark_func_data_struct {
2890 pub data: *mut ::std::os::raw::c_void,
2891 pub mark_func:
2892 ::std::option::Option<unsafe extern "C" fn(v: VALUE, data: *mut ::std::os::raw::c_void)>,
2893}
2894impl ::std::fmt::Debug for rb_ractor_struct {
2895 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2896 write ! (f , "rb_ractor_struct {{ pub: {:?}, sync: {:?}, receiving_mutex: {:?}, barrier_wait_cond: {:?}, threads: {:?}, thgroup_default: {:?}, name: {:?}, loc: {:?}, status_: {:?}, vmlr_node: {:?}, local_storage: {:?}, idkey_local_storage: {:?}, r_stdin: {:?}, r_stdout: {:?}, r_stderr: {:?}, verbose: {:?}, debug: {:?}, newobj_cache: {:?}, mfd: {:?} }}" , self . pub_ , self . sync , self . receiving_mutex , self . barrier_wait_cond , self . threads , self . thgroup_default , self . name , self . loc , self . status_ , self . vmlr_node , self . local_storage , self . idkey_local_storage , self . r_stdin , self . r_stdout , self . r_stderr , self . verbose , self . debug , self . newobj_cache , self . mfd)
2897 }
2898}
2899#[repr(C)]
2900#[derive(Debug, Copy, Clone)]
2901pub struct iseq_compile_data {
2902 pub err_info: VALUE,
2903 pub catch_table_ary: VALUE,
2904 pub start_label: *mut iseq_label_data,
2905 pub end_label: *mut iseq_label_data,
2906 pub redo_label: *mut iseq_label_data,
2907 pub current_block: *const rb_iseq_t,
2908 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2909 pub node: iseq_compile_data__bindgen_ty_1,
2910 pub insn: iseq_compile_data__bindgen_ty_2,
2911 pub in_rescue: bool,
2912 pub in_masgn: bool,
2913 pub loopval_popped: ::std::os::raw::c_int,
2914 pub last_line: ::std::os::raw::c_int,
2915 pub label_no: ::std::os::raw::c_int,
2916 pub node_level: ::std::os::raw::c_int,
2917 pub isolated_depth: ::std::os::raw::c_int,
2918 pub ci_index: ::std::os::raw::c_uint,
2919 pub ic_index: ::std::os::raw::c_uint,
2920 pub option: *const rb_compile_option_t,
2921 pub ivar_cache_table: *mut rb_id_table,
2922 pub builtin_function_table: *const rb_builtin_function,
2923 pub root_node: *const NODE,
2924 pub catch_except_p: bool,
2925}
2926#[repr(C)]
2927#[derive(Debug, Copy, Clone)]
2928pub struct iseq_compile_data__bindgen_ty_1 {
2929 pub storage_head: *mut iseq_compile_data_storage,
2930 pub storage_current: *mut iseq_compile_data_storage,
2931}
2932#[repr(C)]
2933#[derive(Debug, Copy, Clone)]
2934pub struct iseq_compile_data__bindgen_ty_2 {
2935 pub storage_head: *mut iseq_compile_data_storage,
2936 pub storage_current: *mut iseq_compile_data_storage,
2937}
2938#[repr(C)]
2939#[derive(Debug, Copy, Clone)]
2940pub struct rb_compile_option_struct {
2941 pub _bitfield_align_1: [u8; 0],
2942 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2943 pub debug_level: ::std::os::raw::c_int,
2944}
2945impl rb_compile_option_struct {
2946 #[inline]
2947 pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
2948 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
2949 }
2950 #[inline]
2951 pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
2952 unsafe {
2953 let val: u32 = ::std::mem::transmute(val);
2954 self._bitfield_1.set(0usize, 1u8, val as u64)
2955 }
2956 }
2957 #[inline]
2958 pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
2959 unsafe {
2960 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2961 ::std::ptr::addr_of!((*this)._bitfield_1),
2962 0usize,
2963 1u8,
2964 ) as u32)
2965 }
2966 }
2967 #[inline]
2968 pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2969 unsafe {
2970 let val: u32 = ::std::mem::transmute(val);
2971 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
2972 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2973 0usize,
2974 1u8,
2975 val as u64,
2976 )
2977 }
2978 }
2979 #[inline]
2980 pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
2981 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
2982 }
2983 #[inline]
2984 pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
2985 unsafe {
2986 let val: u32 = ::std::mem::transmute(val);
2987 self._bitfield_1.set(1usize, 1u8, val as u64)
2988 }
2989 }
2990 #[inline]
2991 pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2992 unsafe {
2993 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
2994 ::std::ptr::addr_of!((*this)._bitfield_1),
2995 1usize,
2996 1u8,
2997 ) as u32)
2998 }
2999 }
3000 #[inline]
3001 pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3002 unsafe {
3003 let val: u32 = ::std::mem::transmute(val);
3004 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3005 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3006 1usize,
3007 1u8,
3008 val as u64,
3009 )
3010 }
3011 }
3012 #[inline]
3013 pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
3014 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
3015 }
3016 #[inline]
3017 pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
3018 unsafe {
3019 let val: u32 = ::std::mem::transmute(val);
3020 self._bitfield_1.set(2usize, 1u8, val as u64)
3021 }
3022 }
3023 #[inline]
3024 pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
3025 unsafe {
3026 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3027 ::std::ptr::addr_of!((*this)._bitfield_1),
3028 2usize,
3029 1u8,
3030 ) as u32)
3031 }
3032 }
3033 #[inline]
3034 pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3035 unsafe {
3036 let val: u32 = ::std::mem::transmute(val);
3037 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3038 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3039 2usize,
3040 1u8,
3041 val as u64,
3042 )
3043 }
3044 }
3045 #[inline]
3046 pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
3047 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
3048 }
3049 #[inline]
3050 pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
3051 unsafe {
3052 let val: u32 = ::std::mem::transmute(val);
3053 self._bitfield_1.set(3usize, 1u8, val as u64)
3054 }
3055 }
3056 #[inline]
3057 pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
3058 unsafe {
3059 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3060 ::std::ptr::addr_of!((*this)._bitfield_1),
3061 3usize,
3062 1u8,
3063 ) as u32)
3064 }
3065 }
3066 #[inline]
3067 pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3068 unsafe {
3069 let val: u32 = ::std::mem::transmute(val);
3070 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3071 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3072 3usize,
3073 1u8,
3074 val as u64,
3075 )
3076 }
3077 }
3078 #[inline]
3079 pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
3080 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
3081 }
3082 #[inline]
3083 pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
3084 unsafe {
3085 let val: u32 = ::std::mem::transmute(val);
3086 self._bitfield_1.set(4usize, 1u8, val as u64)
3087 }
3088 }
3089 #[inline]
3090 pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3091 unsafe {
3092 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3093 ::std::ptr::addr_of!((*this)._bitfield_1),
3094 4usize,
3095 1u8,
3096 ) as u32)
3097 }
3098 }
3099 #[inline]
3100 pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3101 unsafe {
3102 let val: u32 = ::std::mem::transmute(val);
3103 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3104 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3105 4usize,
3106 1u8,
3107 val as u64,
3108 )
3109 }
3110 }
3111 #[inline]
3112 pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
3113 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
3114 }
3115 #[inline]
3116 pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3117 unsafe {
3118 let val: u32 = ::std::mem::transmute(val);
3119 self._bitfield_1.set(5usize, 1u8, val as u64)
3120 }
3121 }
3122 #[inline]
3123 pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3124 unsafe {
3125 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3126 ::std::ptr::addr_of!((*this)._bitfield_1),
3127 5usize,
3128 1u8,
3129 ) as u32)
3130 }
3131 }
3132 #[inline]
3133 pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3134 unsafe {
3135 let val: u32 = ::std::mem::transmute(val);
3136 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3137 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3138 5usize,
3139 1u8,
3140 val as u64,
3141 )
3142 }
3143 }
3144 #[inline]
3145 pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3146 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
3147 }
3148 #[inline]
3149 pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3150 unsafe {
3151 let val: u32 = ::std::mem::transmute(val);
3152 self._bitfield_1.set(6usize, 1u8, val as u64)
3153 }
3154 }
3155 #[inline]
3156 pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3157 unsafe {
3158 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3159 ::std::ptr::addr_of!((*this)._bitfield_1),
3160 6usize,
3161 1u8,
3162 ) as u32)
3163 }
3164 }
3165 #[inline]
3166 pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3167 unsafe {
3168 let val: u32 = ::std::mem::transmute(val);
3169 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3170 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3171 6usize,
3172 1u8,
3173 val as u64,
3174 )
3175 }
3176 }
3177 #[inline]
3178 pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3179 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
3180 }
3181 #[inline]
3182 pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3183 unsafe {
3184 let val: u32 = ::std::mem::transmute(val);
3185 self._bitfield_1.set(7usize, 1u8, val as u64)
3186 }
3187 }
3188 #[inline]
3189 pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3190 unsafe {
3191 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3192 ::std::ptr::addr_of!((*this)._bitfield_1),
3193 7usize,
3194 1u8,
3195 ) as u32)
3196 }
3197 }
3198 #[inline]
3199 pub unsafe fn set_debug_frozen_string_literal_raw(
3200 this: *mut Self,
3201 val: ::std::os::raw::c_uint,
3202 ) {
3203 unsafe {
3204 let val: u32 = ::std::mem::transmute(val);
3205 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3206 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3207 7usize,
3208 1u8,
3209 val as u64,
3210 )
3211 }
3212 }
3213 #[inline]
3214 pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3215 unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 1u8) as u32) }
3216 }
3217 #[inline]
3218 pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3219 unsafe {
3220 let val: u32 = ::std::mem::transmute(val);
3221 self._bitfield_1.set(8usize, 1u8, val as u64)
3222 }
3223 }
3224 #[inline]
3225 pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3226 unsafe {
3227 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get(
3228 ::std::ptr::addr_of!((*this)._bitfield_1),
3229 8usize,
3230 1u8,
3231 ) as u32)
3232 }
3233 }
3234 #[inline]
3235 pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3236 unsafe {
3237 let val: u32 = ::std::mem::transmute(val);
3238 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set(
3239 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3240 8usize,
3241 1u8,
3242 val as u64,
3243 )
3244 }
3245 }
3246 #[inline]
3247 pub fn new_bitfield_1(
3248 inline_const_cache: ::std::os::raw::c_uint,
3249 peephole_optimization: ::std::os::raw::c_uint,
3250 tailcall_optimization: ::std::os::raw::c_uint,
3251 specialized_instruction: ::std::os::raw::c_uint,
3252 operands_unification: ::std::os::raw::c_uint,
3253 instructions_unification: ::std::os::raw::c_uint,
3254 frozen_string_literal: ::std::os::raw::c_uint,
3255 debug_frozen_string_literal: ::std::os::raw::c_uint,
3256 coverage_enabled: ::std::os::raw::c_uint,
3257 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3258 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3259 __bindgen_bitfield_unit.set(0usize, 1u8, {
3260 let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3261 inline_const_cache as u64
3262 });
3263 __bindgen_bitfield_unit.set(1usize, 1u8, {
3264 let peephole_optimization: u32 =
3265 unsafe { ::std::mem::transmute(peephole_optimization) };
3266 peephole_optimization as u64
3267 });
3268 __bindgen_bitfield_unit.set(2usize, 1u8, {
3269 let tailcall_optimization: u32 =
3270 unsafe { ::std::mem::transmute(tailcall_optimization) };
3271 tailcall_optimization as u64
3272 });
3273 __bindgen_bitfield_unit.set(3usize, 1u8, {
3274 let specialized_instruction: u32 =
3275 unsafe { ::std::mem::transmute(specialized_instruction) };
3276 specialized_instruction as u64
3277 });
3278 __bindgen_bitfield_unit.set(4usize, 1u8, {
3279 let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3280 operands_unification as u64
3281 });
3282 __bindgen_bitfield_unit.set(5usize, 1u8, {
3283 let instructions_unification: u32 =
3284 unsafe { ::std::mem::transmute(instructions_unification) };
3285 instructions_unification as u64
3286 });
3287 __bindgen_bitfield_unit.set(6usize, 1u8, {
3288 let frozen_string_literal: u32 =
3289 unsafe { ::std::mem::transmute(frozen_string_literal) };
3290 frozen_string_literal as u64
3291 });
3292 __bindgen_bitfield_unit.set(7usize, 1u8, {
3293 let debug_frozen_string_literal: u32 =
3294 unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3295 debug_frozen_string_literal as u64
3296 });
3297 __bindgen_bitfield_unit.set(8usize, 1u8, {
3298 let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3299 coverage_enabled as u64
3300 });
3301 __bindgen_bitfield_unit
3302 }
3303}
3304#[repr(C)]
3305#[derive(Debug, Copy, Clone)]
3306pub struct iseq_insn_info_entry {
3307 pub line_no: ::std::os::raw::c_int,
3308 pub node_id: ::std::os::raw::c_int,
3309 pub events: rb_event_flag_t,
3310}
3311pub const rb_catch_type_CATCH_TYPE_RESCUE: rb_catch_type = 3;
3312pub const rb_catch_type_CATCH_TYPE_ENSURE: rb_catch_type = 5;
3313pub const rb_catch_type_CATCH_TYPE_RETRY: rb_catch_type = 7;
3314pub const rb_catch_type_CATCH_TYPE_BREAK: rb_catch_type = 9;
3315pub const rb_catch_type_CATCH_TYPE_REDO: rb_catch_type = 11;
3316pub const rb_catch_type_CATCH_TYPE_NEXT: rb_catch_type = 13;
3317pub type rb_catch_type = ::std::os::raw::c_uint;
3318#[repr(C)]
3319#[derive(Debug, Copy, Clone)]
3320pub struct iseq_catch_table_entry {
3321 pub type_: rb_catch_type,
3322 pub iseq: *mut rb_iseq_t,
3323 pub start: ::std::os::raw::c_uint,
3324 pub end: ::std::os::raw::c_uint,
3325 pub cont: ::std::os::raw::c_uint,
3326 pub sp: ::std::os::raw::c_uint,
3327}
3328#[repr(C, packed)]
3329pub struct iseq_catch_table {
3330 pub size: ::std::os::raw::c_uint,
3331 pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3332}
3333#[repr(C)]
3334#[derive(Debug)]
3335pub struct iseq_compile_data_storage {
3336 pub next: *mut iseq_compile_data_storage,
3337 pub pos: ::std::os::raw::c_uint,
3338 pub size: ::std::os::raw::c_uint,
3339 pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3340}
3341#[repr(C)]
3342#[derive(Debug, Copy, Clone)]
3343pub struct coroutine_context {
3344 pub _address: u8,
3345}
3346#[repr(C)]
3347#[derive(Debug, Copy, Clone)]
3348pub struct rb_call_data {
3349 pub _address: u8,
3350}
3351#[repr(C)]
3352#[derive(Debug, Copy, Clone)]
3353pub struct succ_index_table {
3354 pub _address: u8,
3355}
3356#[repr(C)]
3357#[derive(Debug, Copy, Clone)]
3358pub struct rb_event_hook_struct {
3359 pub _address: u8,
3360}
3361#[repr(C)]
3362#[derive(Debug, Copy, Clone)]
3363pub struct rb_postponed_job_queue {
3364 pub _address: u8,
3365}
3366#[repr(C)]
3367#[derive(Debug, Copy, Clone)]
3368pub struct RVALUE {
3369 pub _address: u8,
3370}
3371#[repr(C)]
3372#[derive(Debug, Copy, Clone)]
3373pub struct heap_page {
3374 pub _address: u8,
3375}
3376#[repr(C)]
3377#[derive(Debug, Copy, Clone)]
3378pub struct iseq_label_data {
3379 pub _address: u8,
3380}
3381#[repr(C)]
3382#[derive(Debug, Copy, Clone)]
3383pub struct iseq_compile_data_ensure_node_stack {
3384 pub _address: u8,
3385}