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}
140pub type __clockid_t = ::std::os::raw::c_int;
141pub type clockid_t = __clockid_t;
142#[repr(C)]
143#[derive(Debug, Copy, Clone)]
144pub struct __sigset_t {
145 pub __val: [usize; 16usize],
146}
147#[repr(C)]
148#[derive(Debug, Copy, Clone)]
149pub struct __pthread_internal_list {
150 pub __prev: *mut __pthread_internal_list,
151 pub __next: *mut __pthread_internal_list,
152}
153pub type __pthread_list_t = __pthread_internal_list;
154#[repr(C)]
155#[derive(Debug, Copy, Clone)]
156pub struct __pthread_mutex_s {
157 pub __lock: ::std::os::raw::c_int,
158 pub __count: ::std::os::raw::c_uint,
159 pub __owner: ::std::os::raw::c_int,
160 pub __nusers: ::std::os::raw::c_uint,
161 pub __kind: ::std::os::raw::c_int,
162 pub __spins: ::std::os::raw::c_short,
163 pub __elision: ::std::os::raw::c_short,
164 pub __list: __pthread_list_t,
165}
166#[repr(C)]
167#[derive(Copy, Clone)]
168pub struct __pthread_cond_s {
169 pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
170 pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
171 pub __g_refs: [::std::os::raw::c_uint; 2usize],
172 pub __g_size: [::std::os::raw::c_uint; 2usize],
173 pub __g1_orig_size: ::std::os::raw::c_uint,
174 pub __wrefs: ::std::os::raw::c_uint,
175 pub __g_signals: [::std::os::raw::c_uint; 2usize],
176}
177#[repr(C)]
178#[derive(Copy, Clone)]
179pub union __pthread_cond_s__bindgen_ty_1 {
180 pub __wseq: ::std::os::raw::c_ulonglong,
181 pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
182}
183#[repr(C)]
184#[derive(Debug, Copy, Clone)]
185pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
186 pub __low: ::std::os::raw::c_uint,
187 pub __high: ::std::os::raw::c_uint,
188}
189impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_1 {
190 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
191 write!(f, "__pthread_cond_s__bindgen_ty_1 {{ union }}")
192 }
193}
194#[repr(C)]
195#[derive(Copy, Clone)]
196pub union __pthread_cond_s__bindgen_ty_2 {
197 pub __g1_start: ::std::os::raw::c_ulonglong,
198 pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
199}
200#[repr(C)]
201#[derive(Debug, Copy, Clone)]
202pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
203 pub __low: ::std::os::raw::c_uint,
204 pub __high: ::std::os::raw::c_uint,
205}
206impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_2 {
207 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
208 write!(f, "__pthread_cond_s__bindgen_ty_2 {{ union }}")
209 }
210}
211impl ::std::fmt::Debug for __pthread_cond_s {
212 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
213 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)
214 }
215}
216pub type pthread_t = usize;
217#[repr(C)]
218#[derive(Copy, Clone)]
219pub union pthread_mutex_t {
220 pub __data: __pthread_mutex_s,
221 pub __size: [::std::os::raw::c_char; 40usize],
222 pub __align: ::std::os::raw::c_long,
223}
224impl ::std::fmt::Debug for pthread_mutex_t {
225 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
226 write!(f, "pthread_mutex_t {{ union }}")
227 }
228}
229#[repr(C)]
230#[derive(Copy, Clone)]
231pub union pthread_cond_t {
232 pub __data: __pthread_cond_s,
233 pub __size: [::std::os::raw::c_char; 48usize],
234 pub __align: ::std::os::raw::c_longlong,
235}
236impl ::std::fmt::Debug for pthread_cond_t {
237 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
238 write!(f, "pthread_cond_t {{ union }}")
239 }
240}
241pub type VALUE = usize;
242pub type ID = usize;
243#[repr(C)]
244#[derive(Debug, Copy, Clone)]
245pub struct RBasic {
246 pub flags: VALUE,
247 pub klass: VALUE,
248}
249#[repr(C)]
250#[derive(Copy, Clone)]
251pub struct RString {
252 pub basic: RBasic,
253 pub as_: RString__bindgen_ty_1,
254}
255#[repr(C)]
256#[derive(Copy, Clone)]
257pub union RString__bindgen_ty_1 {
258 pub heap: RString__bindgen_ty_1__bindgen_ty_1,
259 pub ary: [::std::os::raw::c_char; 24usize],
260}
261#[repr(C)]
262#[derive(Copy, Clone)]
263pub struct RString__bindgen_ty_1__bindgen_ty_1 {
264 pub len: ::std::os::raw::c_long,
265 pub ptr: *mut ::std::os::raw::c_char,
266 pub aux: RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
267}
268#[repr(C)]
269#[derive(Copy, Clone)]
270pub union RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
271 pub capa: ::std::os::raw::c_long,
272 pub shared: VALUE,
273}
274impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
275 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
276 write!(
277 f,
278 "RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
279 )
280 }
281}
282impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1 {
283 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
284 write!(
285 f,
286 "RString__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, ptr: {:?}, aux: {:?} }}",
287 self.len, self.ptr, self.aux
288 )
289 }
290}
291impl ::std::fmt::Debug for RString__bindgen_ty_1 {
292 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
293 write!(f, "RString__bindgen_ty_1 {{ union }}")
294 }
295}
296impl ::std::fmt::Debug for RString {
297 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
298 write!(
299 f,
300 "RString {{ basic: {:?}, as: {:?} }}",
301 self.basic, self.as_
302 )
303 }
304}
305#[repr(C)]
306#[derive(Copy, Clone)]
307pub struct RArray {
308 pub basic: RBasic,
309 pub as_: RArray__bindgen_ty_1,
310}
311#[repr(C)]
312#[derive(Copy, Clone)]
313pub union RArray__bindgen_ty_1 {
314 pub heap: RArray__bindgen_ty_1__bindgen_ty_1,
315 pub ary: [VALUE; 3usize],
316}
317#[repr(C)]
318#[derive(Copy, Clone)]
319pub struct RArray__bindgen_ty_1__bindgen_ty_1 {
320 pub len: ::std::os::raw::c_long,
321 pub aux: RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
322 pub ptr: *const VALUE,
323}
324#[repr(C)]
325#[derive(Copy, Clone)]
326pub union RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
327 pub capa: ::std::os::raw::c_long,
328 pub shared: VALUE,
329}
330impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
331 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
332 write!(
333 f,
334 "RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
335 )
336 }
337}
338impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1 {
339 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
340 write!(
341 f,
342 "RArray__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, aux: {:?}, ptr: {:?} }}",
343 self.len, self.aux, self.ptr
344 )
345 }
346}
347impl ::std::fmt::Debug for RArray__bindgen_ty_1 {
348 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
349 write!(f, "RArray__bindgen_ty_1 {{ union }}")
350 }
351}
352impl ::std::fmt::Debug for RArray {
353 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
354 write!(
355 f,
356 "RArray {{ basic: {:?}, as: {:?} }}",
357 self.basic, self.as_
358 )
359 }
360}
361#[repr(C)]
362#[derive(Debug, Copy, Clone)]
363pub struct rb_global_variable {
364 _unused: [u8; 0],
365}
366pub type st_data_t = usize;
367pub type st_index_t = st_data_t;
368#[repr(C)]
369#[derive(Debug, Copy, Clone)]
370pub struct st_hash_type {
371 pub compare: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
372 pub hash: ::std::option::Option<unsafe extern "C" fn() -> st_index_t>,
373}
374#[repr(C)]
375#[derive(Copy, Clone)]
376pub struct st_table {
377 pub type_: *const st_hash_type,
378 pub num_bins: st_index_t,
379 pub _bitfield_align_1: [u64; 0],
380 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
381 pub as_: st_table__bindgen_ty_1,
382}
383#[repr(C)]
384#[derive(Copy, Clone)]
385pub union st_table__bindgen_ty_1 {
386 pub big: st_table__bindgen_ty_1__bindgen_ty_1,
387 pub packed: st_table__bindgen_ty_1__bindgen_ty_2,
388}
389#[repr(C)]
390#[derive(Debug, Copy, Clone)]
391pub struct st_table__bindgen_ty_1__bindgen_ty_1 {
392 pub bins: *mut *mut st_table_entry,
393 pub head: *mut st_table_entry,
394 pub tail: *mut st_table_entry,
395}
396#[repr(C)]
397#[derive(Debug, Copy, Clone)]
398pub struct st_table__bindgen_ty_1__bindgen_ty_2 {
399 pub entries: *mut st_packed_entry,
400 pub real_entries: st_index_t,
401}
402impl ::std::fmt::Debug for st_table__bindgen_ty_1 {
403 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
404 write!(f, "st_table__bindgen_ty_1 {{ union }}")
405 }
406}
407impl ::std::fmt::Debug for st_table {
408 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
409 write ! (f , "st_table {{ type: {:?}, num_bins: {:?}, entries_packed : {:?}, num_entries : {:?}, as: {:?} }}" , self . type_ , self . num_bins , self . entries_packed () , self . num_entries () , self . as_)
410 }
411}
412impl st_table {
413 #[inline]
414 pub fn entries_packed(&self) -> ::std::os::raw::c_uint {
415 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
416 }
417 #[inline]
418 pub fn set_entries_packed(&mut self, val: ::std::os::raw::c_uint) {
419 unsafe {
420 let val: u32 = ::std::mem::transmute(val);
421 self._bitfield_1.set(0usize, 1u8, val as u64)
422 }
423 }
424 #[inline]
425 pub unsafe fn entries_packed_raw(this: *const Self) -> ::std::os::raw::c_uint {
426 unsafe {
427 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
428 ::std::ptr::addr_of!((*this)._bitfield_1),
429 0usize,
430 1u8,
431 ) as u32)
432 }
433 }
434 #[inline]
435 pub unsafe fn set_entries_packed_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
436 unsafe {
437 let val: u32 = ::std::mem::transmute(val);
438 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
439 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
440 0usize,
441 1u8,
442 val as u64,
443 )
444 }
445 }
446 #[inline]
447 pub fn num_entries(&self) -> st_index_t {
448 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 63u8) as usize) }
449 }
450 #[inline]
451 pub fn set_num_entries(&mut self, val: st_index_t) {
452 unsafe {
453 let val: usize = ::std::mem::transmute(val);
454 self._bitfield_1.set(1usize, 63u8, val as u64)
455 }
456 }
457 #[inline]
458 pub unsafe fn num_entries_raw(this: *const Self) -> st_index_t {
459 unsafe {
460 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get(
461 ::std::ptr::addr_of!((*this)._bitfield_1),
462 1usize,
463 63u8,
464 ) as u64)
465 }
466 }
467 #[inline]
468 pub unsafe fn set_num_entries_raw(this: *mut Self, val: st_index_t) {
469 unsafe {
470 let val: usize = ::std::mem::transmute(val);
471 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set(
472 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
473 1usize,
474 63u8,
475 val as u64,
476 )
477 }
478 }
479 #[inline]
480 pub fn new_bitfield_1(
481 entries_packed: ::std::os::raw::c_uint,
482 num_entries: st_index_t,
483 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
484 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
485 __bindgen_bitfield_unit.set(0usize, 1u8, {
486 let entries_packed: u32 = unsafe { ::std::mem::transmute(entries_packed) };
487 entries_packed as u64
488 });
489 __bindgen_bitfield_unit.set(1usize, 63u8, {
490 let num_entries: usize = unsafe { ::std::mem::transmute(num_entries) };
491 num_entries as u64
492 });
493 __bindgen_bitfield_unit
494 }
495}
496pub type rb_unblock_function_t =
497 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
498pub type rb_event_flag_t = u32;
499#[repr(C)]
500#[derive(Copy, Clone)]
501pub struct RNode {
502 pub flags: VALUE,
503 pub nd_reserved: VALUE,
504 pub u1: RNode__bindgen_ty_1,
505 pub u2: RNode__bindgen_ty_2,
506 pub u3: RNode__bindgen_ty_3,
507}
508#[repr(C)]
509#[derive(Copy, Clone)]
510pub union RNode__bindgen_ty_1 {
511 pub node: *mut RNode,
512 pub id: ID,
513 pub value: VALUE,
514 pub cfunc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
515 pub tbl: *mut ID,
516}
517impl ::std::fmt::Debug for RNode__bindgen_ty_1 {
518 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
519 write!(f, "RNode__bindgen_ty_1 {{ union }}")
520 }
521}
522#[repr(C)]
523#[derive(Copy, Clone)]
524pub union RNode__bindgen_ty_2 {
525 pub node: *mut RNode,
526 pub id: ID,
527 pub argc: ::std::os::raw::c_long,
528 pub value: VALUE,
529}
530impl ::std::fmt::Debug for RNode__bindgen_ty_2 {
531 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
532 write!(f, "RNode__bindgen_ty_2 {{ union }}")
533 }
534}
535#[repr(C)]
536#[derive(Copy, Clone)]
537pub union RNode__bindgen_ty_3 {
538 pub node: *mut RNode,
539 pub id: ID,
540 pub state: ::std::os::raw::c_long,
541 pub entry: *mut rb_global_entry,
542 pub args: *mut rb_args_info,
543 pub cnt: ::std::os::raw::c_long,
544 pub value: VALUE,
545}
546impl ::std::fmt::Debug for RNode__bindgen_ty_3 {
547 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
548 write!(f, "RNode__bindgen_ty_3 {{ union }}")
549 }
550}
551impl ::std::fmt::Debug for RNode {
552 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
553 write!(
554 f,
555 "RNode {{ flags: {:?}, nd_reserved: {:?}, u1: {:?}, u2: {:?}, u3: {:?} }}",
556 self.flags, self.nd_reserved, self.u1, self.u2, self.u3
557 )
558 }
559}
560pub type NODE = RNode;
561#[repr(C)]
562#[derive(Debug, Copy, Clone)]
563pub struct rb_global_entry {
564 pub var: *mut rb_global_variable,
565 pub id: ID,
566}
567#[repr(C)]
568#[derive(Debug, Copy, Clone)]
569pub struct rb_args_info {
570 pub pre_init: *mut NODE,
571 pub post_init: *mut NODE,
572 pub pre_args_num: ::std::os::raw::c_int,
573 pub post_args_num: ::std::os::raw::c_int,
574 pub first_post_arg: ID,
575 pub rest_arg: ID,
576 pub block_arg: ID,
577 pub kw_args: *mut NODE,
578 pub kw_rest_arg: *mut NODE,
579 pub opt_args: *mut NODE,
580}
581pub const ruby_id_types_RUBY_ID_STATIC_SYM: ruby_id_types = 1;
582pub const ruby_id_types_RUBY_ID_LOCAL: ruby_id_types = 0;
583pub const ruby_id_types_RUBY_ID_INSTANCE: ruby_id_types = 2;
584pub const ruby_id_types_RUBY_ID_GLOBAL: ruby_id_types = 6;
585pub const ruby_id_types_RUBY_ID_ATTRSET: ruby_id_types = 8;
586pub const ruby_id_types_RUBY_ID_CONST: ruby_id_types = 10;
587pub const ruby_id_types_RUBY_ID_CLASS: ruby_id_types = 12;
588pub const ruby_id_types_RUBY_ID_JUNK: ruby_id_types = 14;
589pub const ruby_id_types_RUBY_ID_INTERNAL: ruby_id_types = 14;
590pub const ruby_id_types_RUBY_ID_SCOPE_SHIFT: ruby_id_types = 4;
591pub const ruby_id_types_RUBY_ID_SCOPE_MASK: ruby_id_types = 14;
592pub type ruby_id_types = ::std::os::raw::c_uint;
593pub const ruby_method_ids_idDot2: ruby_method_ids = 128;
594pub const ruby_method_ids_idDot3: ruby_method_ids = 129;
595pub const ruby_method_ids_idUPlus: ruby_method_ids = 130;
596pub const ruby_method_ids_idUMinus: ruby_method_ids = 131;
597pub const ruby_method_ids_idPow: ruby_method_ids = 132;
598pub const ruby_method_ids_idCmp: ruby_method_ids = 134;
599pub const ruby_method_ids_idPLUS: ruby_method_ids = 43;
600pub const ruby_method_ids_idMINUS: ruby_method_ids = 45;
601pub const ruby_method_ids_idMULT: ruby_method_ids = 42;
602pub const ruby_method_ids_idDIV: ruby_method_ids = 47;
603pub const ruby_method_ids_idMOD: ruby_method_ids = 37;
604pub const ruby_method_ids_idLT: ruby_method_ids = 60;
605pub const ruby_method_ids_idLTLT: ruby_method_ids = 135;
606pub const ruby_method_ids_idLE: ruby_method_ids = 137;
607pub const ruby_method_ids_idGT: ruby_method_ids = 62;
608pub const ruby_method_ids_idGTGT: ruby_method_ids = 136;
609pub const ruby_method_ids_idGE: ruby_method_ids = 138;
610pub const ruby_method_ids_idEq: ruby_method_ids = 139;
611pub const ruby_method_ids_idEqq: ruby_method_ids = 140;
612pub const ruby_method_ids_idNeq: ruby_method_ids = 141;
613pub const ruby_method_ids_idNot: ruby_method_ids = 33;
614pub const ruby_method_ids_idBackquote: ruby_method_ids = 96;
615pub const ruby_method_ids_idEqTilde: ruby_method_ids = 142;
616pub const ruby_method_ids_idNeqTilde: ruby_method_ids = 143;
617pub const ruby_method_ids_idAREF: ruby_method_ids = 144;
618pub const ruby_method_ids_idASET: ruby_method_ids = 145;
619pub const ruby_method_ids_idCOLON2: ruby_method_ids = 146;
620pub const ruby_method_ids_idANDOP: ruby_method_ids = 148;
621pub const ruby_method_ids_idOROP: ruby_method_ids = 149;
622pub const ruby_method_ids_tPRESERVED_ID_BEGIN: ruby_method_ids = 149;
623pub const ruby_method_ids_idNULL: ruby_method_ids = 150;
624pub const ruby_method_ids_idEmptyP: ruby_method_ids = 151;
625pub const ruby_method_ids_idEqlP: ruby_method_ids = 152;
626pub const ruby_method_ids_idRespond_to: ruby_method_ids = 153;
627pub const ruby_method_ids_idRespond_to_missing: ruby_method_ids = 154;
628pub const ruby_method_ids_idIFUNC: ruby_method_ids = 155;
629pub const ruby_method_ids_idCFUNC: ruby_method_ids = 156;
630pub const ruby_method_ids_id_core_set_method_alias: ruby_method_ids = 157;
631pub const ruby_method_ids_id_core_set_variable_alias: ruby_method_ids = 158;
632pub const ruby_method_ids_id_core_undef_method: ruby_method_ids = 159;
633pub const ruby_method_ids_id_core_define_method: ruby_method_ids = 160;
634pub const ruby_method_ids_id_core_define_singleton_method: ruby_method_ids = 161;
635pub const ruby_method_ids_id_core_set_postexe: ruby_method_ids = 162;
636pub const ruby_method_ids_id_core_hash_from_ary: ruby_method_ids = 163;
637pub const ruby_method_ids_id_core_hash_merge_ary: ruby_method_ids = 164;
638pub const ruby_method_ids_id_core_hash_merge_ptr: ruby_method_ids = 165;
639pub const ruby_method_ids_id_core_hash_merge_kwd: ruby_method_ids = 166;
640pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 167;
641pub const ruby_method_ids_tFreeze: ruby_method_ids = 168;
642pub const ruby_method_ids_tInspect: ruby_method_ids = 169;
643pub const ruby_method_ids_tIntern: ruby_method_ids = 170;
644pub const ruby_method_ids_tObject_id: ruby_method_ids = 171;
645pub const ruby_method_ids_tConst_missing: ruby_method_ids = 172;
646pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 173;
647pub const ruby_method_ids_tMethod_added: ruby_method_ids = 174;
648pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 175;
649pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 176;
650pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 177;
651pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 178;
652pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 179;
653pub const ruby_method_ids_tLength: ruby_method_ids = 180;
654pub const ruby_method_ids_tSize: ruby_method_ids = 181;
655pub const ruby_method_ids_tGets: ruby_method_ids = 182;
656pub const ruby_method_ids_tSucc: ruby_method_ids = 183;
657pub const ruby_method_ids_tEach: ruby_method_ids = 184;
658pub const ruby_method_ids_tProc: ruby_method_ids = 185;
659pub const ruby_method_ids_tLambda: ruby_method_ids = 186;
660pub const ruby_method_ids_tSend: ruby_method_ids = 187;
661pub const ruby_method_ids_t__send__: ruby_method_ids = 188;
662pub const ruby_method_ids_t__attached__: ruby_method_ids = 189;
663pub const ruby_method_ids_tInitialize: ruby_method_ids = 190;
664pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 191;
665pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 192;
666pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 193;
667pub const ruby_method_ids_tTo_int: ruby_method_ids = 194;
668pub const ruby_method_ids_tTo_ary: ruby_method_ids = 195;
669pub const ruby_method_ids_tTo_str: ruby_method_ids = 196;
670pub const ruby_method_ids_tTo_sym: ruby_method_ids = 197;
671pub const ruby_method_ids_tTo_hash: ruby_method_ids = 198;
672pub const ruby_method_ids_tTo_proc: ruby_method_ids = 199;
673pub const ruby_method_ids_tTo_io: ruby_method_ids = 200;
674pub const ruby_method_ids_tTo_a: ruby_method_ids = 201;
675pub const ruby_method_ids_tTo_s: ruby_method_ids = 202;
676pub const ruby_method_ids_tTo_i: ruby_method_ids = 203;
677pub const ruby_method_ids_tBt: ruby_method_ids = 204;
678pub const ruby_method_ids_tBt_locations: ruby_method_ids = 205;
679pub const ruby_method_ids_tCall: ruby_method_ids = 206;
680pub const ruby_method_ids_tMesg: ruby_method_ids = 207;
681pub const ruby_method_ids_tException: ruby_method_ids = 208;
682pub const ruby_method_ids_tUScore: ruby_method_ids = 209;
683pub const ruby_method_ids_tNEXT_ID: ruby_method_ids = 210;
684pub const ruby_method_ids_idFreeze: ruby_method_ids = 2689;
685pub const ruby_method_ids_idInspect: ruby_method_ids = 2705;
686pub const ruby_method_ids_idIntern: ruby_method_ids = 2721;
687pub const ruby_method_ids_idObject_id: ruby_method_ids = 2737;
688pub const ruby_method_ids_idConst_missing: ruby_method_ids = 2753;
689pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 2769;
690pub const ruby_method_ids_idMethod_added: ruby_method_ids = 2785;
691pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 2801;
692pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 2817;
693pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 2833;
694pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 2849;
695pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 2865;
696pub const ruby_method_ids_idLength: ruby_method_ids = 2881;
697pub const ruby_method_ids_idSize: ruby_method_ids = 2897;
698pub const ruby_method_ids_idGets: ruby_method_ids = 2913;
699pub const ruby_method_ids_idSucc: ruby_method_ids = 2929;
700pub const ruby_method_ids_idEach: ruby_method_ids = 2945;
701pub const ruby_method_ids_idProc: ruby_method_ids = 2961;
702pub const ruby_method_ids_idLambda: ruby_method_ids = 2977;
703pub const ruby_method_ids_idSend: ruby_method_ids = 2993;
704pub const ruby_method_ids_id__send__: ruby_method_ids = 3009;
705pub const ruby_method_ids_id__attached__: ruby_method_ids = 3025;
706pub const ruby_method_ids_idInitialize: ruby_method_ids = 3041;
707pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 3057;
708pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 3073;
709pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 3089;
710pub const ruby_method_ids_idTo_int: ruby_method_ids = 3105;
711pub const ruby_method_ids_idTo_ary: ruby_method_ids = 3121;
712pub const ruby_method_ids_idTo_str: ruby_method_ids = 3137;
713pub const ruby_method_ids_idTo_sym: ruby_method_ids = 3153;
714pub const ruby_method_ids_idTo_hash: ruby_method_ids = 3169;
715pub const ruby_method_ids_idTo_proc: ruby_method_ids = 3185;
716pub const ruby_method_ids_idTo_io: ruby_method_ids = 3201;
717pub const ruby_method_ids_idTo_a: ruby_method_ids = 3217;
718pub const ruby_method_ids_idTo_s: ruby_method_ids = 3233;
719pub const ruby_method_ids_idTo_i: ruby_method_ids = 3249;
720pub const ruby_method_ids_idBt: ruby_method_ids = 3265;
721pub const ruby_method_ids_idBt_locations: ruby_method_ids = 3281;
722pub const ruby_method_ids_idCall: ruby_method_ids = 3297;
723pub const ruby_method_ids_idMesg: ruby_method_ids = 3313;
724pub const ruby_method_ids_idException: ruby_method_ids = 3329;
725pub const ruby_method_ids_idUScore: ruby_method_ids = 3345;
726pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 166;
727pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 10;
728pub type ruby_method_ids = ::std::os::raw::c_uint;
729pub type rb_serial_t = ::std::os::raw::c_ulonglong;
730pub const rb_method_flag_t_NOEX_PUBLIC: rb_method_flag_t = 0;
731pub const rb_method_flag_t_NOEX_NOSUPER: rb_method_flag_t = 1;
732pub const rb_method_flag_t_NOEX_PRIVATE: rb_method_flag_t = 2;
733pub const rb_method_flag_t_NOEX_PROTECTED: rb_method_flag_t = 4;
734pub const rb_method_flag_t_NOEX_MASK: rb_method_flag_t = 6;
735pub const rb_method_flag_t_NOEX_BASIC: rb_method_flag_t = 8;
736pub const rb_method_flag_t_NOEX_UNDEF: rb_method_flag_t = 1;
737pub const rb_method_flag_t_NOEX_MODFUNC: rb_method_flag_t = 18;
738pub const rb_method_flag_t_NOEX_SUPER: rb_method_flag_t = 32;
739pub const rb_method_flag_t_NOEX_VCALL: rb_method_flag_t = 64;
740pub const rb_method_flag_t_NOEX_RESPONDS: rb_method_flag_t = 128;
741pub const rb_method_flag_t_NOEX_BIT_WIDTH: rb_method_flag_t = 8;
742pub const rb_method_flag_t_NOEX_SAFE_SHIFT_OFFSET: rb_method_flag_t = 8;
743pub type rb_method_flag_t = ::std::os::raw::c_uint;
744pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
745pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
746pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
747pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
748pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
749pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
750pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 6;
751pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 7;
752pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 8;
753pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 9;
754pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 10;
755pub type rb_method_type_t = ::std::os::raw::c_uint;
756#[repr(C)]
757#[derive(Debug, Copy, Clone)]
758pub struct rb_method_cfunc_struct {
759 pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
760 pub invoker: ::std::option::Option<
761 unsafe extern "C" fn(
762 func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
763 recv: VALUE,
764 argc: ::std::os::raw::c_int,
765 argv: *const VALUE,
766 ) -> VALUE,
767 >,
768 pub argc: ::std::os::raw::c_int,
769}
770pub type rb_method_cfunc_t = rb_method_cfunc_struct;
771#[repr(C)]
772#[derive(Debug, Copy, Clone)]
773pub struct rb_method_attr_struct {
774 pub id: ID,
775 pub location: VALUE,
776}
777pub type rb_method_attr_t = rb_method_attr_struct;
778pub type rb_iseq_t = rb_iseq_struct;
779#[repr(C)]
780#[derive(Copy, Clone)]
781pub struct rb_method_definition_struct {
782 pub type_: rb_method_type_t,
783 pub alias_count: ::std::os::raw::c_int,
784 pub original_id: ID,
785 pub body: rb_method_definition_struct__bindgen_ty_1,
786}
787#[repr(C)]
788#[derive(Copy, Clone)]
789pub union rb_method_definition_struct__bindgen_ty_1 {
790 pub iseq: *mut rb_iseq_t,
791 pub cfunc: rb_method_cfunc_t,
792 pub attr: rb_method_attr_t,
793 pub proc_: VALUE,
794 pub optimize_type: rb_method_definition_struct__bindgen_ty_1_method_optimized_type,
795 pub orig_me: *mut rb_method_entry_struct,
796}
797pub const rb_method_definition_struct__bindgen_ty_1_method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND : rb_method_definition_struct__bindgen_ty_1_method_optimized_type = 0 ;
798pub const rb_method_definition_struct__bindgen_ty_1_method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL : rb_method_definition_struct__bindgen_ty_1_method_optimized_type = 1 ;
799pub const rb_method_definition_struct__bindgen_ty_1_method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX : rb_method_definition_struct__bindgen_ty_1_method_optimized_type = 2 ;
800pub type rb_method_definition_struct__bindgen_ty_1_method_optimized_type = ::std::os::raw::c_uint;
801impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
802 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
803 write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
804 }
805}
806pub type rb_method_definition_t = rb_method_definition_struct;
807#[repr(C)]
808#[derive(Debug, Copy, Clone)]
809pub struct rb_method_entry_struct {
810 pub flag: rb_method_flag_t,
811 pub mark: ::std::os::raw::c_char,
812 pub def: *mut rb_method_definition_t,
813 pub called_id: ID,
814 pub klass: VALUE,
815}
816pub type rb_method_entry_t = rb_method_entry_struct;
817#[repr(C)]
818#[derive(Debug, Copy, Clone)]
819pub struct unlinked_method_entry_list_entry {
820 pub next: *mut unlinked_method_entry_list_entry,
821 pub me: *mut rb_method_entry_t,
822}
823pub type rb_atomic_t = ::std::os::raw::c_uint;
824#[repr(C)]
825#[derive(Debug, Copy, Clone)]
826pub struct list_node {
827 pub next: *mut list_node,
828 pub prev: *mut list_node,
829}
830#[repr(C)]
831#[derive(Debug, Copy, Clone)]
832pub struct list_head {
833 pub n: list_node,
834}
835pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
836pub type rb_nativethread_id_t = pthread_t;
837pub type rb_nativethread_lock_t = pthread_mutex_t;
838#[repr(C)]
839#[derive(Copy, Clone)]
840pub struct rb_thread_cond_struct {
841 pub cond: pthread_cond_t,
842 pub clockid: clockid_t,
843}
844impl ::std::fmt::Debug for rb_thread_cond_struct {
845 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
846 write!(
847 f,
848 "rb_thread_cond_struct {{ cond: {:?}, clockid: {:?} }}",
849 self.cond, self.clockid
850 )
851 }
852}
853pub type rb_nativethread_cond_t = rb_thread_cond_struct;
854#[repr(C)]
855#[derive(Copy, Clone)]
856pub struct native_thread_data_struct {
857 pub signal_thread_list: *mut ::std::os::raw::c_void,
858 pub sleep_cond: rb_nativethread_cond_t,
859}
860impl ::std::fmt::Debug for native_thread_data_struct {
861 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
862 write!(
863 f,
864 "native_thread_data_struct {{ signal_thread_list: {:?}, sleep_cond: {:?} }}",
865 self.signal_thread_list, self.sleep_cond
866 )
867 }
868}
869pub type native_thread_data_t = native_thread_data_struct;
870#[repr(C)]
871#[derive(Copy, Clone)]
872pub struct rb_global_vm_lock_struct {
873 pub acquired: ::std::os::raw::c_ulong,
874 pub lock: rb_nativethread_lock_t,
875 pub waiting: ::std::os::raw::c_ulong,
876 pub cond: rb_nativethread_cond_t,
877 pub switch_cond: rb_nativethread_cond_t,
878 pub switch_wait_cond: rb_nativethread_cond_t,
879 pub need_yield: ::std::os::raw::c_int,
880 pub wait_yield: ::std::os::raw::c_int,
881}
882impl ::std::fmt::Debug for rb_global_vm_lock_struct {
883 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
884 write ! (f , "rb_global_vm_lock_struct {{ acquired: {:?}, lock: {:?}, waiting: {:?}, cond: {:?}, switch_cond: {:?}, switch_wait_cond: {:?}, need_yield: {:?}, wait_yield: {:?} }}" , self . acquired , self . lock , self . waiting , self . cond , self . switch_cond , self . switch_wait_cond , self . need_yield , self . wait_yield)
885 }
886}
887pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
888#[repr(C)]
889#[derive(Debug, Copy, Clone)]
890pub struct __jmp_buf_tag {
891 pub __jmpbuf: __jmp_buf,
892 pub __mask_was_saved: ::std::os::raw::c_int,
893 pub __saved_mask: __sigset_t,
894}
895pub type jmp_buf = [__jmp_buf_tag; 1usize];
896pub type rb_num_t = usize;
897#[repr(C)]
898#[derive(Debug, Copy, Clone)]
899pub struct iseq_compile_data_ensure_node_stack {
900 _unused: [u8; 0],
901}
902pub type rb_compile_option_t = rb_compile_option_struct;
903#[repr(C)]
904#[derive(Copy, Clone)]
905pub struct iseq_inline_cache_entry {
906 pub ic_serial: rb_serial_t,
907 pub ic_value: iseq_inline_cache_entry__bindgen_ty_1,
908}
909#[repr(C)]
910#[derive(Copy, Clone)]
911pub union iseq_inline_cache_entry__bindgen_ty_1 {
912 pub index: usize,
913 pub value: VALUE,
914}
915impl ::std::fmt::Debug for iseq_inline_cache_entry__bindgen_ty_1 {
916 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
917 write!(f, "iseq_inline_cache_entry__bindgen_ty_1 {{ union }}")
918 }
919}
920impl ::std::fmt::Debug for iseq_inline_cache_entry {
921 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
922 write!(
923 f,
924 "iseq_inline_cache_entry {{ ic_serial: {:?}, ic_value: {:?} }}",
925 self.ic_serial, self.ic_value
926 )
927 }
928}
929#[repr(C)]
930#[derive(Copy, Clone)]
931pub union iseq_inline_storage_entry {
932 pub once: iseq_inline_storage_entry__bindgen_ty_1,
933 pub cache: iseq_inline_cache_entry,
934}
935#[repr(C)]
936#[derive(Debug, Copy, Clone)]
937pub struct iseq_inline_storage_entry__bindgen_ty_1 {
938 pub running_thread: *mut rb_thread_struct,
939 pub value: VALUE,
940}
941impl ::std::fmt::Debug for iseq_inline_storage_entry {
942 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
943 write!(f, "iseq_inline_storage_entry {{ union }}")
944 }
945}
946#[repr(C)]
947#[derive(Debug, Copy, Clone)]
948pub struct rb_call_info_kw_arg_struct {
949 pub keyword_len: ::std::os::raw::c_int,
950 pub keywords: [VALUE; 1usize],
951}
952pub type rb_call_info_kw_arg_t = rb_call_info_kw_arg_struct;
953#[repr(C)]
954#[derive(Copy, Clone)]
955pub struct rb_call_info_struct {
956 pub mid: ID,
957 pub flag: ::std::os::raw::c_uint,
958 pub orig_argc: ::std::os::raw::c_int,
959 pub blockiseq: *mut rb_iseq_t,
960 pub kw_arg: *mut rb_call_info_kw_arg_t,
961 pub method_state: rb_serial_t,
962 pub class_serial: rb_serial_t,
963 pub klass: VALUE,
964 pub me: *const rb_method_entry_t,
965 pub defined_class: VALUE,
966 pub blockptr: *mut rb_block_struct,
967 pub recv: VALUE,
968 pub argc: ::std::os::raw::c_int,
969 pub aux: rb_call_info_struct__bindgen_ty_1,
970 pub call: ::std::option::Option<
971 unsafe extern "C" fn(
972 th: *mut rb_thread_struct,
973 cfp: *mut rb_control_frame_struct,
974 ci: *mut rb_call_info_struct,
975 ) -> VALUE,
976 >,
977}
978#[repr(C)]
979#[derive(Copy, Clone)]
980pub union rb_call_info_struct__bindgen_ty_1 {
981 pub opt_pc: ::std::os::raw::c_int,
982 pub index: ::std::os::raw::c_int,
983 pub missing_reason: ::std::os::raw::c_int,
984 pub inc_sp: ::std::os::raw::c_int,
985}
986impl ::std::fmt::Debug for rb_call_info_struct__bindgen_ty_1 {
987 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
988 write!(f, "rb_call_info_struct__bindgen_ty_1 {{ union }}")
989 }
990}
991impl ::std::fmt::Debug for rb_call_info_struct {
992 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
993 write ! (f , "rb_call_info_struct {{ mid: {:?}, flag: {:?}, orig_argc: {:?}, blockiseq: {:?}, kw_arg: {:?}, method_state: {:?}, class_serial: {:?}, klass: {:?}, me: {:?}, defined_class: {:?}, blockptr: {:?}, recv: {:?}, argc: {:?}, aux: {:?}, call: {:?} }}" , self . mid , self . flag , self . orig_argc , self . blockiseq , self . kw_arg , self . method_state , self . class_serial , self . klass , self . me , self . defined_class , self . blockptr , self . recv , self . argc , self . aux , self . call)
994 }
995}
996pub type rb_call_info_t = rb_call_info_struct;
997#[repr(C)]
998#[derive(Debug, Copy, Clone)]
999pub struct rb_iseq_location_struct {
1000 pub path: VALUE,
1001 pub absolute_path: VALUE,
1002 pub base_label: VALUE,
1003 pub label: VALUE,
1004 pub first_lineno: VALUE,
1005}
1006pub type rb_iseq_location_t = rb_iseq_location_struct;
1007#[repr(C)]
1008#[derive(Debug, Copy, Clone)]
1009pub struct rb_iseq_struct {
1010 pub type_: rb_iseq_struct_iseq_type,
1011 pub stack_max: ::std::os::raw::c_int,
1012 pub location: rb_iseq_location_t,
1013 pub iseq_encoded: *mut VALUE,
1014 pub iseq_size: ::std::os::raw::c_uint,
1015 pub line_info_size: ::std::os::raw::c_uint,
1016 pub mark_ary: VALUE,
1017 pub coverage: VALUE,
1018 pub line_info_table: *mut iseq_line_info_entry,
1019 pub local_table: *mut ID,
1020 pub local_table_size: ::std::os::raw::c_int,
1021 pub local_size: ::std::os::raw::c_int,
1022 pub is_entries: *mut iseq_inline_storage_entry,
1023 pub is_size: ::std::os::raw::c_int,
1024 pub callinfo_size: ::std::os::raw::c_int,
1025 pub callinfo_entries: *mut rb_call_info_t,
1026 pub param: rb_iseq_struct__bindgen_ty_1,
1027 pub catch_table: *mut iseq_catch_table,
1028 pub parent_iseq: *mut rb_iseq_struct,
1029 pub local_iseq: *mut rb_iseq_struct,
1030 pub self_: VALUE,
1031 pub orig: VALUE,
1032 pub cref_stack: *mut NODE,
1033 pub klass: VALUE,
1034 pub defined_method_id: ID,
1035 pub flip_cnt: rb_num_t,
1036 pub compile_data: *mut iseq_compile_data,
1037 pub iseq: *mut VALUE,
1038}
1039pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_TOP: rb_iseq_struct_iseq_type = 0;
1040pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_struct_iseq_type = 1;
1041pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_struct_iseq_type = 2;
1042pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_struct_iseq_type = 3;
1043pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_struct_iseq_type = 4;
1044pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_struct_iseq_type = 5;
1045pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_struct_iseq_type = 6;
1046pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_struct_iseq_type = 7;
1047pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_DEFINED_GUARD: rb_iseq_struct_iseq_type = 8;
1048pub type rb_iseq_struct_iseq_type = ::std::os::raw::c_uint;
1049#[repr(C)]
1050#[derive(Debug, Copy, Clone)]
1051pub struct rb_iseq_struct__bindgen_ty_1 {
1052 pub flags: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
1053 pub size: ::std::os::raw::c_int,
1054 pub lead_num: ::std::os::raw::c_int,
1055 pub opt_num: ::std::os::raw::c_int,
1056 pub rest_start: ::std::os::raw::c_int,
1057 pub post_start: ::std::os::raw::c_int,
1058 pub post_num: ::std::os::raw::c_int,
1059 pub block_start: ::std::os::raw::c_int,
1060 pub opt_table: *mut VALUE,
1061 pub keyword: *mut rb_iseq_struct__bindgen_ty_1_rb_iseq_param_keyword,
1062}
1063#[repr(C)]
1064#[repr(align(4))]
1065#[derive(Debug, Copy, Clone)]
1066pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
1067 pub _bitfield_align_1: [u8; 0],
1068 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1069 pub __bindgen_padding_0: [u8; 3usize],
1070}
1071impl rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
1072 #[inline]
1073 pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1074 unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 1u8) as u32) }
1075 }
1076 #[inline]
1077 pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1078 unsafe {
1079 let val: u32 = ::std::mem::transmute(val);
1080 self._bitfield_1.set(0usize, 1u8, val as u64)
1081 }
1082 }
1083 #[inline]
1084 pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1085 unsafe {
1086 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1087 ::std::ptr::addr_of!((*this)._bitfield_1),
1088 0usize,
1089 1u8,
1090 ) as u32)
1091 }
1092 }
1093 #[inline]
1094 pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1095 unsafe {
1096 let val: u32 = ::std::mem::transmute(val);
1097 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1098 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1099 0usize,
1100 1u8,
1101 val as u64,
1102 )
1103 }
1104 }
1105 #[inline]
1106 pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1107 unsafe { ::std::mem::transmute(self._bitfield_1.get(1usize, 1u8) as u32) }
1108 }
1109 #[inline]
1110 pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1111 unsafe {
1112 let val: u32 = ::std::mem::transmute(val);
1113 self._bitfield_1.set(1usize, 1u8, val as u64)
1114 }
1115 }
1116 #[inline]
1117 pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1118 unsafe {
1119 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1120 ::std::ptr::addr_of!((*this)._bitfield_1),
1121 1usize,
1122 1u8,
1123 ) as u32)
1124 }
1125 }
1126 #[inline]
1127 pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1128 unsafe {
1129 let val: u32 = ::std::mem::transmute(val);
1130 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1131 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1132 1usize,
1133 1u8,
1134 val as u64,
1135 )
1136 }
1137 }
1138 #[inline]
1139 pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1140 unsafe { ::std::mem::transmute(self._bitfield_1.get(2usize, 1u8) as u32) }
1141 }
1142 #[inline]
1143 pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1144 unsafe {
1145 let val: u32 = ::std::mem::transmute(val);
1146 self._bitfield_1.set(2usize, 1u8, val as u64)
1147 }
1148 }
1149 #[inline]
1150 pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1151 unsafe {
1152 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1153 ::std::ptr::addr_of!((*this)._bitfield_1),
1154 2usize,
1155 1u8,
1156 ) as u32)
1157 }
1158 }
1159 #[inline]
1160 pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1161 unsafe {
1162 let val: u32 = ::std::mem::transmute(val);
1163 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1164 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1165 2usize,
1166 1u8,
1167 val as u64,
1168 )
1169 }
1170 }
1171 #[inline]
1172 pub fn has_post(&self) -> ::std::os::raw::c_uint {
1173 unsafe { ::std::mem::transmute(self._bitfield_1.get(3usize, 1u8) as u32) }
1174 }
1175 #[inline]
1176 pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1177 unsafe {
1178 let val: u32 = ::std::mem::transmute(val);
1179 self._bitfield_1.set(3usize, 1u8, val as u64)
1180 }
1181 }
1182 #[inline]
1183 pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1184 unsafe {
1185 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1186 ::std::ptr::addr_of!((*this)._bitfield_1),
1187 3usize,
1188 1u8,
1189 ) as u32)
1190 }
1191 }
1192 #[inline]
1193 pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1194 unsafe {
1195 let val: u32 = ::std::mem::transmute(val);
1196 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1197 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1198 3usize,
1199 1u8,
1200 val as u64,
1201 )
1202 }
1203 }
1204 #[inline]
1205 pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1206 unsafe { ::std::mem::transmute(self._bitfield_1.get(4usize, 1u8) as u32) }
1207 }
1208 #[inline]
1209 pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1210 unsafe {
1211 let val: u32 = ::std::mem::transmute(val);
1212 self._bitfield_1.set(4usize, 1u8, val as u64)
1213 }
1214 }
1215 #[inline]
1216 pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1217 unsafe {
1218 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1219 ::std::ptr::addr_of!((*this)._bitfield_1),
1220 4usize,
1221 1u8,
1222 ) as u32)
1223 }
1224 }
1225 #[inline]
1226 pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1227 unsafe {
1228 let val: u32 = ::std::mem::transmute(val);
1229 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1230 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1231 4usize,
1232 1u8,
1233 val as u64,
1234 )
1235 }
1236 }
1237 #[inline]
1238 pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1239 unsafe { ::std::mem::transmute(self._bitfield_1.get(5usize, 1u8) as u32) }
1240 }
1241 #[inline]
1242 pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1243 unsafe {
1244 let val: u32 = ::std::mem::transmute(val);
1245 self._bitfield_1.set(5usize, 1u8, val as u64)
1246 }
1247 }
1248 #[inline]
1249 pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1250 unsafe {
1251 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1252 ::std::ptr::addr_of!((*this)._bitfield_1),
1253 5usize,
1254 1u8,
1255 ) as u32)
1256 }
1257 }
1258 #[inline]
1259 pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1260 unsafe {
1261 let val: u32 = ::std::mem::transmute(val);
1262 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1263 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1264 5usize,
1265 1u8,
1266 val as u64,
1267 )
1268 }
1269 }
1270 #[inline]
1271 pub fn has_block(&self) -> ::std::os::raw::c_uint {
1272 unsafe { ::std::mem::transmute(self._bitfield_1.get(6usize, 1u8) as u32) }
1273 }
1274 #[inline]
1275 pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1276 unsafe {
1277 let val: u32 = ::std::mem::transmute(val);
1278 self._bitfield_1.set(6usize, 1u8, val as u64)
1279 }
1280 }
1281 #[inline]
1282 pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1283 unsafe {
1284 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1285 ::std::ptr::addr_of!((*this)._bitfield_1),
1286 6usize,
1287 1u8,
1288 ) as u32)
1289 }
1290 }
1291 #[inline]
1292 pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1293 unsafe {
1294 let val: u32 = ::std::mem::transmute(val);
1295 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1296 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1297 6usize,
1298 1u8,
1299 val as u64,
1300 )
1301 }
1302 }
1303 #[inline]
1304 pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1305 unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
1306 }
1307 #[inline]
1308 pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1309 unsafe {
1310 let val: u32 = ::std::mem::transmute(val);
1311 self._bitfield_1.set(7usize, 1u8, val as u64)
1312 }
1313 }
1314 #[inline]
1315 pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1316 unsafe {
1317 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get(
1318 ::std::ptr::addr_of!((*this)._bitfield_1),
1319 7usize,
1320 1u8,
1321 ) as u32)
1322 }
1323 }
1324 #[inline]
1325 pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1326 unsafe {
1327 let val: u32 = ::std::mem::transmute(val);
1328 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set(
1329 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1330 7usize,
1331 1u8,
1332 val as u64,
1333 )
1334 }
1335 }
1336 #[inline]
1337 pub fn new_bitfield_1(
1338 has_lead: ::std::os::raw::c_uint,
1339 has_opt: ::std::os::raw::c_uint,
1340 has_rest: ::std::os::raw::c_uint,
1341 has_post: ::std::os::raw::c_uint,
1342 has_kw: ::std::os::raw::c_uint,
1343 has_kwrest: ::std::os::raw::c_uint,
1344 has_block: ::std::os::raw::c_uint,
1345 ambiguous_param0: ::std::os::raw::c_uint,
1346 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1347 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1348 __bindgen_bitfield_unit.set(0usize, 1u8, {
1349 let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1350 has_lead as u64
1351 });
1352 __bindgen_bitfield_unit.set(1usize, 1u8, {
1353 let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1354 has_opt as u64
1355 });
1356 __bindgen_bitfield_unit.set(2usize, 1u8, {
1357 let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1358 has_rest as u64
1359 });
1360 __bindgen_bitfield_unit.set(3usize, 1u8, {
1361 let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1362 has_post as u64
1363 });
1364 __bindgen_bitfield_unit.set(4usize, 1u8, {
1365 let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1366 has_kw as u64
1367 });
1368 __bindgen_bitfield_unit.set(5usize, 1u8, {
1369 let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1370 has_kwrest as u64
1371 });
1372 __bindgen_bitfield_unit.set(6usize, 1u8, {
1373 let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1374 has_block as u64
1375 });
1376 __bindgen_bitfield_unit.set(7usize, 1u8, {
1377 let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
1378 ambiguous_param0 as u64
1379 });
1380 __bindgen_bitfield_unit
1381 }
1382}
1383#[repr(C)]
1384#[derive(Debug, Copy, Clone)]
1385pub struct rb_iseq_struct__bindgen_ty_1_rb_iseq_param_keyword {
1386 pub num: ::std::os::raw::c_int,
1387 pub required_num: ::std::os::raw::c_int,
1388 pub bits_start: ::std::os::raw::c_int,
1389 pub rest_start: ::std::os::raw::c_int,
1390 pub table: *mut ID,
1391 pub default_values: *mut VALUE,
1392}
1393#[repr(C)]
1394#[derive(Debug, Copy, Clone)]
1395pub struct rb_objspace {
1396 _unused: [u8; 0],
1397}
1398#[repr(C)]
1399#[derive(Debug, Copy, Clone)]
1400pub struct rb_hook_list_struct {
1401 pub hooks: *mut rb_event_hook_struct,
1402 pub events: rb_event_flag_t,
1403 pub need_clean: ::std::os::raw::c_int,
1404}
1405pub type rb_hook_list_t = rb_hook_list_struct;
1406#[repr(C)]
1407#[derive(Copy, Clone)]
1408pub struct rb_vm_struct {
1409 pub self_: VALUE,
1410 pub gvl: rb_global_vm_lock_t,
1411 pub thread_destruct_lock: rb_nativethread_lock_t,
1412 pub main_thread: *mut rb_thread_struct,
1413 pub running_thread: *mut rb_thread_struct,
1414 pub living_threads: list_head,
1415 pub living_thread_num: usize,
1416 pub thgroup_default: VALUE,
1417 pub running: ::std::os::raw::c_int,
1418 pub thread_abort_on_exception: ::std::os::raw::c_int,
1419 pub trace_running: ::std::os::raw::c_int,
1420 pub sleeper: ::std::os::raw::c_int,
1421 pub mark_object_ary: VALUE,
1422 pub special_exceptions: [VALUE; 4usize],
1423 pub top_self: VALUE,
1424 pub load_path: VALUE,
1425 pub load_path_snapshot: VALUE,
1426 pub load_path_check_cache: VALUE,
1427 pub expanded_load_path: VALUE,
1428 pub loaded_features: VALUE,
1429 pub loaded_features_snapshot: VALUE,
1430 pub loaded_features_index: *mut st_table,
1431 pub loading_table: *mut st_table,
1432 pub trap_list: [rb_vm_struct__bindgen_ty_1; 65usize],
1433 pub event_hooks: rb_hook_list_t,
1434 pub ensure_rollback_table: *mut st_table,
1435 pub postponed_job_buffer: *mut rb_postponed_job_struct,
1436 pub postponed_job_index: ::std::os::raw::c_int,
1437 pub src_encoding_index: ::std::os::raw::c_int,
1438 pub verbose: VALUE,
1439 pub debug: VALUE,
1440 pub orig_progname: VALUE,
1441 pub progname: VALUE,
1442 pub coverages: VALUE,
1443 pub unlinked_method_entry_list: *mut unlinked_method_entry_list_entry,
1444 pub defined_module_hash: VALUE,
1445 pub objspace: *mut rb_objspace,
1446 pub at_exit: RArray,
1447 pub defined_strings: *mut VALUE,
1448 pub frozen_strings: *mut st_table,
1449 pub default_params: rb_vm_struct__bindgen_ty_2,
1450 pub redefined_flag: [::std::os::raw::c_short; 22usize],
1451}
1452#[repr(C)]
1453#[derive(Debug, Copy, Clone)]
1454pub struct rb_vm_struct__bindgen_ty_1 {
1455 pub cmd: VALUE,
1456 pub safe: ::std::os::raw::c_int,
1457}
1458#[repr(C)]
1459#[derive(Debug, Copy, Clone)]
1460pub struct rb_vm_struct__bindgen_ty_2 {
1461 pub thread_vm_stack_size: usize,
1462 pub thread_machine_stack_size: usize,
1463 pub fiber_vm_stack_size: usize,
1464 pub fiber_machine_stack_size: usize,
1465}
1466impl ::std::fmt::Debug for rb_vm_struct {
1467 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1468 write ! (f , "rb_vm_struct {{ self: {:?}, gvl: {:?}, thread_destruct_lock: {:?}, main_thread: {:?}, running_thread: {:?}, living_threads: {:?}, thgroup_default: {:?}, running: {:?}, thread_abort_on_exception: {:?}, trace_running: {:?}, sleeper: {:?}, 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_index: {:?}, loading_table: {:?}, trap_list: {:?}, event_hooks: {:?}, ensure_rollback_table: {:?}, postponed_job_buffer: {:?}, postponed_job_index: {:?}, src_encoding_index: {:?}, verbose: {:?}, debug: {:?}, orig_progname: {:?}, progname: {:?}, coverages: {:?}, unlinked_method_entry_list: {:?}, defined_module_hash: {:?}, objspace: {:?}, at_exit: {:?}, defined_strings: {:?}, frozen_strings: {:?}, default_params: {:?}, redefined_flag: {:?} }}" , self . self_ , self . gvl , self . thread_destruct_lock , self . main_thread , self . running_thread , self . living_threads , self . thgroup_default , self . running , self . thread_abort_on_exception , self . trace_running , self . sleeper , 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_index , self . loading_table , self . trap_list , self . event_hooks , self . ensure_rollback_table , self . postponed_job_buffer , self . postponed_job_index , self . src_encoding_index , self . verbose , self . debug , self . orig_progname , self . progname , self . coverages , self . unlinked_method_entry_list , self . defined_module_hash , self . objspace , self . at_exit , self . defined_strings , self . frozen_strings , self . default_params , self . redefined_flag)
1469 }
1470}
1471pub type rb_vm_t = rb_vm_struct;
1472#[repr(C)]
1473#[derive(Debug, Copy, Clone)]
1474pub struct rb_control_frame_struct {
1475 pub pc: *mut VALUE,
1476 pub sp: *mut VALUE,
1477 pub iseq: *mut rb_iseq_t,
1478 pub flag: VALUE,
1479 pub self_: VALUE,
1480 pub klass: VALUE,
1481 pub ep: *mut VALUE,
1482 pub block_iseq: *mut rb_iseq_t,
1483 pub proc_: VALUE,
1484 pub me: *const rb_method_entry_t,
1485}
1486pub type rb_control_frame_t = rb_control_frame_struct;
1487#[repr(C)]
1488#[derive(Debug, Copy, Clone)]
1489pub struct rb_block_struct {
1490 pub self_: VALUE,
1491 pub klass: VALUE,
1492 pub ep: *mut VALUE,
1493 pub iseq: *mut rb_iseq_t,
1494 pub proc_: VALUE,
1495}
1496pub type rb_block_t = rb_block_struct;
1497pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
1498pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
1499pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
1500pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
1501pub type rb_thread_status = ::std::os::raw::c_uint;
1502pub type rb_jmpbuf_t = jmp_buf;
1503#[repr(C)]
1504#[derive(Debug, Copy, Clone)]
1505pub struct rb_vm_tag {
1506 pub tag: VALUE,
1507 pub retval: VALUE,
1508 pub buf: rb_jmpbuf_t,
1509 pub prev: *mut rb_vm_tag,
1510}
1511#[repr(C)]
1512#[derive(Debug, Copy, Clone)]
1513pub struct rb_vm_protect_tag {
1514 pub prev: *mut rb_vm_protect_tag,
1515}
1516#[repr(C)]
1517#[derive(Debug, Copy, Clone)]
1518pub struct rb_unblock_callback {
1519 pub func: rb_unblock_function_t,
1520 pub arg: *mut ::std::os::raw::c_void,
1521}
1522#[repr(C)]
1523#[derive(Debug, Copy, Clone)]
1524pub struct rb_mutex_struct {
1525 _unused: [u8; 0],
1526}
1527#[repr(C)]
1528#[derive(Debug, Copy, Clone)]
1529pub struct rb_thread_list_struct {
1530 pub next: *mut rb_thread_list_struct,
1531 pub th: *mut rb_thread_struct,
1532}
1533pub type rb_thread_list_t = rb_thread_list_struct;
1534#[repr(C)]
1535#[derive(Debug, Copy, Clone)]
1536pub struct rb_ensure_entry {
1537 pub marker: VALUE,
1538 pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1539 pub data2: VALUE,
1540}
1541#[repr(C)]
1542#[derive(Debug, Copy, Clone)]
1543pub struct rb_ensure_list {
1544 pub next: *mut rb_ensure_list,
1545 pub entry: rb_ensure_entry,
1546}
1547pub type rb_ensure_list_t = rb_ensure_list;
1548#[repr(C)]
1549#[derive(Debug, Copy, Clone)]
1550pub struct rb_fiber_struct {
1551 _unused: [u8; 0],
1552}
1553pub type rb_fiber_t = rb_fiber_struct;
1554#[repr(C)]
1555#[derive(Copy, Clone)]
1556pub struct rb_thread_struct {
1557 pub vmlt_node: list_node,
1558 pub self_: VALUE,
1559 pub vm: *mut rb_vm_t,
1560 pub stack: *mut VALUE,
1561 pub stack_size: usize,
1562 pub cfp: *mut rb_control_frame_t,
1563 pub safe_level: ::std::os::raw::c_int,
1564 pub raised_flag: ::std::os::raw::c_int,
1565 pub last_status: VALUE,
1566 pub state: ::std::os::raw::c_int,
1567 pub waiting_fd: ::std::os::raw::c_int,
1568 pub passed_block: *const rb_block_t,
1569 pub passed_bmethod_me: *const rb_method_entry_t,
1570 pub passed_ci: *mut rb_call_info_t,
1571 pub top_self: VALUE,
1572 pub top_wrapper: VALUE,
1573 pub base_block: *mut rb_block_t,
1574 pub root_lep: *mut VALUE,
1575 pub root_svar: VALUE,
1576 pub thread_id: rb_nativethread_id_t,
1577 pub status: rb_thread_status,
1578 pub to_kill: ::std::os::raw::c_int,
1579 pub priority: ::std::os::raw::c_int,
1580 pub native_thread_data: native_thread_data_t,
1581 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
1582 pub thgroup: VALUE,
1583 pub value: VALUE,
1584 pub errinfo: VALUE,
1585 pub pending_interrupt_queue: VALUE,
1586 pub pending_interrupt_mask_stack: VALUE,
1587 pub pending_interrupt_queue_checked: ::std::os::raw::c_int,
1588 pub interrupt_flag: rb_atomic_t,
1589 pub interrupt_mask: ::std::os::raw::c_ulong,
1590 pub interrupt_lock: rb_nativethread_lock_t,
1591 pub interrupt_cond: rb_nativethread_cond_t,
1592 pub unblock: rb_unblock_callback,
1593 pub locking_mutex: VALUE,
1594 pub keeping_mutexes: *mut rb_mutex_struct,
1595 pub tag: *mut rb_vm_tag,
1596 pub protect_tag: *mut rb_vm_protect_tag,
1597 pub parse_in_eval: ::std::os::raw::c_int,
1598 pub mild_compile_error: ::std::os::raw::c_int,
1599 pub local_storage: *mut st_table,
1600 pub local_storage_recursive_hash: VALUE,
1601 pub local_storage_recursive_hash_for_trace: VALUE,
1602 pub join_list: *mut rb_thread_list_t,
1603 pub first_proc: VALUE,
1604 pub first_args: VALUE,
1605 pub first_func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1606 pub machine: rb_thread_struct__bindgen_ty_1,
1607 pub stat_insn_usage: VALUE,
1608 pub event_hooks: rb_hook_list_t,
1609 pub trace_arg: *mut rb_trace_arg_struct,
1610 pub fiber: *mut rb_fiber_t,
1611 pub root_fiber: *mut rb_fiber_t,
1612 pub root_jmpbuf: rb_jmpbuf_t,
1613 pub ensure_list: *mut rb_ensure_list_t,
1614 pub method_missing_reason: ::std::os::raw::c_int,
1615 pub abort_on_exception: ::std::os::raw::c_int,
1616 pub altstack: *mut ::std::os::raw::c_void,
1617 pub running_time_us: ::std::os::raw::c_ulong,
1618}
1619#[repr(C)]
1620#[derive(Debug, Copy, Clone)]
1621pub struct rb_thread_struct__bindgen_ty_1 {
1622 pub stack_start: *mut VALUE,
1623 pub stack_end: *mut VALUE,
1624 pub stack_maxsize: usize,
1625 pub regs: jmp_buf,
1626}
1627impl ::std::fmt::Debug for rb_thread_struct {
1628 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1629 write ! (f , "rb_thread_struct {{ vmlt_node: {:?}, self: {:?}, vm: {:?}, stack: {:?}, cfp: {:?}, safe_level: {:?}, raised_flag: {:?}, last_status: {:?}, state: {:?}, waiting_fd: {:?}, passed_block: {:?}, passed_bmethod_me: {:?}, passed_ci: {:?}, top_self: {:?}, top_wrapper: {:?}, base_block: {:?}, root_lep: {:?}, root_svar: {:?}, thread_id: {:?}, status: {:?}, to_kill: {:?}, priority: {:?}, native_thread_data: {:?}, blocking_region_buffer: {:?}, thgroup: {:?}, value: {:?}, errinfo: {:?}, pending_interrupt_queue: {:?}, pending_interrupt_mask_stack: {:?}, pending_interrupt_queue_checked: {:?}, interrupt_flag: {:?}, interrupt_mask: {:?}, interrupt_lock: {:?}, interrupt_cond: {:?}, unblock: {:?}, locking_mutex: {:?}, keeping_mutexes: {:?}, tag: {:?}, protect_tag: {:?}, parse_in_eval: {:?}, mild_compile_error: {:?}, local_storage: {:?}, local_storage_recursive_hash: {:?}, local_storage_recursive_hash_for_trace: {:?}, join_list: {:?}, first_proc: {:?}, first_args: {:?}, first_func: {:?}, machine: {:?}, stat_insn_usage: {:?}, event_hooks: {:?}, trace_arg: {:?}, fiber: {:?}, root_fiber: {:?}, root_jmpbuf: {:?}, ensure_list: {:?}, method_missing_reason: {:?}, abort_on_exception: {:?}, altstack: {:?}, running_time_us: {:?} }}" , self . vmlt_node , self . self_ , self . vm , self . stack , self . cfp , self . safe_level , self . raised_flag , self . last_status , self . state , self . waiting_fd , self . passed_block , self . passed_bmethod_me , self . passed_ci , self . top_self , self . top_wrapper , self . base_block , self . root_lep , self . root_svar , self . thread_id , self . status , self . to_kill , self . priority , self . native_thread_data , self . blocking_region_buffer , self . thgroup , self . value , self . errinfo , self . pending_interrupt_queue , self . pending_interrupt_mask_stack , self . pending_interrupt_queue_checked , self . interrupt_flag , self . interrupt_mask , self . interrupt_lock , self . interrupt_cond , self . unblock , self . locking_mutex , self . keeping_mutexes , self . tag , self . protect_tag , self . parse_in_eval , self . mild_compile_error , self . local_storage , self . local_storage_recursive_hash , self . local_storage_recursive_hash_for_trace , self . join_list , self . first_proc , self . first_args , self . first_func , self . machine , self . stat_insn_usage , self . event_hooks , self . trace_arg , self . fiber , self . root_fiber , self . root_jmpbuf , self . ensure_list , self . method_missing_reason , self . abort_on_exception , self . altstack , self . running_time_us)
1630 }
1631}
1632pub type rb_thread_t = rb_thread_struct;
1633#[repr(C)]
1634#[derive(Debug, Copy, Clone)]
1635pub struct rb_trace_arg_struct {
1636 pub event: rb_event_flag_t,
1637 pub th: *mut rb_thread_t,
1638 pub cfp: *mut rb_control_frame_t,
1639 pub self_: VALUE,
1640 pub id: ID,
1641 pub klass: VALUE,
1642 pub data: VALUE,
1643 pub klass_solved: ::std::os::raw::c_int,
1644 pub lineno: ::std::os::raw::c_int,
1645 pub path: VALUE,
1646}
1647#[repr(C)]
1648#[derive(Debug, Copy, Clone)]
1649pub struct rb_compile_option_struct {
1650 pub inline_const_cache: ::std::os::raw::c_int,
1651 pub peephole_optimization: ::std::os::raw::c_int,
1652 pub tailcall_optimization: ::std::os::raw::c_int,
1653 pub specialized_instruction: ::std::os::raw::c_int,
1654 pub operands_unification: ::std::os::raw::c_int,
1655 pub instructions_unification: ::std::os::raw::c_int,
1656 pub stack_caching: ::std::os::raw::c_int,
1657 pub trace_instruction: ::std::os::raw::c_int,
1658 pub debug_level: ::std::os::raw::c_int,
1659}
1660#[repr(C)]
1661#[derive(Debug, Copy, Clone)]
1662pub struct iseq_line_info_entry {
1663 pub position: ::std::os::raw::c_uint,
1664 pub line_no: ::std::os::raw::c_uint,
1665}
1666#[repr(C)]
1667#[derive(Debug, Copy, Clone)]
1668pub struct iseq_catch_table_entry {
1669 pub type_: iseq_catch_table_entry_catch_type,
1670 pub iseq: VALUE,
1671 pub start: ::std::os::raw::c_uint,
1672 pub end: ::std::os::raw::c_uint,
1673 pub cont: ::std::os::raw::c_uint,
1674 pub sp: ::std::os::raw::c_uint,
1675}
1676pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
1677 3;
1678pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
1679 5;
1680pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
1681pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
1682pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
1683pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
1684pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
1685#[repr(C)]
1686#[derive(Copy, Clone)]
1687pub struct iseq_catch_table {
1688 pub size: ::std::os::raw::c_int,
1689 pub entries: [iseq_catch_table_entry; 1usize],
1690}
1691#[repr(C)]
1692#[derive(Debug, Copy, Clone)]
1693pub struct iseq_compile_data_storage {
1694 pub next: *mut iseq_compile_data_storage,
1695 pub pos: ::std::os::raw::c_uint,
1696 pub size: ::std::os::raw::c_uint,
1697 pub buff: [::std::os::raw::c_char; 1usize],
1698}
1699#[repr(C)]
1700#[derive(Debug, Copy, Clone)]
1701pub struct iseq_compile_data {
1702 pub err_info: VALUE,
1703 pub mark_ary: VALUE,
1704 pub catch_table_ary: VALUE,
1705 pub start_label: *mut iseq_label_data,
1706 pub end_label: *mut iseq_label_data,
1707 pub redo_label: *mut iseq_label_data,
1708 pub current_block: VALUE,
1709 pub ensure_node: VALUE,
1710 pub for_iseq: VALUE,
1711 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
1712 pub loopval_popped: ::std::os::raw::c_int,
1713 pub cached_const: ::std::os::raw::c_int,
1714 pub storage_head: *mut iseq_compile_data_storage,
1715 pub storage_current: *mut iseq_compile_data_storage,
1716 pub last_line: ::std::os::raw::c_int,
1717 pub last_coverable_line: ::std::os::raw::c_int,
1718 pub label_no: ::std::os::raw::c_int,
1719 pub node_level: ::std::os::raw::c_int,
1720 pub option: *const rb_compile_option_t,
1721}
1722#[repr(C)]
1723#[derive(Debug, Copy, Clone)]
1724pub struct st_table_entry {
1725 pub _address: u8,
1726}
1727#[repr(C)]
1728#[derive(Debug, Copy, Clone)]
1729pub struct st_packed_entry {
1730 pub _address: u8,
1731}
1732#[repr(C)]
1733#[derive(Debug, Copy, Clone)]
1734pub struct rb_event_hook_struct {
1735 pub _address: u8,
1736}
1737#[repr(C)]
1738#[derive(Debug, Copy, Clone)]
1739pub struct rb_postponed_job_struct {
1740 pub _address: u8,
1741}
1742#[repr(C)]
1743#[derive(Debug, Copy, Clone)]
1744pub struct iseq_label_data {
1745 pub _address: u8,
1746}