rbspy_ruby_structs/
ruby_2_1_8.rs

1/* automatically generated by rust-bindgen 0.71.1 */
2
3#[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 = usize;
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_LOCAL: ruby_id_types = 0;
582pub const ruby_id_types_RUBY_ID_INSTANCE: ruby_id_types = 1;
583pub const ruby_id_types_RUBY_ID_GLOBAL: ruby_id_types = 3;
584pub const ruby_id_types_RUBY_ID_ATTRSET: ruby_id_types = 4;
585pub const ruby_id_types_RUBY_ID_CONST: ruby_id_types = 5;
586pub const ruby_id_types_RUBY_ID_CLASS: ruby_id_types = 6;
587pub const ruby_id_types_RUBY_ID_JUNK: ruby_id_types = 7;
588pub const ruby_id_types_RUBY_ID_INTERNAL: ruby_id_types = 7;
589pub const ruby_id_types_RUBY_ID_SCOPE_SHIFT: ruby_id_types = 3;
590pub const ruby_id_types_RUBY_ID_SCOPE_MASK: ruby_id_types = 7;
591pub type ruby_id_types = ::std::os::raw::c_uint;
592pub const ruby_method_ids_idDot2: ruby_method_ids = 128;
593pub const ruby_method_ids_idDot3: ruby_method_ids = 129;
594pub const ruby_method_ids_idUPlus: ruby_method_ids = 130;
595pub const ruby_method_ids_idUMinus: ruby_method_ids = 131;
596pub const ruby_method_ids_idPow: ruby_method_ids = 132;
597pub const ruby_method_ids_idCmp: ruby_method_ids = 134;
598pub const ruby_method_ids_idPLUS: ruby_method_ids = 43;
599pub const ruby_method_ids_idMINUS: ruby_method_ids = 45;
600pub const ruby_method_ids_idMULT: ruby_method_ids = 42;
601pub const ruby_method_ids_idDIV: ruby_method_ids = 47;
602pub const ruby_method_ids_idMOD: ruby_method_ids = 37;
603pub const ruby_method_ids_idLT: ruby_method_ids = 60;
604pub const ruby_method_ids_idLTLT: ruby_method_ids = 135;
605pub const ruby_method_ids_idLE: ruby_method_ids = 137;
606pub const ruby_method_ids_idGT: ruby_method_ids = 62;
607pub const ruby_method_ids_idGE: ruby_method_ids = 138;
608pub const ruby_method_ids_idEq: ruby_method_ids = 139;
609pub const ruby_method_ids_idEqq: ruby_method_ids = 140;
610pub const ruby_method_ids_idNeq: ruby_method_ids = 141;
611pub const ruby_method_ids_idNot: ruby_method_ids = 33;
612pub const ruby_method_ids_idBackquote: ruby_method_ids = 96;
613pub const ruby_method_ids_idEqTilde: ruby_method_ids = 142;
614pub const ruby_method_ids_idNeqTilde: ruby_method_ids = 143;
615pub const ruby_method_ids_idAREF: ruby_method_ids = 144;
616pub const ruby_method_ids_idASET: ruby_method_ids = 145;
617pub const ruby_method_ids_tPRESERVED_ID_BEGIN: ruby_method_ids = 147;
618pub const ruby_method_ids_idNULL: ruby_method_ids = 148;
619pub const ruby_method_ids_idEmptyP: ruby_method_ids = 149;
620pub const ruby_method_ids_idEqlP: ruby_method_ids = 150;
621pub const ruby_method_ids_idRespond_to: ruby_method_ids = 151;
622pub const ruby_method_ids_idRespond_to_missing: ruby_method_ids = 152;
623pub const ruby_method_ids_idIFUNC: ruby_method_ids = 153;
624pub const ruby_method_ids_idCFUNC: ruby_method_ids = 154;
625pub const ruby_method_ids_id_core_set_method_alias: ruby_method_ids = 155;
626pub const ruby_method_ids_id_core_set_variable_alias: ruby_method_ids = 156;
627pub const ruby_method_ids_id_core_undef_method: ruby_method_ids = 157;
628pub const ruby_method_ids_id_core_define_method: ruby_method_ids = 158;
629pub const ruby_method_ids_id_core_define_singleton_method: ruby_method_ids = 159;
630pub const ruby_method_ids_id_core_set_postexe: ruby_method_ids = 160;
631pub const ruby_method_ids_id_core_hash_from_ary: ruby_method_ids = 161;
632pub const ruby_method_ids_id_core_hash_merge_ary: ruby_method_ids = 162;
633pub const ruby_method_ids_id_core_hash_merge_ptr: ruby_method_ids = 163;
634pub const ruby_method_ids_id_core_hash_merge_kwd: ruby_method_ids = 164;
635pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 165;
636pub const ruby_method_ids_tFreeze: ruby_method_ids = 166;
637pub const ruby_method_ids_tInspect: ruby_method_ids = 167;
638pub const ruby_method_ids_tIntern: ruby_method_ids = 168;
639pub const ruby_method_ids_tObject_id: ruby_method_ids = 169;
640pub const ruby_method_ids_tConst_missing: ruby_method_ids = 170;
641pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 171;
642pub const ruby_method_ids_tMethod_added: ruby_method_ids = 172;
643pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 173;
644pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 174;
645pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 175;
646pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 176;
647pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 177;
648pub const ruby_method_ids_tLength: ruby_method_ids = 178;
649pub const ruby_method_ids_tSize: ruby_method_ids = 179;
650pub const ruby_method_ids_tGets: ruby_method_ids = 180;
651pub const ruby_method_ids_tSucc: ruby_method_ids = 181;
652pub const ruby_method_ids_tEach: ruby_method_ids = 182;
653pub const ruby_method_ids_tProc: ruby_method_ids = 183;
654pub const ruby_method_ids_tLambda: ruby_method_ids = 184;
655pub const ruby_method_ids_tSend: ruby_method_ids = 185;
656pub const ruby_method_ids_t__send__: ruby_method_ids = 186;
657pub const ruby_method_ids_t__attached__: ruby_method_ids = 187;
658pub const ruby_method_ids_tInitialize: ruby_method_ids = 188;
659pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 189;
660pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 190;
661pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 191;
662pub const ruby_method_ids_tUScore: ruby_method_ids = 192;
663pub const ruby_method_ids_idFreeze: ruby_method_ids = 1328;
664pub const ruby_method_ids_idInspect: ruby_method_ids = 1336;
665pub const ruby_method_ids_idIntern: ruby_method_ids = 1344;
666pub const ruby_method_ids_idObject_id: ruby_method_ids = 1352;
667pub const ruby_method_ids_idConst_missing: ruby_method_ids = 1360;
668pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 1368;
669pub const ruby_method_ids_idMethod_added: ruby_method_ids = 1376;
670pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 1384;
671pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 1392;
672pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 1400;
673pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 1408;
674pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 1416;
675pub const ruby_method_ids_idLength: ruby_method_ids = 1424;
676pub const ruby_method_ids_idSize: ruby_method_ids = 1432;
677pub const ruby_method_ids_idGets: ruby_method_ids = 1440;
678pub const ruby_method_ids_idSucc: ruby_method_ids = 1448;
679pub const ruby_method_ids_idEach: ruby_method_ids = 1456;
680pub const ruby_method_ids_idProc: ruby_method_ids = 1464;
681pub const ruby_method_ids_idLambda: ruby_method_ids = 1472;
682pub const ruby_method_ids_idSend: ruby_method_ids = 1480;
683pub const ruby_method_ids_id__send__: ruby_method_ids = 1488;
684pub const ruby_method_ids_id__attached__: ruby_method_ids = 1496;
685pub const ruby_method_ids_idInitialize: ruby_method_ids = 1504;
686pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 1512;
687pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 1520;
688pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 1528;
689pub const ruby_method_ids_idUScore: ruby_method_ids = 1536;
690pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 164;
691pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 20;
692pub type ruby_method_ids = ::std::os::raw::c_uint;
693pub type rb_serial_t = ::std::os::raw::c_ulonglong;
694pub const rb_method_flag_t_NOEX_PUBLIC: rb_method_flag_t = 0;
695pub const rb_method_flag_t_NOEX_NOSUPER: rb_method_flag_t = 1;
696pub const rb_method_flag_t_NOEX_PRIVATE: rb_method_flag_t = 2;
697pub const rb_method_flag_t_NOEX_PROTECTED: rb_method_flag_t = 4;
698pub const rb_method_flag_t_NOEX_MASK: rb_method_flag_t = 6;
699pub const rb_method_flag_t_NOEX_BASIC: rb_method_flag_t = 8;
700pub const rb_method_flag_t_NOEX_UNDEF: rb_method_flag_t = 1;
701pub const rb_method_flag_t_NOEX_MODFUNC: rb_method_flag_t = 18;
702pub const rb_method_flag_t_NOEX_SUPER: rb_method_flag_t = 32;
703pub const rb_method_flag_t_NOEX_VCALL: rb_method_flag_t = 64;
704pub const rb_method_flag_t_NOEX_RESPONDS: rb_method_flag_t = 128;
705pub const rb_method_flag_t_NOEX_BIT_WIDTH: rb_method_flag_t = 8;
706pub const rb_method_flag_t_NOEX_SAFE_SHIFT_OFFSET: rb_method_flag_t = 8;
707pub type rb_method_flag_t = ::std::os::raw::c_uint;
708pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
709pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
710pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
711pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
712pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
713pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
714pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 6;
715pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 7;
716pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 8;
717pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 9;
718pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 10;
719pub type rb_method_type_t = ::std::os::raw::c_uint;
720#[repr(C)]
721#[derive(Debug, Copy, Clone)]
722pub struct rb_method_cfunc_struct {
723    pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
724    pub invoker: ::std::option::Option<
725        unsafe extern "C" fn(
726            func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
727            recv: VALUE,
728            argc: ::std::os::raw::c_int,
729            argv: *const VALUE,
730        ) -> VALUE,
731    >,
732    pub argc: ::std::os::raw::c_int,
733}
734pub type rb_method_cfunc_t = rb_method_cfunc_struct;
735#[repr(C)]
736#[derive(Debug, Copy, Clone)]
737pub struct rb_method_attr_struct {
738    pub id: ID,
739    pub location: VALUE,
740}
741pub type rb_method_attr_t = rb_method_attr_struct;
742pub type rb_iseq_t = rb_iseq_struct;
743#[repr(C)]
744#[derive(Copy, Clone)]
745pub struct rb_method_definition_struct {
746    pub type_: rb_method_type_t,
747    pub original_id: ID,
748    pub body: rb_method_definition_struct__bindgen_ty_1,
749    pub alias_count: ::std::os::raw::c_int,
750}
751#[repr(C)]
752#[derive(Copy, Clone)]
753pub union rb_method_definition_struct__bindgen_ty_1 {
754    pub iseq: *mut rb_iseq_t,
755    pub cfunc: rb_method_cfunc_t,
756    pub attr: rb_method_attr_t,
757    pub proc_: VALUE,
758    pub optimize_type: rb_method_definition_struct__bindgen_ty_1_method_optimized_type,
759    pub orig_me: *mut rb_method_entry_struct,
760}
761pub 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 ;
762pub 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 ;
763pub 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 ;
764pub type rb_method_definition_struct__bindgen_ty_1_method_optimized_type = ::std::os::raw::c_uint;
765impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
766    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
767        write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
768    }
769}
770pub type rb_method_definition_t = rb_method_definition_struct;
771#[repr(C)]
772#[derive(Debug, Copy, Clone)]
773pub struct rb_method_entry_struct {
774    pub flag: rb_method_flag_t,
775    pub mark: ::std::os::raw::c_char,
776    pub def: *mut rb_method_definition_t,
777    pub called_id: ID,
778    pub klass: VALUE,
779}
780pub type rb_method_entry_t = rb_method_entry_struct;
781#[repr(C)]
782#[derive(Debug, Copy, Clone)]
783pub struct unlinked_method_entry_list_entry {
784    pub next: *mut unlinked_method_entry_list_entry,
785    pub me: *mut rb_method_entry_t,
786}
787pub type rb_atomic_t = ::std::os::raw::c_uint;
788pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
789pub type rb_nativethread_id_t = pthread_t;
790pub type rb_nativethread_lock_t = pthread_mutex_t;
791#[repr(C)]
792#[derive(Copy, Clone)]
793pub struct rb_thread_cond_struct {
794    pub cond: pthread_cond_t,
795    pub clockid: clockid_t,
796}
797impl ::std::fmt::Debug for rb_thread_cond_struct {
798    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
799        write!(
800            f,
801            "rb_thread_cond_struct {{ cond: {:?}, clockid: {:?} }}",
802            self.cond, self.clockid
803        )
804    }
805}
806pub type rb_nativethread_cond_t = rb_thread_cond_struct;
807#[repr(C)]
808#[derive(Copy, Clone)]
809pub struct native_thread_data_struct {
810    pub signal_thread_list: *mut ::std::os::raw::c_void,
811    pub sleep_cond: rb_nativethread_cond_t,
812}
813impl ::std::fmt::Debug for native_thread_data_struct {
814    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
815        write!(
816            f,
817            "native_thread_data_struct {{ signal_thread_list: {:?}, sleep_cond: {:?} }}",
818            self.signal_thread_list, self.sleep_cond
819        )
820    }
821}
822pub type native_thread_data_t = native_thread_data_struct;
823#[repr(C)]
824#[derive(Copy, Clone)]
825pub struct rb_global_vm_lock_struct {
826    pub acquired: ::std::os::raw::c_ulong,
827    pub lock: pthread_mutex_t,
828    pub waiting: ::std::os::raw::c_ulong,
829    pub cond: rb_nativethread_cond_t,
830    pub switch_cond: rb_nativethread_cond_t,
831    pub switch_wait_cond: rb_nativethread_cond_t,
832    pub need_yield: ::std::os::raw::c_int,
833    pub wait_yield: ::std::os::raw::c_int,
834}
835impl ::std::fmt::Debug for rb_global_vm_lock_struct {
836    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
837        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)
838    }
839}
840pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
841#[repr(C)]
842#[derive(Debug, Copy, Clone)]
843pub struct __jmp_buf_tag {
844    pub __jmpbuf: __jmp_buf,
845    pub __mask_was_saved: ::std::os::raw::c_int,
846    pub __saved_mask: __sigset_t,
847}
848pub type jmp_buf = [__jmp_buf_tag; 1usize];
849pub type rb_num_t = usize;
850#[repr(C)]
851#[derive(Debug, Copy, Clone)]
852pub struct iseq_compile_data_ensure_node_stack {
853    _unused: [u8; 0],
854}
855pub type rb_compile_option_t = rb_compile_option_struct;
856#[repr(C)]
857#[derive(Copy, Clone)]
858pub struct iseq_inline_cache_entry {
859    pub ic_serial: rb_serial_t,
860    pub ic_value: iseq_inline_cache_entry__bindgen_ty_1,
861}
862#[repr(C)]
863#[derive(Copy, Clone)]
864pub union iseq_inline_cache_entry__bindgen_ty_1 {
865    pub index: usize,
866    pub value: VALUE,
867}
868impl ::std::fmt::Debug for iseq_inline_cache_entry__bindgen_ty_1 {
869    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
870        write!(f, "iseq_inline_cache_entry__bindgen_ty_1 {{ union }}")
871    }
872}
873impl ::std::fmt::Debug for iseq_inline_cache_entry {
874    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
875        write!(
876            f,
877            "iseq_inline_cache_entry {{ ic_serial: {:?}, ic_value: {:?} }}",
878            self.ic_serial, self.ic_value
879        )
880    }
881}
882#[repr(C)]
883#[derive(Copy, Clone)]
884pub union iseq_inline_storage_entry {
885    pub once: iseq_inline_storage_entry__bindgen_ty_1,
886    pub cache: iseq_inline_cache_entry,
887}
888#[repr(C)]
889#[derive(Debug, Copy, Clone)]
890pub struct iseq_inline_storage_entry__bindgen_ty_1 {
891    pub running_thread: *mut rb_thread_struct,
892    pub value: VALUE,
893    pub done: VALUE,
894}
895impl ::std::fmt::Debug for iseq_inline_storage_entry {
896    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
897        write!(f, "iseq_inline_storage_entry {{ union }}")
898    }
899}
900#[repr(C)]
901#[derive(Copy, Clone)]
902pub struct rb_call_info_struct {
903    pub mid: ID,
904    pub flag: VALUE,
905    pub orig_argc: ::std::os::raw::c_int,
906    pub blockiseq: *mut rb_iseq_t,
907    pub method_state: rb_serial_t,
908    pub class_serial: rb_serial_t,
909    pub klass: VALUE,
910    pub me: *const rb_method_entry_t,
911    pub defined_class: VALUE,
912    pub argc: ::std::os::raw::c_int,
913    pub blockptr: *mut rb_block_struct,
914    pub recv: VALUE,
915    pub aux: rb_call_info_struct__bindgen_ty_1,
916    pub call: ::std::option::Option<
917        unsafe extern "C" fn(
918            th: *mut rb_thread_struct,
919            cfp: *mut rb_control_frame_struct,
920            ci: *mut rb_call_info_struct,
921        ) -> VALUE,
922    >,
923}
924#[repr(C)]
925#[derive(Copy, Clone)]
926pub union rb_call_info_struct__bindgen_ty_1 {
927    pub opt_pc: ::std::os::raw::c_int,
928    pub index: ::std::os::raw::c_long,
929    pub missing_reason: ::std::os::raw::c_int,
930    pub inc_sp: ::std::os::raw::c_int,
931}
932impl ::std::fmt::Debug for rb_call_info_struct__bindgen_ty_1 {
933    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
934        write!(f, "rb_call_info_struct__bindgen_ty_1 {{ union }}")
935    }
936}
937impl ::std::fmt::Debug for rb_call_info_struct {
938    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
939        write ! (f , "rb_call_info_struct {{ mid: {:?}, flag: {:?}, orig_argc: {:?}, blockiseq: {:?}, method_state: {:?}, class_serial: {:?}, klass: {:?}, me: {:?}, defined_class: {:?}, argc: {:?}, blockptr: {:?}, recv: {:?}, aux: {:?}, call: {:?} }}" , self . mid , self . flag , self . orig_argc , self . blockiseq , self . method_state , self . class_serial , self . klass , self . me , self . defined_class , self . argc , self . blockptr , self . recv , self . aux , self . call)
940    }
941}
942pub type rb_call_info_t = rb_call_info_struct;
943#[repr(C)]
944#[derive(Debug, Copy, Clone)]
945pub struct rb_iseq_location_struct {
946    pub path: VALUE,
947    pub absolute_path: VALUE,
948    pub base_label: VALUE,
949    pub label: VALUE,
950    pub first_lineno: usize,
951}
952pub type rb_iseq_location_t = rb_iseq_location_struct;
953#[repr(C)]
954#[derive(Debug, Copy, Clone)]
955pub struct rb_iseq_struct {
956    pub type_: rb_iseq_struct_iseq_type,
957    pub location: rb_iseq_location_t,
958    pub iseq: *mut VALUE,
959    pub iseq_encoded: *mut VALUE,
960    pub iseq_size: ::std::os::raw::c_ulong,
961    pub mark_ary: VALUE,
962    pub coverage: VALUE,
963    pub line_info_table: *mut iseq_line_info_entry,
964    pub line_info_size: usize,
965    pub local_table: *mut ID,
966    pub local_table_size: ::std::os::raw::c_int,
967    pub local_size: ::std::os::raw::c_int,
968    pub is_entries: *mut iseq_inline_storage_entry,
969    pub is_size: ::std::os::raw::c_int,
970    pub callinfo_entries: *mut rb_call_info_t,
971    pub callinfo_size: ::std::os::raw::c_int,
972    pub argc: ::std::os::raw::c_int,
973    pub arg_simple: ::std::os::raw::c_int,
974    pub arg_rest: ::std::os::raw::c_int,
975    pub arg_block: ::std::os::raw::c_int,
976    pub arg_opts: ::std::os::raw::c_int,
977    pub arg_post_len: ::std::os::raw::c_int,
978    pub arg_post_start: ::std::os::raw::c_int,
979    pub arg_size: ::std::os::raw::c_int,
980    pub arg_opt_table: *mut VALUE,
981    pub arg_keyword: ::std::os::raw::c_int,
982    pub arg_keyword_check: ::std::os::raw::c_int,
983    pub arg_keywords: ::std::os::raw::c_int,
984    pub arg_keyword_required: ::std::os::raw::c_int,
985    pub arg_keyword_table: *mut ID,
986    pub stack_max: usize,
987    pub catch_table: *mut iseq_catch_table_entry,
988    pub catch_table_size: ::std::os::raw::c_int,
989    pub parent_iseq: *mut rb_iseq_struct,
990    pub local_iseq: *mut rb_iseq_struct,
991    pub self_: VALUE,
992    pub orig: VALUE,
993    pub cref_stack: *mut NODE,
994    pub klass: VALUE,
995    pub defined_method_id: ID,
996    pub flip_cnt: rb_num_t,
997    pub compile_data: *mut iseq_compile_data,
998}
999pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_TOP: rb_iseq_struct_iseq_type = 0;
1000pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_struct_iseq_type = 1;
1001pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_struct_iseq_type = 2;
1002pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_struct_iseq_type = 3;
1003pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_struct_iseq_type = 4;
1004pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_struct_iseq_type = 5;
1005pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_struct_iseq_type = 6;
1006pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_struct_iseq_type = 7;
1007pub const rb_iseq_struct_iseq_type_ISEQ_TYPE_DEFINED_GUARD: rb_iseq_struct_iseq_type = 8;
1008pub type rb_iseq_struct_iseq_type = ::std::os::raw::c_uint;
1009#[repr(C)]
1010#[derive(Debug, Copy, Clone)]
1011pub struct rb_objspace {
1012    _unused: [u8; 0],
1013}
1014#[repr(C)]
1015#[derive(Debug, Copy, Clone)]
1016pub struct rb_hook_list_struct {
1017    pub hooks: *mut rb_event_hook_struct,
1018    pub events: rb_event_flag_t,
1019    pub need_clean: ::std::os::raw::c_int,
1020}
1021pub type rb_hook_list_t = rb_hook_list_struct;
1022#[repr(C)]
1023#[derive(Copy, Clone)]
1024pub struct rb_vm_struct {
1025    pub self_: VALUE,
1026    pub gvl: rb_global_vm_lock_t,
1027    pub thread_destruct_lock: rb_nativethread_lock_t,
1028    pub main_thread: *mut rb_thread_struct,
1029    pub running_thread: *mut rb_thread_struct,
1030    pub living_threads: *mut st_table,
1031    pub thgroup_default: VALUE,
1032    pub running: ::std::os::raw::c_int,
1033    pub thread_abort_on_exception: ::std::os::raw::c_int,
1034    pub trace_running: ::std::os::raw::c_int,
1035    pub sleeper: ::std::os::raw::c_int,
1036    pub mark_object_ary: VALUE,
1037    pub special_exceptions: [VALUE; 4usize],
1038    pub top_self: VALUE,
1039    pub load_path: VALUE,
1040    pub load_path_snapshot: VALUE,
1041    pub load_path_check_cache: VALUE,
1042    pub expanded_load_path: VALUE,
1043    pub loaded_features: VALUE,
1044    pub loaded_features_snapshot: VALUE,
1045    pub loaded_features_index: *mut st_table,
1046    pub loading_table: *mut st_table,
1047    pub trap_list: [rb_vm_struct__bindgen_ty_1; 65usize],
1048    pub event_hooks: rb_hook_list_t,
1049    pub ensure_rollback_table: *mut st_table,
1050    pub postponed_job_buffer: *mut rb_postponed_job_struct,
1051    pub postponed_job_index: ::std::os::raw::c_int,
1052    pub src_encoding_index: ::std::os::raw::c_int,
1053    pub verbose: VALUE,
1054    pub debug: VALUE,
1055    pub orig_progname: VALUE,
1056    pub progname: VALUE,
1057    pub coverages: VALUE,
1058    pub unlinked_method_entry_list: *mut unlinked_method_entry_list_entry,
1059    pub defined_module_hash: VALUE,
1060    pub objspace: *mut rb_objspace,
1061    pub at_exit: RArray,
1062    pub defined_strings: *mut VALUE,
1063    pub default_params: rb_vm_struct__bindgen_ty_2,
1064}
1065#[repr(C)]
1066#[derive(Debug, Copy, Clone)]
1067pub struct rb_vm_struct__bindgen_ty_1 {
1068    pub cmd: VALUE,
1069    pub safe: ::std::os::raw::c_int,
1070}
1071#[repr(C)]
1072#[derive(Debug, Copy, Clone)]
1073pub struct rb_vm_struct__bindgen_ty_2 {
1074    pub thread_vm_stack_size: usize,
1075    pub thread_machine_stack_size: usize,
1076    pub fiber_vm_stack_size: usize,
1077    pub fiber_machine_stack_size: usize,
1078}
1079impl ::std::fmt::Debug for rb_vm_struct {
1080    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1081        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: {:?}, default_params: {:?} }}" , 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 . default_params)
1082    }
1083}
1084pub type rb_vm_t = rb_vm_struct;
1085#[repr(C)]
1086#[derive(Debug, Copy, Clone)]
1087pub struct rb_control_frame_struct {
1088    pub pc: *mut VALUE,
1089    pub sp: *mut VALUE,
1090    pub iseq: *mut rb_iseq_t,
1091    pub flag: VALUE,
1092    pub self_: VALUE,
1093    pub klass: VALUE,
1094    pub ep: *mut VALUE,
1095    pub block_iseq: *mut rb_iseq_t,
1096    pub proc_: VALUE,
1097    pub me: *const rb_method_entry_t,
1098}
1099pub type rb_control_frame_t = rb_control_frame_struct;
1100#[repr(C)]
1101#[derive(Debug, Copy, Clone)]
1102pub struct rb_block_struct {
1103    pub self_: VALUE,
1104    pub klass: VALUE,
1105    pub ep: *mut VALUE,
1106    pub iseq: *mut rb_iseq_t,
1107    pub proc_: VALUE,
1108}
1109pub type rb_block_t = rb_block_struct;
1110pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
1111pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
1112pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
1113pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
1114pub type rb_thread_status = ::std::os::raw::c_uint;
1115pub type rb_jmpbuf_t = jmp_buf;
1116#[repr(C)]
1117#[derive(Debug, Copy, Clone)]
1118pub struct rb_vm_tag {
1119    pub tag: VALUE,
1120    pub retval: VALUE,
1121    pub buf: rb_jmpbuf_t,
1122    pub prev: *mut rb_vm_tag,
1123}
1124#[repr(C)]
1125#[derive(Debug, Copy, Clone)]
1126pub struct rb_vm_protect_tag {
1127    pub prev: *mut rb_vm_protect_tag,
1128}
1129#[repr(C)]
1130#[derive(Debug, Copy, Clone)]
1131pub struct rb_unblock_callback {
1132    pub func: rb_unblock_function_t,
1133    pub arg: *mut ::std::os::raw::c_void,
1134}
1135#[repr(C)]
1136#[derive(Debug, Copy, Clone)]
1137pub struct rb_mutex_struct {
1138    _unused: [u8; 0],
1139}
1140#[repr(C)]
1141#[derive(Debug, Copy, Clone)]
1142pub struct rb_thread_list_struct {
1143    pub next: *mut rb_thread_list_struct,
1144    pub th: *mut rb_thread_struct,
1145}
1146pub type rb_thread_list_t = rb_thread_list_struct;
1147#[repr(C)]
1148#[derive(Debug, Copy, Clone)]
1149pub struct rb_ensure_entry {
1150    pub marker: VALUE,
1151    pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1152    pub data2: VALUE,
1153}
1154#[repr(C)]
1155#[derive(Debug, Copy, Clone)]
1156pub struct rb_ensure_list {
1157    pub next: *mut rb_ensure_list,
1158    pub entry: rb_ensure_entry,
1159}
1160pub type rb_ensure_list_t = rb_ensure_list;
1161#[repr(C)]
1162#[derive(Copy, Clone)]
1163pub struct rb_thread_struct {
1164    pub self_: VALUE,
1165    pub vm: *mut rb_vm_t,
1166    pub stack: *mut VALUE,
1167    pub stack_size: usize,
1168    pub cfp: *mut rb_control_frame_t,
1169    pub safe_level: ::std::os::raw::c_int,
1170    pub raised_flag: ::std::os::raw::c_int,
1171    pub last_status: VALUE,
1172    pub state: ::std::os::raw::c_int,
1173    pub waiting_fd: ::std::os::raw::c_int,
1174    pub passed_block: *const rb_block_t,
1175    pub passed_bmethod_me: *const rb_method_entry_t,
1176    pub passed_ci: *mut rb_call_info_t,
1177    pub top_self: VALUE,
1178    pub top_wrapper: VALUE,
1179    pub base_block: *mut rb_block_t,
1180    pub root_lep: *mut VALUE,
1181    pub root_svar: VALUE,
1182    pub thread_id: rb_nativethread_id_t,
1183    pub status: rb_thread_status,
1184    pub to_kill: ::std::os::raw::c_int,
1185    pub priority: ::std::os::raw::c_int,
1186    pub native_thread_data: native_thread_data_t,
1187    pub blocking_region_buffer: *mut ::std::os::raw::c_void,
1188    pub thgroup: VALUE,
1189    pub value: VALUE,
1190    pub errinfo: VALUE,
1191    pub pending_interrupt_queue: VALUE,
1192    pub pending_interrupt_queue_checked: ::std::os::raw::c_int,
1193    pub pending_interrupt_mask_stack: VALUE,
1194    pub interrupt_flag: rb_atomic_t,
1195    pub interrupt_mask: ::std::os::raw::c_ulong,
1196    pub interrupt_lock: rb_nativethread_lock_t,
1197    pub interrupt_cond: rb_nativethread_cond_t,
1198    pub unblock: rb_unblock_callback,
1199    pub locking_mutex: VALUE,
1200    pub keeping_mutexes: *mut rb_mutex_struct,
1201    pub tag: *mut rb_vm_tag,
1202    pub protect_tag: *mut rb_vm_protect_tag,
1203    pub parse_in_eval: ::std::os::raw::c_int,
1204    pub mild_compile_error: ::std::os::raw::c_int,
1205    pub local_storage: *mut st_table,
1206    pub join_list: *mut rb_thread_list_t,
1207    pub first_proc: VALUE,
1208    pub first_args: VALUE,
1209    pub first_func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1210    pub machine: rb_thread_struct__bindgen_ty_1,
1211    pub mark_stack_len: ::std::os::raw::c_int,
1212    pub stat_insn_usage: VALUE,
1213    pub event_hooks: rb_hook_list_t,
1214    pub trace_arg: *mut rb_trace_arg_struct,
1215    pub fiber: VALUE,
1216    pub root_fiber: VALUE,
1217    pub root_jmpbuf: rb_jmpbuf_t,
1218    pub ensure_list: *mut rb_ensure_list_t,
1219    pub method_missing_reason: ::std::os::raw::c_int,
1220    pub abort_on_exception: ::std::os::raw::c_int,
1221    pub altstack: *mut ::std::os::raw::c_void,
1222    pub running_time_us: ::std::os::raw::c_ulong,
1223}
1224#[repr(C)]
1225#[derive(Debug, Copy, Clone)]
1226pub struct rb_thread_struct__bindgen_ty_1 {
1227    pub stack_start: *mut VALUE,
1228    pub stack_end: *mut VALUE,
1229    pub stack_maxsize: usize,
1230    pub regs: jmp_buf,
1231}
1232impl ::std::fmt::Debug for rb_thread_struct {
1233    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1234        write ! (f , "rb_thread_struct {{ 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_queue_checked: {:?}, pending_interrupt_mask_stack: {:?}, interrupt_flag: {:?}, interrupt_mask: {:?}, interrupt_lock: {:?}, interrupt_cond: {:?}, unblock: {:?}, locking_mutex: {:?}, keeping_mutexes: {:?}, tag: {:?}, protect_tag: {:?}, parse_in_eval: {:?}, mild_compile_error: {:?}, local_storage: {:?}, join_list: {:?}, first_proc: {:?}, first_args: {:?}, first_func: {:?}, machine: {:?}, mark_stack_len: {:?}, 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 . 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_queue_checked , self . pending_interrupt_mask_stack , 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 . join_list , self . first_proc , self . first_args , self . first_func , self . machine , self . mark_stack_len , 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)
1235    }
1236}
1237pub type rb_thread_t = rb_thread_struct;
1238#[repr(C)]
1239#[derive(Debug, Copy, Clone)]
1240pub struct rb_trace_arg_struct {
1241    pub event: rb_event_flag_t,
1242    pub th: *mut rb_thread_t,
1243    pub cfp: *mut rb_control_frame_t,
1244    pub self_: VALUE,
1245    pub id: ID,
1246    pub klass: VALUE,
1247    pub data: VALUE,
1248    pub klass_solved: ::std::os::raw::c_int,
1249    pub lineno: ::std::os::raw::c_int,
1250    pub path: VALUE,
1251}
1252#[repr(C)]
1253#[derive(Debug, Copy, Clone)]
1254pub struct rb_compile_option_struct {
1255    pub inline_const_cache: ::std::os::raw::c_int,
1256    pub peephole_optimization: ::std::os::raw::c_int,
1257    pub tailcall_optimization: ::std::os::raw::c_int,
1258    pub specialized_instruction: ::std::os::raw::c_int,
1259    pub operands_unification: ::std::os::raw::c_int,
1260    pub instructions_unification: ::std::os::raw::c_int,
1261    pub stack_caching: ::std::os::raw::c_int,
1262    pub trace_instruction: ::std::os::raw::c_int,
1263    pub debug_level: ::std::os::raw::c_int,
1264}
1265#[repr(C)]
1266#[derive(Debug, Copy, Clone)]
1267pub struct iseq_line_info_entry {
1268    pub position: ::std::os::raw::c_uint,
1269    pub line_no: ::std::os::raw::c_uint,
1270}
1271#[repr(C)]
1272#[derive(Debug, Copy, Clone)]
1273pub struct iseq_catch_table_entry {
1274    pub type_: iseq_catch_table_entry_catch_type,
1275    pub iseq: VALUE,
1276    pub start: ::std::os::raw::c_ulong,
1277    pub end: ::std::os::raw::c_ulong,
1278    pub cont: ::std::os::raw::c_ulong,
1279    pub sp: ::std::os::raw::c_ulong,
1280}
1281pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
1282    3;
1283pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
1284    5;
1285pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
1286pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
1287pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
1288pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
1289pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
1290#[repr(C)]
1291#[derive(Debug, Copy, Clone)]
1292pub struct iseq_compile_data_storage {
1293    pub next: *mut iseq_compile_data_storage,
1294    pub pos: ::std::os::raw::c_ulong,
1295    pub size: ::std::os::raw::c_ulong,
1296    pub buff: *mut ::std::os::raw::c_char,
1297}
1298#[repr(C)]
1299#[derive(Debug, Copy, Clone)]
1300pub struct iseq_compile_data {
1301    pub err_info: VALUE,
1302    pub mark_ary: VALUE,
1303    pub catch_table_ary: VALUE,
1304    pub start_label: *mut iseq_label_data,
1305    pub end_label: *mut iseq_label_data,
1306    pub redo_label: *mut iseq_label_data,
1307    pub current_block: VALUE,
1308    pub ensure_node: VALUE,
1309    pub for_iseq: VALUE,
1310    pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
1311    pub loopval_popped: ::std::os::raw::c_int,
1312    pub cached_const: ::std::os::raw::c_int,
1313    pub storage_head: *mut iseq_compile_data_storage,
1314    pub storage_current: *mut iseq_compile_data_storage,
1315    pub last_line: ::std::os::raw::c_int,
1316    pub last_coverable_line: ::std::os::raw::c_int,
1317    pub label_no: ::std::os::raw::c_int,
1318    pub node_level: ::std::os::raw::c_int,
1319    pub option: *const rb_compile_option_t,
1320}
1321#[repr(C)]
1322#[derive(Debug, Copy, Clone)]
1323pub struct st_table_entry {
1324    pub _address: u8,
1325}
1326#[repr(C)]
1327#[derive(Debug, Copy, Clone)]
1328pub struct st_packed_entry {
1329    pub _address: u8,
1330}
1331#[repr(C)]
1332#[derive(Debug, Copy, Clone)]
1333pub struct rb_event_hook_struct {
1334    pub _address: u8,
1335}
1336#[repr(C)]
1337#[derive(Debug, Copy, Clone)]
1338pub struct rb_postponed_job_struct {
1339    pub _address: u8,
1340}
1341#[repr(C)]
1342#[derive(Debug, Copy, Clone)]
1343pub struct iseq_label_data {
1344    pub _address: u8,
1345}