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 = unsafe {
40 *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize)
41 };
42 Self::extract_bit(byte, index)
43 }
44 #[inline]
45 fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
46 let bit_index = if cfg!(target_endian = "big") {
47 7 - (index % 8)
48 } else {
49 index % 8
50 };
51 let mask = 1 << bit_index;
52 if val {
53 byte | mask
54 } else {
55 byte & !mask
56 }
57 }
58 #[inline]
59 pub fn set_bit(&mut self, index: usize, val: bool) {
60 debug_assert!(index / 8 < self.storage.as_ref().len());
61 let byte_index = index / 8;
62 let byte = &mut self.storage.as_mut()[byte_index];
63 *byte = Self::change_bit(*byte, index, val);
64 }
65 #[inline]
66 pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
67 debug_assert!(index / 8 < core::mem::size_of::<Storage>());
68 let byte_index = index / 8;
69 let byte = unsafe {
70 (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize)
71 };
72 unsafe { *byte = Self::change_bit(*byte, index, val) };
73 }
74 #[inline]
75 pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
76 debug_assert!(bit_width <= 64);
77 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
78 debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len());
79 if bit_width == 0 {
80 return 0;
81 }
82 let mut val = 0u64;
83 let storage = self.storage.as_ref();
84 let start_byte = bit_offset / 8;
85 let bit_shift = bit_offset % 8;
86 let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
87 if cfg!(target_endian = "big") {
88 for i in 0..bytes_needed {
89 val |= (storage[start_byte + i].reverse_bits() as u64) << (i * 8);
90 }
91 } else {
92 for i in 0..bytes_needed {
93 val |= (storage[start_byte + i] as u64) << (i * 8);
94 }
95 }
96 val >>= bit_shift;
97 if bit_width < 64 {
98 val &= (1u64 << bit_width) - 1;
99 }
100 if cfg!(target_endian = "big") {
101 val = val.reverse_bits() >> (64 - bit_width as usize);
102 }
103 val
104 }
105 #[inline]
106 pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
107 debug_assert!(bit_width <= 64);
108 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
109 debug_assert!(
110 (bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::<Storage>()
111 );
112 if bit_width == 0 {
113 return 0;
114 }
115 let mut val = 0u64;
116 let start_byte = bit_offset / 8;
117 let bit_shift = bit_offset % 8;
118 let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
119 let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 };
120 if cfg!(target_endian = "big") {
121 for i in 0..bytes_needed {
122 let byte = unsafe { *storage_ptr.add(start_byte + i) };
123 val |= (byte.reverse_bits() as u64) << (i * 8);
124 }
125 } else {
126 for i in 0..bytes_needed {
127 let byte = unsafe { *storage_ptr.add(start_byte + i) };
128 val |= (byte as u64) << (i * 8);
129 }
130 }
131 val >>= bit_shift;
132 if bit_width < 64 {
133 val &= (1u64 << bit_width) - 1;
134 }
135 if cfg!(target_endian = "big") {
136 val = val.reverse_bits() >> (64 - bit_width as usize);
137 }
138 val
139 }
140 #[inline]
141 pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
142 debug_assert!(bit_width <= 64);
143 debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
144 debug_assert!((bit_offset + (bit_width as usize) + 7) / 8 <= self.storage.as_ref().len());
145 if bit_width == 0 {
146 return;
147 }
148 let mut val = val;
149 if bit_width < 64 {
150 val &= (1u64 << bit_width) - 1;
151 }
152 if cfg!(target_endian = "big") {
153 val = val.reverse_bits() >> (64 - bit_width as usize);
154 }
155 let storage = self.storage.as_mut();
156 let start_byte = bit_offset / 8;
157 let bit_shift = bit_offset % 8;
158 let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
159 val <<= bit_shift;
160 let field_mask = if bit_width as usize + bit_shift >= 64 {
161 !0u64 << bit_shift
162 } else {
163 ((1u64 << bit_width) - 1) << bit_shift
164 };
165 for i in 0..bytes_needed {
166 let byte_val = (val >> (i * 8)) as u8;
167 let byte_mask = (field_mask >> (i * 8)) as u8;
168 if cfg!(target_endian = "big") {
169 let byte = storage[start_byte + i].reverse_bits();
170 let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
171 storage[start_byte + i] = new_byte.reverse_bits();
172 } else {
173 storage[start_byte + i] =
174 (storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask);
175 }
176 }
177 }
178 #[inline]
179 pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
180 debug_assert!(bit_width <= 64);
181 debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
182 debug_assert!(
183 (bit_offset + (bit_width as usize) + 7) / 8 <= core::mem::size_of::<Storage>()
184 );
185 if bit_width == 0 {
186 return;
187 }
188 let mut val = val;
189 if bit_width < 64 {
190 val &= (1u64 << bit_width) - 1;
191 }
192 if cfg!(target_endian = "big") {
193 val = val.reverse_bits() >> (64 - bit_width as usize);
194 }
195 let start_byte = bit_offset / 8;
196 let bit_shift = bit_offset % 8;
197 let bytes_needed = (bit_width as usize + bit_shift + 7) / 8;
198 val <<= bit_shift;
199 let field_mask = if bit_width as usize + bit_shift >= 64 {
200 !0u64 << bit_shift
201 } else {
202 ((1u64 << bit_width) - 1) << bit_shift
203 };
204 let storage_ptr = unsafe { core::ptr::addr_of_mut!((*this).storage) as *mut u8 };
205 for i in 0..bytes_needed {
206 let byte_val = (val >> (i * 8)) as u8;
207 let byte_mask = (field_mask >> (i * 8)) as u8;
208 let byte_ptr = unsafe { storage_ptr.add(start_byte + i) };
209 if cfg!(target_endian = "big") {
210 let byte = unsafe { (*byte_ptr).reverse_bits() };
211 let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
212 unsafe { *byte_ptr = new_byte.reverse_bits() };
213 } else {
214 unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) };
215 }
216 }
217 }
218}
219#[doc = " Const-generic methods for efficient bitfield access when offset and width"]
220#[doc = " are known at compile time."]
221impl<const N: usize> __BindgenBitfieldUnit<[u8; N]> {
222 #[doc = " Get a field using const generics for compile-time optimization."]
223 #[doc = " Uses native word size operations when the field fits in usize."]
224 #[inline]
225 pub const fn get_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(&self) -> u64 {
226 debug_assert!(BIT_WIDTH <= 64);
227 debug_assert!(BIT_OFFSET / 8 < N);
228 debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
229 if BIT_WIDTH == 0 {
230 return 0;
231 }
232 let start_byte = BIT_OFFSET / 8;
233 let bit_shift = BIT_OFFSET % 8;
234 let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
235 if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
236 let mut val = 0usize;
237 if cfg!(target_endian = "big") {
238 let mut i = 0;
239 while i < bytes_needed {
240 val |= (self.storage[start_byte + i].reverse_bits() as usize) << (i * 8);
241 i += 1;
242 }
243 } else {
244 let mut i = 0;
245 while i < bytes_needed {
246 val |= (self.storage[start_byte + i] as usize) << (i * 8);
247 i += 1;
248 }
249 }
250 val >>= bit_shift;
251 if (BIT_WIDTH as u32) < usize::BITS {
252 val &= (1usize << BIT_WIDTH) - 1;
253 }
254 if cfg!(target_endian = "big") {
255 val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
256 }
257 val as u64
258 } else {
259 let mut val = 0u64;
260 if cfg!(target_endian = "big") {
261 let mut i = 0;
262 while i < bytes_needed {
263 val |= (self.storage[start_byte + i].reverse_bits() as u64) << (i * 8);
264 i += 1;
265 }
266 } else {
267 let mut i = 0;
268 while i < bytes_needed {
269 val |= (self.storage[start_byte + i] as u64) << (i * 8);
270 i += 1;
271 }
272 }
273 val >>= bit_shift;
274 if BIT_WIDTH < 64 {
275 val &= (1u64 << BIT_WIDTH) - 1;
276 }
277 if cfg!(target_endian = "big") {
278 val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
279 }
280 val
281 }
282 }
283 #[doc = " Set a field using const generics for compile-time optimization."]
284 #[doc = " Uses native word size operations when the field fits in usize."]
285 #[inline]
286 pub fn set_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(&mut self, val: u64) {
287 debug_assert!(BIT_WIDTH <= 64);
288 debug_assert!(BIT_OFFSET / 8 < N);
289 debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
290 if BIT_WIDTH == 0 {
291 return;
292 }
293 let start_byte = BIT_OFFSET / 8;
294 let bit_shift = BIT_OFFSET % 8;
295 let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
296 if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
297 let mut val = val as usize;
298 if (BIT_WIDTH as u32) < usize::BITS {
299 val &= (1usize << BIT_WIDTH) - 1;
300 }
301 if cfg!(target_endian = "big") {
302 val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
303 }
304 val <<= bit_shift;
305 let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize {
306 !0usize << bit_shift
307 } else {
308 ((1usize << BIT_WIDTH) - 1) << bit_shift
309 };
310 let mut i = 0;
311 while i < bytes_needed {
312 let byte_val = (val >> (i * 8)) as u8;
313 let byte_mask = (field_mask >> (i * 8)) as u8;
314 if cfg!(target_endian = "big") {
315 let byte = self.storage[start_byte + i].reverse_bits();
316 let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
317 self.storage[start_byte + i] = new_byte.reverse_bits();
318 } else {
319 self.storage[start_byte + i] =
320 (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask);
321 }
322 i += 1;
323 }
324 } else {
325 let mut val = val;
326 if BIT_WIDTH < 64 {
327 val &= (1u64 << BIT_WIDTH) - 1;
328 }
329 if cfg!(target_endian = "big") {
330 val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
331 }
332 val <<= bit_shift;
333 let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 {
334 !0u64 << bit_shift
335 } else {
336 ((1u64 << BIT_WIDTH) - 1) << bit_shift
337 };
338 let mut i = 0;
339 while i < bytes_needed {
340 let byte_val = (val >> (i * 8)) as u8;
341 let byte_mask = (field_mask >> (i * 8)) as u8;
342 if cfg!(target_endian = "big") {
343 let byte = self.storage[start_byte + i].reverse_bits();
344 let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
345 self.storage[start_byte + i] = new_byte.reverse_bits();
346 } else {
347 self.storage[start_byte + i] =
348 (self.storage[start_byte + i] & !byte_mask) | (byte_val & byte_mask);
349 }
350 i += 1;
351 }
352 }
353 }
354 #[doc = " Raw pointer get using const generics for compile-time optimization."]
355 #[doc = " Uses native word size operations when the field fits in usize."]
356 #[inline]
357 pub const unsafe fn raw_get_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(
358 this: *const Self,
359 ) -> u64 {
360 debug_assert!(BIT_WIDTH <= 64);
361 debug_assert!(BIT_OFFSET / 8 < N);
362 debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
363 if BIT_WIDTH == 0 {
364 return 0;
365 }
366 let start_byte = BIT_OFFSET / 8;
367 let bit_shift = BIT_OFFSET % 8;
368 let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
369 let storage_ptr = unsafe { core::ptr::addr_of!((*this).storage) as *const u8 };
370 if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
371 let mut val = 0usize;
372 if cfg!(target_endian = "big") {
373 let mut i = 0;
374 while i < bytes_needed {
375 let byte = unsafe { *storage_ptr.add(start_byte + i) };
376 val |= (byte.reverse_bits() as usize) << (i * 8);
377 i += 1;
378 }
379 } else {
380 let mut i = 0;
381 while i < bytes_needed {
382 let byte = unsafe { *storage_ptr.add(start_byte + i) };
383 val |= (byte as usize) << (i * 8);
384 i += 1;
385 }
386 }
387 val >>= bit_shift;
388 if (BIT_WIDTH as u32) < usize::BITS {
389 val &= (1usize << BIT_WIDTH) - 1;
390 }
391 if cfg!(target_endian = "big") {
392 val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
393 }
394 val as u64
395 } else {
396 let mut val = 0u64;
397 if cfg!(target_endian = "big") {
398 let mut i = 0;
399 while i < bytes_needed {
400 let byte = unsafe { *storage_ptr.add(start_byte + i) };
401 val |= (byte.reverse_bits() as u64) << (i * 8);
402 i += 1;
403 }
404 } else {
405 let mut i = 0;
406 while i < bytes_needed {
407 let byte = unsafe { *storage_ptr.add(start_byte + i) };
408 val |= (byte as u64) << (i * 8);
409 i += 1;
410 }
411 }
412 val >>= bit_shift;
413 if BIT_WIDTH < 64 {
414 val &= (1u64 << BIT_WIDTH) - 1;
415 }
416 if cfg!(target_endian = "big") {
417 val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
418 }
419 val
420 }
421 }
422 #[doc = " Raw pointer set using const generics for compile-time optimization."]
423 #[doc = " Uses native word size operations when the field fits in usize."]
424 #[inline]
425 pub unsafe fn raw_set_const<const BIT_OFFSET: usize, const BIT_WIDTH: u8>(
426 this: *mut Self,
427 val: u64,
428 ) {
429 debug_assert!(BIT_WIDTH <= 64);
430 debug_assert!(BIT_OFFSET / 8 < N);
431 debug_assert!((BIT_OFFSET + (BIT_WIDTH as usize) + 7) / 8 <= N);
432 if BIT_WIDTH == 0 {
433 return;
434 }
435 let start_byte = BIT_OFFSET / 8;
436 let bit_shift = BIT_OFFSET % 8;
437 let bytes_needed = (BIT_WIDTH as usize + bit_shift + 7) / 8;
438 let storage_ptr = this.cast::<[u8; N]>().cast::<u8>();
439 if BIT_WIDTH as usize + bit_shift <= usize::BITS as usize {
440 let mut val = val as usize;
441 if (BIT_WIDTH as u32) < usize::BITS {
442 val &= (1usize << BIT_WIDTH) - 1;
443 }
444 if cfg!(target_endian = "big") {
445 val = val.reverse_bits() >> (usize::BITS as usize - BIT_WIDTH as usize);
446 }
447 val <<= bit_shift;
448 let field_mask = if BIT_WIDTH as usize + bit_shift >= usize::BITS as usize {
449 !0usize << bit_shift
450 } else {
451 ((1usize << BIT_WIDTH) - 1) << bit_shift
452 };
453 let mut i = 0;
454 while i < bytes_needed {
455 let byte_val = (val >> (i * 8)) as u8;
456 let byte_mask = (field_mask >> (i * 8)) as u8;
457 let byte_ptr = unsafe { storage_ptr.add(start_byte + i) };
458 if cfg!(target_endian = "big") {
459 let byte = unsafe { (*byte_ptr).reverse_bits() };
460 let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
461 unsafe { *byte_ptr = new_byte.reverse_bits() };
462 } else {
463 unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) };
464 }
465 i += 1;
466 }
467 } else {
468 let mut val = val;
469 if BIT_WIDTH < 64 {
470 val &= (1u64 << BIT_WIDTH) - 1;
471 }
472 if cfg!(target_endian = "big") {
473 val = val.reverse_bits() >> (64 - BIT_WIDTH as usize);
474 }
475 val <<= bit_shift;
476 let field_mask = if BIT_WIDTH as usize + bit_shift >= 64 {
477 !0u64 << bit_shift
478 } else {
479 ((1u64 << BIT_WIDTH) - 1) << bit_shift
480 };
481 let mut i = 0;
482 while i < bytes_needed {
483 let byte_val = (val >> (i * 8)) as u8;
484 let byte_mask = (field_mask >> (i * 8)) as u8;
485 let byte_ptr = unsafe { storage_ptr.add(start_byte + i) };
486 if cfg!(target_endian = "big") {
487 let byte = unsafe { (*byte_ptr).reverse_bits() };
488 let new_byte = (byte & !byte_mask) | (byte_val & byte_mask);
489 unsafe { *byte_ptr = new_byte.reverse_bits() };
490 } else {
491 unsafe { *byte_ptr = (*byte_ptr & !byte_mask) | (byte_val & byte_mask) };
492 }
493 i += 1;
494 }
495 }
496 }
497}
498pub type __clockid_t = ::std::os::raw::c_int;
499pub type clockid_t = __clockid_t;
500#[repr(C)]
501#[derive(Debug, Copy, Clone)]
502pub struct __sigset_t {
503 pub __val: [usize; 16usize],
504}
505#[repr(C)]
506#[derive(Debug, Copy, Clone)]
507pub struct __pthread_internal_list {
508 pub __prev: *mut __pthread_internal_list,
509 pub __next: *mut __pthread_internal_list,
510}
511pub type __pthread_list_t = __pthread_internal_list;
512#[repr(C)]
513#[derive(Debug, Copy, Clone)]
514pub struct __pthread_mutex_s {
515 pub __lock: ::std::os::raw::c_int,
516 pub __count: ::std::os::raw::c_uint,
517 pub __owner: ::std::os::raw::c_int,
518 pub __nusers: ::std::os::raw::c_uint,
519 pub __kind: ::std::os::raw::c_int,
520 pub __spins: ::std::os::raw::c_short,
521 pub __elision: ::std::os::raw::c_short,
522 pub __list: __pthread_list_t,
523}
524#[repr(C)]
525#[derive(Copy, Clone)]
526pub struct __pthread_cond_s {
527 pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
528 pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
529 pub __g_refs: [::std::os::raw::c_uint; 2usize],
530 pub __g_size: [::std::os::raw::c_uint; 2usize],
531 pub __g1_orig_size: ::std::os::raw::c_uint,
532 pub __wrefs: ::std::os::raw::c_uint,
533 pub __g_signals: [::std::os::raw::c_uint; 2usize],
534}
535#[repr(C)]
536#[derive(Copy, Clone)]
537pub union __pthread_cond_s__bindgen_ty_1 {
538 pub __wseq: ::std::os::raw::c_ulonglong,
539 pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
540}
541#[repr(C)]
542#[derive(Debug, Copy, Clone)]
543pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
544 pub __low: ::std::os::raw::c_uint,
545 pub __high: ::std::os::raw::c_uint,
546}
547impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_1 {
548 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
549 write!(f, "__pthread_cond_s__bindgen_ty_1 {{ union }}")
550 }
551}
552#[repr(C)]
553#[derive(Copy, Clone)]
554pub union __pthread_cond_s__bindgen_ty_2 {
555 pub __g1_start: ::std::os::raw::c_ulonglong,
556 pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
557}
558#[repr(C)]
559#[derive(Debug, Copy, Clone)]
560pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
561 pub __low: ::std::os::raw::c_uint,
562 pub __high: ::std::os::raw::c_uint,
563}
564impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_2 {
565 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
566 write!(f, "__pthread_cond_s__bindgen_ty_2 {{ union }}")
567 }
568}
569impl ::std::fmt::Debug for __pthread_cond_s {
570 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
571 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)
572 }
573}
574pub type pthread_t = usize;
575#[repr(C)]
576#[derive(Copy, Clone)]
577pub union pthread_mutex_t {
578 pub __data: __pthread_mutex_s,
579 pub __size: [::std::os::raw::c_char; 40usize],
580 pub __align: ::std::os::raw::c_long,
581}
582impl ::std::fmt::Debug for pthread_mutex_t {
583 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
584 write!(f, "pthread_mutex_t {{ union }}")
585 }
586}
587#[repr(C)]
588#[derive(Copy, Clone)]
589pub union pthread_cond_t {
590 pub __data: __pthread_cond_s,
591 pub __size: [::std::os::raw::c_char; 48usize],
592 pub __align: ::std::os::raw::c_longlong,
593}
594impl ::std::fmt::Debug for pthread_cond_t {
595 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
596 write!(f, "pthread_cond_t {{ union }}")
597 }
598}
599pub type VALUE = usize;
600pub type ID = usize;
601pub const ruby_fl_type_RUBY_FL_WB_PROTECTED: ruby_fl_type = 32;
602pub const ruby_fl_type_RUBY_FL_PROMOTED0: ruby_fl_type = 32;
603pub const ruby_fl_type_RUBY_FL_PROMOTED1: ruby_fl_type = 64;
604pub const ruby_fl_type_RUBY_FL_PROMOTED: ruby_fl_type = 96;
605pub const ruby_fl_type_RUBY_FL_FINALIZE: ruby_fl_type = 128;
606pub const ruby_fl_type_RUBY_FL_TAINT: ruby_fl_type = 256;
607pub const ruby_fl_type_RUBY_FL_UNTRUSTED: ruby_fl_type = 256;
608pub const ruby_fl_type_RUBY_FL_EXIVAR: ruby_fl_type = 1024;
609pub const ruby_fl_type_RUBY_FL_FREEZE: ruby_fl_type = 2048;
610pub const ruby_fl_type_RUBY_FL_USHIFT: ruby_fl_type = 12;
611pub const ruby_fl_type_RUBY_FL_USER0: ruby_fl_type = 4096;
612pub const ruby_fl_type_RUBY_FL_USER1: ruby_fl_type = 8192;
613pub const ruby_fl_type_RUBY_FL_USER2: ruby_fl_type = 16384;
614pub const ruby_fl_type_RUBY_FL_USER3: ruby_fl_type = 32768;
615pub const ruby_fl_type_RUBY_FL_USER4: ruby_fl_type = 65536;
616pub const ruby_fl_type_RUBY_FL_USER5: ruby_fl_type = 131072;
617pub const ruby_fl_type_RUBY_FL_USER6: ruby_fl_type = 262144;
618pub const ruby_fl_type_RUBY_FL_USER7: ruby_fl_type = 524288;
619pub const ruby_fl_type_RUBY_FL_USER8: ruby_fl_type = 1048576;
620pub const ruby_fl_type_RUBY_FL_USER9: ruby_fl_type = 2097152;
621pub const ruby_fl_type_RUBY_FL_USER10: ruby_fl_type = 4194304;
622pub const ruby_fl_type_RUBY_FL_USER11: ruby_fl_type = 8388608;
623pub const ruby_fl_type_RUBY_FL_USER12: ruby_fl_type = 16777216;
624pub const ruby_fl_type_RUBY_FL_USER13: ruby_fl_type = 33554432;
625pub const ruby_fl_type_RUBY_FL_USER14: ruby_fl_type = 67108864;
626pub const ruby_fl_type_RUBY_FL_USER15: ruby_fl_type = 134217728;
627pub const ruby_fl_type_RUBY_FL_USER16: ruby_fl_type = 268435456;
628pub const ruby_fl_type_RUBY_FL_USER17: ruby_fl_type = 536870912;
629pub const ruby_fl_type_RUBY_FL_USER18: ruby_fl_type = 1073741824;
630pub const ruby_fl_type_RUBY_FL_USER19: ruby_fl_type = -2147483648;
631pub const ruby_fl_type_RUBY_ELTS_SHARED: ruby_fl_type = 16384;
632pub const ruby_fl_type_RUBY_FL_DUPPED: ruby_fl_type = 1311;
633pub const ruby_fl_type_RUBY_FL_SINGLETON: ruby_fl_type = 4096;
634pub type ruby_fl_type = ::std::os::raw::c_int;
635#[repr(C)]
636#[derive(Debug, Copy, Clone)]
637pub struct RBasic {
638 pub flags: VALUE,
639 pub klass: VALUE,
640}
641#[repr(C)]
642#[derive(Copy, Clone)]
643pub struct RString {
644 pub basic: RBasic,
645 pub as_: RString__bindgen_ty_1,
646}
647#[repr(C)]
648#[derive(Copy, Clone)]
649pub union RString__bindgen_ty_1 {
650 pub heap: RString__bindgen_ty_1__bindgen_ty_1,
651 pub ary: [::std::os::raw::c_char; 24usize],
652}
653#[repr(C)]
654#[derive(Copy, Clone)]
655pub struct RString__bindgen_ty_1__bindgen_ty_1 {
656 pub len: ::std::os::raw::c_long,
657 pub ptr: *mut ::std::os::raw::c_char,
658 pub aux: RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
659}
660#[repr(C)]
661#[derive(Copy, Clone)]
662pub union RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
663 pub capa: ::std::os::raw::c_long,
664 pub shared: VALUE,
665}
666impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
667 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
668 write!(
669 f,
670 "RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
671 )
672 }
673}
674impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1 {
675 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
676 write!(
677 f,
678 "RString__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, ptr: {:?}, aux: {:?} }}",
679 self.len, self.ptr, self.aux
680 )
681 }
682}
683impl ::std::fmt::Debug for RString__bindgen_ty_1 {
684 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
685 write!(f, "RString__bindgen_ty_1 {{ union }}")
686 }
687}
688impl ::std::fmt::Debug for RString {
689 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
690 write!(
691 f,
692 "RString {{ basic: {:?}, as: {:?} }}",
693 self.basic, self.as_
694 )
695 }
696}
697#[repr(C)]
698#[derive(Copy, Clone)]
699pub struct RArray {
700 pub basic: RBasic,
701 pub as_: RArray__bindgen_ty_1,
702}
703#[repr(C)]
704#[derive(Copy, Clone)]
705pub union RArray__bindgen_ty_1 {
706 pub heap: RArray__bindgen_ty_1__bindgen_ty_1,
707 pub ary: [VALUE; 3usize],
708}
709#[repr(C)]
710#[derive(Copy, Clone)]
711pub struct RArray__bindgen_ty_1__bindgen_ty_1 {
712 pub len: ::std::os::raw::c_long,
713 pub aux: RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
714 pub ptr: *const VALUE,
715}
716#[repr(C)]
717#[derive(Copy, Clone)]
718pub union RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
719 pub capa: ::std::os::raw::c_long,
720 pub shared: VALUE,
721}
722impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
723 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
724 write!(
725 f,
726 "RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
727 )
728 }
729}
730impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1 {
731 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
732 write!(
733 f,
734 "RArray__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, aux: {:?}, ptr: {:?} }}",
735 self.len, self.aux, self.ptr
736 )
737 }
738}
739impl ::std::fmt::Debug for RArray__bindgen_ty_1 {
740 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
741 write!(f, "RArray__bindgen_ty_1 {{ union }}")
742 }
743}
744impl ::std::fmt::Debug for RArray {
745 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
746 write!(
747 f,
748 "RArray {{ basic: {:?}, as: {:?} }}",
749 self.basic, self.as_
750 )
751 }
752}
753pub type st_data_t = usize;
754pub type st_index_t = st_data_t;
755#[repr(C)]
756#[derive(Debug, Copy, Clone)]
757pub struct st_hash_type {
758 pub compare: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
759 pub hash: ::std::option::Option<unsafe extern "C" fn() -> st_index_t>,
760}
761#[repr(C)]
762#[derive(Copy, Clone)]
763pub struct st_table {
764 pub type_: *const st_hash_type,
765 pub num_bins: st_index_t,
766 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
767 pub as_: st_table__bindgen_ty_1,
768}
769#[repr(C)]
770#[derive(Copy, Clone)]
771pub union st_table__bindgen_ty_1 {
772 pub big: st_table__bindgen_ty_1__bindgen_ty_1,
773 pub packed: st_table__bindgen_ty_1__bindgen_ty_2,
774}
775#[repr(C)]
776#[derive(Debug, Copy, Clone)]
777pub struct st_table__bindgen_ty_1__bindgen_ty_1 {
778 pub bins: *mut *mut st_table_entry,
779 pub private_list_head: [*mut ::std::os::raw::c_void; 2usize],
780}
781#[repr(C)]
782#[derive(Debug, Copy, Clone)]
783pub struct st_table__bindgen_ty_1__bindgen_ty_2 {
784 pub entries: *mut st_packed_entry,
785 pub real_entries: st_index_t,
786}
787impl ::std::fmt::Debug for st_table__bindgen_ty_1 {
788 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
789 write!(f, "st_table__bindgen_ty_1 {{ union }}")
790 }
791}
792impl ::std::fmt::Debug for st_table {
793 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
794 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_)
795 }
796}
797impl st_table {
798 #[inline]
799 #[allow(unnecessary_transmutes)]
800 pub fn entries_packed(&self) -> ::std::os::raw::c_uint {
801 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
802 }
803 #[inline]
804 #[allow(unnecessary_transmutes)]
805 pub fn set_entries_packed(&mut self, val: ::std::os::raw::c_uint) {
806 unsafe {
807 let val: u32 = ::std::mem::transmute(val);
808 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
809 }
810 }
811 #[inline]
812 #[allow(unnecessary_transmutes)]
813 pub unsafe fn entries_packed_raw(this: *const Self) -> ::std::os::raw::c_uint {
814 unsafe {
815 ::std::mem::transmute(
816 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<0usize, 1u8>(
817 ::std::ptr::addr_of!((*this)._bitfield_1),
818 ) as u32,
819 )
820 }
821 }
822 #[inline]
823 #[allow(unnecessary_transmutes)]
824 pub unsafe fn set_entries_packed_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
825 unsafe {
826 let val: u32 = ::std::mem::transmute(val);
827 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<0usize, 1u8>(
828 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
829 val as u64,
830 )
831 }
832 }
833 #[inline]
834 #[allow(unnecessary_transmutes)]
835 pub fn num_entries(&self) -> st_index_t {
836 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 63u8>() as u64) }
837 }
838 #[inline]
839 #[allow(unnecessary_transmutes)]
840 pub fn set_num_entries(&mut self, val: st_index_t) {
841 unsafe {
842 let val: usize = ::std::mem::transmute(val);
843 self._bitfield_1.set_const::<1usize, 63u8>(val as u64)
844 }
845 }
846 #[inline]
847 #[allow(unnecessary_transmutes)]
848 pub unsafe fn num_entries_raw(this: *const Self) -> st_index_t {
849 unsafe {
850 ::std::mem::transmute(
851 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<1usize, 63u8>(
852 ::std::ptr::addr_of!((*this)._bitfield_1),
853 ) as u64,
854 )
855 }
856 }
857 #[inline]
858 #[allow(unnecessary_transmutes)]
859 pub unsafe fn set_num_entries_raw(this: *mut Self, val: st_index_t) {
860 unsafe {
861 let val: usize = ::std::mem::transmute(val);
862 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<1usize, 63u8>(
863 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
864 val as u64,
865 )
866 }
867 }
868 #[inline]
869 #[allow(unnecessary_transmutes)]
870 pub fn new_bitfield_1(
871 entries_packed: ::std::os::raw::c_uint,
872 num_entries: st_index_t,
873 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
874 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
875 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
876 let entries_packed: u32 = unsafe { ::std::mem::transmute(entries_packed) };
877 entries_packed as u64
878 });
879 __bindgen_bitfield_unit.set_const::<1usize, 63u8>({
880 let num_entries: usize = unsafe { ::std::mem::transmute(num_entries) };
881 num_entries as u64
882 });
883 __bindgen_bitfield_unit
884 }
885}
886pub type rb_alloc_func_t = ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>;
887pub type rb_unblock_function_t =
888 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
889pub type rb_event_flag_t = u32;
890pub const ruby_id_types_RUBY_ID_STATIC_SYM: ruby_id_types = 1;
891pub const ruby_id_types_RUBY_ID_LOCAL: ruby_id_types = 0;
892pub const ruby_id_types_RUBY_ID_INSTANCE: ruby_id_types = 2;
893pub const ruby_id_types_RUBY_ID_GLOBAL: ruby_id_types = 6;
894pub const ruby_id_types_RUBY_ID_ATTRSET: ruby_id_types = 8;
895pub const ruby_id_types_RUBY_ID_CONST: ruby_id_types = 10;
896pub const ruby_id_types_RUBY_ID_CLASS: ruby_id_types = 12;
897pub const ruby_id_types_RUBY_ID_JUNK: ruby_id_types = 14;
898pub const ruby_id_types_RUBY_ID_INTERNAL: ruby_id_types = 14;
899pub const ruby_id_types_RUBY_ID_SCOPE_SHIFT: ruby_id_types = 4;
900pub const ruby_id_types_RUBY_ID_SCOPE_MASK: ruby_id_types = 14;
901pub type ruby_id_types = ::std::os::raw::c_uint;
902pub const ruby_method_ids_idDot2: ruby_method_ids = 128;
903pub const ruby_method_ids_idDot3: ruby_method_ids = 129;
904pub const ruby_method_ids_idUPlus: ruby_method_ids = 130;
905pub const ruby_method_ids_idUMinus: ruby_method_ids = 131;
906pub const ruby_method_ids_idPow: ruby_method_ids = 132;
907pub const ruby_method_ids_idCmp: ruby_method_ids = 134;
908pub const ruby_method_ids_idPLUS: ruby_method_ids = 43;
909pub const ruby_method_ids_idMINUS: ruby_method_ids = 45;
910pub const ruby_method_ids_idMULT: ruby_method_ids = 42;
911pub const ruby_method_ids_idDIV: ruby_method_ids = 47;
912pub const ruby_method_ids_idMOD: ruby_method_ids = 37;
913pub const ruby_method_ids_idLTLT: ruby_method_ids = 135;
914pub const ruby_method_ids_idGTGT: ruby_method_ids = 136;
915pub const ruby_method_ids_idLT: ruby_method_ids = 60;
916pub const ruby_method_ids_idLE: ruby_method_ids = 137;
917pub const ruby_method_ids_idGT: ruby_method_ids = 62;
918pub const ruby_method_ids_idGE: ruby_method_ids = 138;
919pub const ruby_method_ids_idEq: ruby_method_ids = 139;
920pub const ruby_method_ids_idEqq: ruby_method_ids = 140;
921pub const ruby_method_ids_idNeq: ruby_method_ids = 141;
922pub const ruby_method_ids_idNot: ruby_method_ids = 33;
923pub const ruby_method_ids_idBackquote: ruby_method_ids = 96;
924pub const ruby_method_ids_idEqTilde: ruby_method_ids = 142;
925pub const ruby_method_ids_idNeqTilde: ruby_method_ids = 143;
926pub const ruby_method_ids_idAREF: ruby_method_ids = 144;
927pub const ruby_method_ids_idASET: ruby_method_ids = 145;
928pub const ruby_method_ids_idCOLON2: ruby_method_ids = 146;
929pub const ruby_method_ids_idANDOP: ruby_method_ids = 148;
930pub const ruby_method_ids_idOROP: ruby_method_ids = 149;
931pub const ruby_method_ids_idANDDOT: ruby_method_ids = 150;
932pub const ruby_method_ids_tPRESERVED_ID_BEGIN: ruby_method_ids = 150;
933pub const ruby_method_ids_idNULL: ruby_method_ids = 151;
934pub const ruby_method_ids_idEmptyP: ruby_method_ids = 152;
935pub const ruby_method_ids_idEqlP: ruby_method_ids = 153;
936pub const ruby_method_ids_idRespond_to: ruby_method_ids = 154;
937pub const ruby_method_ids_idRespond_to_missing: ruby_method_ids = 155;
938pub const ruby_method_ids_idIFUNC: ruby_method_ids = 156;
939pub const ruby_method_ids_idCFUNC: ruby_method_ids = 157;
940pub const ruby_method_ids_id_core_set_method_alias: ruby_method_ids = 158;
941pub const ruby_method_ids_id_core_set_variable_alias: ruby_method_ids = 159;
942pub const ruby_method_ids_id_core_undef_method: ruby_method_ids = 160;
943pub const ruby_method_ids_id_core_define_method: ruby_method_ids = 161;
944pub const ruby_method_ids_id_core_define_singleton_method: ruby_method_ids = 162;
945pub const ruby_method_ids_id_core_set_postexe: ruby_method_ids = 163;
946pub const ruby_method_ids_id_core_hash_from_ary: ruby_method_ids = 164;
947pub const ruby_method_ids_id_core_hash_merge_ary: ruby_method_ids = 165;
948pub const ruby_method_ids_id_core_hash_merge_ptr: ruby_method_ids = 166;
949pub const ruby_method_ids_id_core_hash_merge_kwd: ruby_method_ids = 167;
950pub const ruby_method_ids_id_debug_created_info: ruby_method_ids = 168;
951pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 169;
952pub const ruby_method_ids_tFreeze: ruby_method_ids = 170;
953pub const ruby_method_ids_tInspect: ruby_method_ids = 171;
954pub const ruby_method_ids_tIntern: ruby_method_ids = 172;
955pub const ruby_method_ids_tObject_id: ruby_method_ids = 173;
956pub const ruby_method_ids_tConst_missing: ruby_method_ids = 174;
957pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 175;
958pub const ruby_method_ids_tMethod_added: ruby_method_ids = 176;
959pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 177;
960pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 178;
961pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 179;
962pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 180;
963pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 181;
964pub const ruby_method_ids_tLength: ruby_method_ids = 182;
965pub const ruby_method_ids_tSize: ruby_method_ids = 183;
966pub const ruby_method_ids_tGets: ruby_method_ids = 184;
967pub const ruby_method_ids_tSucc: ruby_method_ids = 185;
968pub const ruby_method_ids_tEach: ruby_method_ids = 186;
969pub const ruby_method_ids_tProc: ruby_method_ids = 187;
970pub const ruby_method_ids_tLambda: ruby_method_ids = 188;
971pub const ruby_method_ids_tSend: ruby_method_ids = 189;
972pub const ruby_method_ids_t__send__: ruby_method_ids = 190;
973pub const ruby_method_ids_t__attached__: ruby_method_ids = 191;
974pub const ruby_method_ids_tInitialize: ruby_method_ids = 192;
975pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 193;
976pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 194;
977pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 195;
978pub const ruby_method_ids_tTo_int: ruby_method_ids = 196;
979pub const ruby_method_ids_tTo_ary: ruby_method_ids = 197;
980pub const ruby_method_ids_tTo_str: ruby_method_ids = 198;
981pub const ruby_method_ids_tTo_sym: ruby_method_ids = 199;
982pub const ruby_method_ids_tTo_hash: ruby_method_ids = 200;
983pub const ruby_method_ids_tTo_proc: ruby_method_ids = 201;
984pub const ruby_method_ids_tTo_io: ruby_method_ids = 202;
985pub const ruby_method_ids_tTo_a: ruby_method_ids = 203;
986pub const ruby_method_ids_tTo_s: ruby_method_ids = 204;
987pub const ruby_method_ids_tTo_i: ruby_method_ids = 205;
988pub const ruby_method_ids_tBt: ruby_method_ids = 206;
989pub const ruby_method_ids_tBt_locations: ruby_method_ids = 207;
990pub const ruby_method_ids_tCall: ruby_method_ids = 208;
991pub const ruby_method_ids_tMesg: ruby_method_ids = 209;
992pub const ruby_method_ids_tException: ruby_method_ids = 210;
993pub const ruby_method_ids_tUScore: ruby_method_ids = 211;
994pub const ruby_method_ids_tNEXT_ID: ruby_method_ids = 212;
995pub const ruby_method_ids_idFreeze: ruby_method_ids = 2721;
996pub const ruby_method_ids_idInspect: ruby_method_ids = 2737;
997pub const ruby_method_ids_idIntern: ruby_method_ids = 2753;
998pub const ruby_method_ids_idObject_id: ruby_method_ids = 2769;
999pub const ruby_method_ids_idConst_missing: ruby_method_ids = 2785;
1000pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 2801;
1001pub const ruby_method_ids_idMethod_added: ruby_method_ids = 2817;
1002pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 2833;
1003pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 2849;
1004pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 2865;
1005pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 2881;
1006pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 2897;
1007pub const ruby_method_ids_idLength: ruby_method_ids = 2913;
1008pub const ruby_method_ids_idSize: ruby_method_ids = 2929;
1009pub const ruby_method_ids_idGets: ruby_method_ids = 2945;
1010pub const ruby_method_ids_idSucc: ruby_method_ids = 2961;
1011pub const ruby_method_ids_idEach: ruby_method_ids = 2977;
1012pub const ruby_method_ids_idProc: ruby_method_ids = 2993;
1013pub const ruby_method_ids_idLambda: ruby_method_ids = 3009;
1014pub const ruby_method_ids_idSend: ruby_method_ids = 3025;
1015pub const ruby_method_ids_id__send__: ruby_method_ids = 3041;
1016pub const ruby_method_ids_id__attached__: ruby_method_ids = 3057;
1017pub const ruby_method_ids_idInitialize: ruby_method_ids = 3073;
1018pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 3089;
1019pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 3105;
1020pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 3121;
1021pub const ruby_method_ids_idTo_int: ruby_method_ids = 3137;
1022pub const ruby_method_ids_idTo_ary: ruby_method_ids = 3153;
1023pub const ruby_method_ids_idTo_str: ruby_method_ids = 3169;
1024pub const ruby_method_ids_idTo_sym: ruby_method_ids = 3185;
1025pub const ruby_method_ids_idTo_hash: ruby_method_ids = 3201;
1026pub const ruby_method_ids_idTo_proc: ruby_method_ids = 3217;
1027pub const ruby_method_ids_idTo_io: ruby_method_ids = 3233;
1028pub const ruby_method_ids_idTo_a: ruby_method_ids = 3249;
1029pub const ruby_method_ids_idTo_s: ruby_method_ids = 3265;
1030pub const ruby_method_ids_idTo_i: ruby_method_ids = 3281;
1031pub const ruby_method_ids_idBt: ruby_method_ids = 3297;
1032pub const ruby_method_ids_idBt_locations: ruby_method_ids = 3313;
1033pub const ruby_method_ids_idCall: ruby_method_ids = 3329;
1034pub const ruby_method_ids_idMesg: ruby_method_ids = 3345;
1035pub const ruby_method_ids_idException: ruby_method_ids = 3361;
1036pub const ruby_method_ids_idUScore: ruby_method_ids = 3377;
1037pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 168;
1038pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 10;
1039pub type ruby_method_ids = ::std::os::raw::c_uint;
1040pub type rb_subclass_entry_t = rb_subclass_entry;
1041#[repr(C)]
1042#[derive(Debug, Copy, Clone)]
1043pub struct rb_subclass_entry {
1044 pub klass: VALUE,
1045 pub next: *mut rb_subclass_entry_t,
1046}
1047pub type rb_serial_t = ::std::os::raw::c_ulonglong;
1048#[repr(C)]
1049#[derive(Debug, Copy, Clone)]
1050pub struct rb_classext_struct {
1051 pub iv_index_tbl: *mut st_table,
1052 pub iv_tbl: *mut st_table,
1053 pub const_tbl: *mut st_table,
1054 pub callable_m_tbl: *mut rb_id_table,
1055 pub subclasses: *mut rb_subclass_entry_t,
1056 pub parent_subclasses: *mut *mut rb_subclass_entry_t,
1057 pub module_subclasses: *mut *mut rb_subclass_entry_t,
1058 pub class_serial: rb_serial_t,
1059 pub origin_: VALUE,
1060 pub refined_class: VALUE,
1061 pub allocator: rb_alloc_func_t,
1062}
1063pub type rb_classext_t = rb_classext_struct;
1064pub const imemo_type_imemo_none: imemo_type = 0;
1065pub const imemo_type_imemo_cref: imemo_type = 1;
1066pub const imemo_type_imemo_svar: imemo_type = 2;
1067pub const imemo_type_imemo_throw_data: imemo_type = 3;
1068pub const imemo_type_imemo_ifunc: imemo_type = 4;
1069pub const imemo_type_imemo_memo: imemo_type = 5;
1070pub const imemo_type_imemo_ment: imemo_type = 6;
1071pub const imemo_type_imemo_iseq: imemo_type = 7;
1072pub const imemo_type_imemo_mask: imemo_type = 7;
1073pub type imemo_type = ::std::os::raw::c_uint;
1074#[repr(C)]
1075#[derive(Debug, Copy, Clone)]
1076pub struct vm_svar {
1077 pub flags: VALUE,
1078 pub cref_or_me: VALUE,
1079 pub lastline: VALUE,
1080 pub backref: VALUE,
1081 pub others: VALUE,
1082}
1083pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
1084pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
1085pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
1086pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
1087pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
1088pub type rb_method_visibility_t = ::std::os::raw::c_uint;
1089#[repr(C)]
1090#[derive(Debug, Copy, Clone)]
1091pub struct rb_scope_visi_struct {
1092 pub _bindgen_align: [u32; 0],
1093 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1094 pub __bindgen_padding_0: [u8; 3usize],
1095}
1096impl rb_scope_visi_struct {
1097 #[inline]
1098 #[allow(unnecessary_transmutes)]
1099 pub fn method_visi(&self) -> rb_method_visibility_t {
1100 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 3u8>() as u32) }
1101 }
1102 #[inline]
1103 #[allow(unnecessary_transmutes)]
1104 pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
1105 unsafe {
1106 let val: u32 = ::std::mem::transmute(val);
1107 self._bitfield_1.set_const::<0usize, 3u8>(val as u64)
1108 }
1109 }
1110 #[inline]
1111 #[allow(unnecessary_transmutes)]
1112 pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
1113 unsafe {
1114 ::std::mem::transmute(
1115 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 3u8>(
1116 ::std::ptr::addr_of!((*this)._bitfield_1),
1117 ) as u32,
1118 )
1119 }
1120 }
1121 #[inline]
1122 #[allow(unnecessary_transmutes)]
1123 pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
1124 unsafe {
1125 let val: u32 = ::std::mem::transmute(val);
1126 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 3u8>(
1127 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1128 val as u64,
1129 )
1130 }
1131 }
1132 #[inline]
1133 #[allow(unnecessary_transmutes)]
1134 pub fn module_func(&self) -> ::std::os::raw::c_uint {
1135 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1136 }
1137 #[inline]
1138 #[allow(unnecessary_transmutes)]
1139 pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
1140 unsafe {
1141 let val: u32 = ::std::mem::transmute(val);
1142 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1143 }
1144 }
1145 #[inline]
1146 #[allow(unnecessary_transmutes)]
1147 pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
1148 unsafe {
1149 ::std::mem::transmute(
1150 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
1151 ::std::ptr::addr_of!((*this)._bitfield_1),
1152 ) as u32,
1153 )
1154 }
1155 }
1156 #[inline]
1157 #[allow(unnecessary_transmutes)]
1158 pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1159 unsafe {
1160 let val: u32 = ::std::mem::transmute(val);
1161 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
1162 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1163 val as u64,
1164 )
1165 }
1166 }
1167 #[inline]
1168 #[allow(unnecessary_transmutes)]
1169 pub fn new_bitfield_1(
1170 method_visi: rb_method_visibility_t,
1171 module_func: ::std::os::raw::c_uint,
1172 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1173 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1174 __bindgen_bitfield_unit.set_const::<0usize, 3u8>({
1175 let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
1176 method_visi as u64
1177 });
1178 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
1179 let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
1180 module_func as u64
1181 });
1182 __bindgen_bitfield_unit
1183 }
1184}
1185pub type rb_scope_visibility_t = rb_scope_visi_struct;
1186#[repr(C)]
1187#[derive(Debug, Copy, Clone)]
1188pub struct rb_cref_struct {
1189 pub flags: VALUE,
1190 pub refinements: VALUE,
1191 pub klass: VALUE,
1192 pub next: *mut rb_cref_struct,
1193 pub scope_visi: rb_scope_visibility_t,
1194}
1195pub type rb_cref_t = rb_cref_struct;
1196#[repr(C)]
1197#[derive(Debug, Copy, Clone)]
1198pub struct rb_method_entry_struct {
1199 pub flags: VALUE,
1200 pub defined_class: VALUE,
1201 pub def: *mut rb_method_definition_struct,
1202 pub called_id: ID,
1203 pub owner: VALUE,
1204}
1205#[repr(C)]
1206#[derive(Debug, Copy, Clone)]
1207pub struct rb_callable_method_entry_struct {
1208 pub flags: VALUE,
1209 pub defined_class: VALUE,
1210 pub def: *mut rb_method_definition_struct,
1211 pub called_id: ID,
1212 pub owner: VALUE,
1213}
1214pub type rb_callable_method_entry_t = rb_callable_method_entry_struct;
1215pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
1216pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
1217pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
1218pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
1219pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
1220pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
1221pub const rb_method_type_t_VM_METHOD_TYPE_ALIAS: rb_method_type_t = 6;
1222pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 7;
1223pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 8;
1224pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 9;
1225pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 10;
1226pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 11;
1227pub type rb_method_type_t = ::std::os::raw::c_uint;
1228pub type rb_iseq_t = rb_iseq_struct;
1229#[repr(C)]
1230#[derive(Debug, Copy, Clone)]
1231pub struct rb_method_iseq_struct {
1232 pub iseqptr: *const rb_iseq_t,
1233 pub cref: *mut rb_cref_t,
1234}
1235pub type rb_method_iseq_t = rb_method_iseq_struct;
1236#[repr(C)]
1237#[derive(Debug, Copy, Clone)]
1238pub struct rb_method_cfunc_struct {
1239 pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1240 pub invoker: ::std::option::Option<
1241 unsafe extern "C" fn(
1242 func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1243 recv: VALUE,
1244 argc: ::std::os::raw::c_int,
1245 argv: *const VALUE,
1246 ) -> VALUE,
1247 >,
1248 pub argc: ::std::os::raw::c_int,
1249}
1250pub type rb_method_cfunc_t = rb_method_cfunc_struct;
1251#[repr(C)]
1252#[derive(Debug, Copy, Clone)]
1253pub struct rb_method_attr_struct {
1254 pub id: ID,
1255 pub location: VALUE,
1256}
1257pub type rb_method_attr_t = rb_method_attr_struct;
1258#[repr(C)]
1259#[derive(Debug, Copy, Clone)]
1260pub struct rb_method_alias_struct {
1261 pub original_me: *const rb_method_entry_struct,
1262}
1263pub type rb_method_alias_t = rb_method_alias_struct;
1264#[repr(C)]
1265#[derive(Debug, Copy, Clone)]
1266pub struct rb_method_refined_struct {
1267 pub orig_me: *const rb_method_entry_struct,
1268 pub owner: VALUE,
1269}
1270pub type rb_method_refined_t = rb_method_refined_struct;
1271#[repr(C)]
1272#[derive(Copy, Clone)]
1273pub struct rb_method_definition_struct {
1274 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 12usize]>,
1275 pub body: rb_method_definition_struct__bindgen_ty_1,
1276 pub original_id: ID,
1277}
1278#[repr(C)]
1279#[derive(Copy, Clone)]
1280pub union rb_method_definition_struct__bindgen_ty_1 {
1281 pub iseq: rb_method_iseq_t,
1282 pub cfunc: rb_method_cfunc_t,
1283 pub attr: rb_method_attr_t,
1284 pub alias: rb_method_alias_t,
1285 pub refined: rb_method_refined_t,
1286 pub proc_: VALUE,
1287 pub optimize_type: rb_method_definition_struct__bindgen_ty_1_method_optimized_type,
1288}
1289pub 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 ;
1290pub 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 ;
1291pub 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 ;
1292pub type rb_method_definition_struct__bindgen_ty_1_method_optimized_type = ::std::os::raw::c_uint;
1293impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
1294 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1295 write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
1296 }
1297}
1298impl rb_method_definition_struct {
1299 #[inline]
1300 #[allow(unnecessary_transmutes)]
1301 pub fn type_(&self) -> rb_method_type_t {
1302 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 8u8>() as u32) }
1303 }
1304 #[inline]
1305 #[allow(unnecessary_transmutes)]
1306 pub fn set_type(&mut self, val: rb_method_type_t) {
1307 unsafe {
1308 let val: u32 = ::std::mem::transmute(val);
1309 self._bitfield_1.set_const::<0usize, 8u8>(val as u64)
1310 }
1311 }
1312 #[inline]
1313 #[allow(unnecessary_transmutes)]
1314 pub unsafe fn type__raw(this: *const Self) -> rb_method_type_t {
1315 unsafe {
1316 ::std::mem::transmute(
1317 <__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get_const::<0usize, 8u8>(
1318 ::std::ptr::addr_of!((*this)._bitfield_1),
1319 ) as u32,
1320 )
1321 }
1322 }
1323 #[inline]
1324 #[allow(unnecessary_transmutes)]
1325 pub unsafe fn set_type_raw(this: *mut Self, val: rb_method_type_t) {
1326 unsafe {
1327 let val: u32 = ::std::mem::transmute(val);
1328 <__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set_const::<0usize, 8u8>(
1329 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1330 val as u64,
1331 )
1332 }
1333 }
1334 #[inline]
1335 #[allow(unnecessary_transmutes)]
1336 pub fn alias_count(&self) -> ::std::os::raw::c_int {
1337 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<32usize, 28u8>() as u32) }
1338 }
1339 #[inline]
1340 #[allow(unnecessary_transmutes)]
1341 pub fn set_alias_count(&mut self, val: ::std::os::raw::c_int) {
1342 unsafe {
1343 let val: u32 = ::std::mem::transmute(val);
1344 self._bitfield_1.set_const::<32usize, 28u8>(val as u64)
1345 }
1346 }
1347 #[inline]
1348 #[allow(unnecessary_transmutes)]
1349 pub unsafe fn alias_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1350 unsafe {
1351 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get_const::<
1352 32usize,
1353 28u8,
1354 >(::std::ptr::addr_of!((*this)._bitfield_1))
1355 as u32)
1356 }
1357 }
1358 #[inline]
1359 #[allow(unnecessary_transmutes)]
1360 pub unsafe fn set_alias_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1361 unsafe {
1362 let val: u32 = ::std::mem::transmute(val);
1363 <__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set_const::<32usize, 28u8>(
1364 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1365 val as u64,
1366 )
1367 }
1368 }
1369 #[inline]
1370 #[allow(unnecessary_transmutes)]
1371 pub fn complemented_count(&self) -> ::std::os::raw::c_int {
1372 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<64usize, 28u8>() as u32) }
1373 }
1374 #[inline]
1375 #[allow(unnecessary_transmutes)]
1376 pub fn set_complemented_count(&mut self, val: ::std::os::raw::c_int) {
1377 unsafe {
1378 let val: u32 = ::std::mem::transmute(val);
1379 self._bitfield_1.set_const::<64usize, 28u8>(val as u64)
1380 }
1381 }
1382 #[inline]
1383 #[allow(unnecessary_transmutes)]
1384 pub unsafe fn complemented_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1385 unsafe {
1386 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 12usize]>>::raw_get_const::<
1387 64usize,
1388 28u8,
1389 >(::std::ptr::addr_of!((*this)._bitfield_1))
1390 as u32)
1391 }
1392 }
1393 #[inline]
1394 #[allow(unnecessary_transmutes)]
1395 pub unsafe fn set_complemented_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1396 unsafe {
1397 let val: u32 = ::std::mem::transmute(val);
1398 <__BindgenBitfieldUnit<[u8; 12usize]>>::raw_set_const::<64usize, 28u8>(
1399 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1400 val as u64,
1401 )
1402 }
1403 }
1404 #[inline]
1405 #[allow(unnecessary_transmutes)]
1406 pub fn new_bitfield_1(
1407 type_: rb_method_type_t,
1408 alias_count: ::std::os::raw::c_int,
1409 complemented_count: ::std::os::raw::c_int,
1410 ) -> __BindgenBitfieldUnit<[u8; 12usize]> {
1411 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 12usize]> = Default::default();
1412 __bindgen_bitfield_unit.set_const::<0usize, 8u8>({
1413 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1414 type_ as u64
1415 });
1416 __bindgen_bitfield_unit.set_const::<32usize, 28u8>({
1417 let alias_count: u32 = unsafe { ::std::mem::transmute(alias_count) };
1418 alias_count as u64
1419 });
1420 __bindgen_bitfield_unit.set_const::<64usize, 28u8>({
1421 let complemented_count: u32 = unsafe { ::std::mem::transmute(complemented_count) };
1422 complemented_count as u64
1423 });
1424 __bindgen_bitfield_unit
1425 }
1426}
1427pub type rb_atomic_t = ::std::os::raw::c_uint;
1428#[repr(C)]
1429#[derive(Debug, Copy, Clone)]
1430pub struct list_node {
1431 pub next: *mut list_node,
1432 pub prev: *mut list_node,
1433}
1434#[repr(C)]
1435#[derive(Debug, Copy, Clone)]
1436pub struct list_head {
1437 pub n: list_node,
1438}
1439pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
1440pub type rb_nativethread_id_t = pthread_t;
1441pub type rb_nativethread_lock_t = pthread_mutex_t;
1442#[repr(C)]
1443#[derive(Copy, Clone)]
1444pub struct rb_thread_cond_struct {
1445 pub cond: pthread_cond_t,
1446 pub clockid: clockid_t,
1447}
1448impl ::std::fmt::Debug for rb_thread_cond_struct {
1449 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1450 write!(
1451 f,
1452 "rb_thread_cond_struct {{ cond: {:?}, clockid: {:?} }}",
1453 self.cond, self.clockid
1454 )
1455 }
1456}
1457pub type rb_nativethread_cond_t = rb_thread_cond_struct;
1458#[repr(C)]
1459#[derive(Copy, Clone)]
1460pub struct native_thread_data_struct {
1461 pub ubf_list: list_node,
1462 pub sleep_cond: rb_nativethread_cond_t,
1463}
1464impl ::std::fmt::Debug for native_thread_data_struct {
1465 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1466 write!(
1467 f,
1468 "native_thread_data_struct {{ ubf_list: {:?}, sleep_cond: {:?} }}",
1469 self.ubf_list, self.sleep_cond
1470 )
1471 }
1472}
1473pub type native_thread_data_t = native_thread_data_struct;
1474#[repr(C)]
1475#[derive(Copy, Clone)]
1476pub struct rb_global_vm_lock_struct {
1477 pub acquired: ::std::os::raw::c_ulong,
1478 pub lock: rb_nativethread_lock_t,
1479 pub waiting: ::std::os::raw::c_ulong,
1480 pub cond: rb_nativethread_cond_t,
1481 pub switch_cond: rb_nativethread_cond_t,
1482 pub switch_wait_cond: rb_nativethread_cond_t,
1483 pub need_yield: ::std::os::raw::c_int,
1484 pub wait_yield: ::std::os::raw::c_int,
1485}
1486impl ::std::fmt::Debug for rb_global_vm_lock_struct {
1487 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1488 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)
1489 }
1490}
1491pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
1492#[repr(C)]
1493#[derive(Debug, Copy, Clone)]
1494pub struct __jmp_buf_tag {
1495 pub __jmpbuf: __jmp_buf,
1496 pub __mask_was_saved: ::std::os::raw::c_int,
1497 pub __saved_mask: __sigset_t,
1498}
1499pub type jmp_buf = [__jmp_buf_tag; 1usize];
1500pub type rb_compile_option_t = rb_compile_option_struct;
1501#[repr(C)]
1502#[derive(Copy, Clone)]
1503pub struct iseq_inline_cache_entry {
1504 pub ic_serial: rb_serial_t,
1505 pub ic_cref: *const rb_cref_t,
1506 pub ic_value: iseq_inline_cache_entry__bindgen_ty_1,
1507}
1508#[repr(C)]
1509#[derive(Copy, Clone)]
1510pub union iseq_inline_cache_entry__bindgen_ty_1 {
1511 pub index: usize,
1512 pub value: VALUE,
1513}
1514impl ::std::fmt::Debug for iseq_inline_cache_entry__bindgen_ty_1 {
1515 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1516 write!(f, "iseq_inline_cache_entry__bindgen_ty_1 {{ union }}")
1517 }
1518}
1519impl ::std::fmt::Debug for iseq_inline_cache_entry {
1520 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1521 write!(
1522 f,
1523 "iseq_inline_cache_entry {{ ic_serial: {:?}, ic_cref: {:?}, ic_value: {:?} }}",
1524 self.ic_serial, self.ic_cref, self.ic_value
1525 )
1526 }
1527}
1528#[repr(C)]
1529#[derive(Copy, Clone)]
1530pub union iseq_inline_storage_entry {
1531 pub once: iseq_inline_storage_entry__bindgen_ty_1,
1532 pub cache: iseq_inline_cache_entry,
1533}
1534#[repr(C)]
1535#[derive(Debug, Copy, Clone)]
1536pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1537 pub running_thread: *mut rb_thread_struct,
1538 pub value: VALUE,
1539}
1540impl ::std::fmt::Debug for iseq_inline_storage_entry {
1541 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1542 write!(f, "iseq_inline_storage_entry {{ union }}")
1543 }
1544}
1545pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
1546pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
1547pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
1548pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 4;
1549pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 8;
1550pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 16;
1551pub const method_missing_reason_MISSING_NONE: method_missing_reason = 32;
1552pub type method_missing_reason = ::std::os::raw::c_uint;
1553#[repr(C)]
1554#[derive(Debug, Copy, Clone)]
1555pub struct rb_call_info {
1556 pub mid: ID,
1557 pub flag: ::std::os::raw::c_uint,
1558 pub orig_argc: ::std::os::raw::c_int,
1559}
1560#[repr(C)]
1561#[derive(Debug, Copy, Clone)]
1562pub struct rb_calling_info {
1563 pub blockptr: *mut rb_block_struct,
1564 pub recv: VALUE,
1565 pub argc: ::std::os::raw::c_int,
1566}
1567pub type vm_call_handler = ::std::option::Option<
1568 unsafe extern "C" fn(
1569 th: *mut rb_thread_struct,
1570 cfp: *mut rb_control_frame_struct,
1571 calling: *mut rb_calling_info,
1572 ci: *const rb_call_info,
1573 cc: *mut rb_call_cache,
1574 ) -> VALUE,
1575>;
1576#[repr(C)]
1577#[derive(Copy, Clone)]
1578pub struct rb_call_cache {
1579 pub method_state: rb_serial_t,
1580 pub class_serial: rb_serial_t,
1581 pub me: *const rb_callable_method_entry_t,
1582 pub call: vm_call_handler,
1583 pub aux: rb_call_cache__bindgen_ty_1,
1584}
1585#[repr(C)]
1586#[derive(Copy, Clone)]
1587pub union rb_call_cache__bindgen_ty_1 {
1588 pub index: ::std::os::raw::c_uint,
1589 pub method_missing_reason: method_missing_reason,
1590 pub inc_sp: ::std::os::raw::c_int,
1591}
1592impl ::std::fmt::Debug for rb_call_cache__bindgen_ty_1 {
1593 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1594 write!(f, "rb_call_cache__bindgen_ty_1 {{ union }}")
1595 }
1596}
1597impl ::std::fmt::Debug for rb_call_cache {
1598 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1599 write ! (f , "rb_call_cache {{ method_state: {:?}, class_serial: {:?}, me: {:?}, call: {:?}, aux: {:?} }}" , self . method_state , self . class_serial , self . me , self . call , self . aux)
1600 }
1601}
1602#[repr(C)]
1603#[derive(Debug, Copy, Clone)]
1604pub struct rb_iseq_location_struct {
1605 pub path: VALUE,
1606 pub absolute_path: VALUE,
1607 pub base_label: VALUE,
1608 pub label: VALUE,
1609 pub first_lineno: VALUE,
1610}
1611pub type rb_iseq_location_t = rb_iseq_location_struct;
1612#[repr(C)]
1613#[derive(Debug, Copy, Clone)]
1614pub struct rb_iseq_constant_body {
1615 pub type_: rb_iseq_constant_body_iseq_type,
1616 pub stack_max: ::std::os::raw::c_uint,
1617 pub local_size: ::std::os::raw::c_uint,
1618 pub iseq_size: ::std::os::raw::c_uint,
1619 pub iseq_encoded: *const VALUE,
1620 pub param: rb_iseq_constant_body__bindgen_ty_1,
1621 pub location: rb_iseq_location_t,
1622 pub line_info_table: *const iseq_line_info_entry,
1623 pub local_table: *const ID,
1624 pub catch_table: *const iseq_catch_table,
1625 pub parent_iseq: *const rb_iseq_struct,
1626 pub local_iseq: *mut rb_iseq_struct,
1627 pub is_entries: *mut iseq_inline_storage_entry,
1628 pub ci_entries: *mut rb_call_info,
1629 pub cc_entries: *mut rb_call_cache,
1630 pub mark_ary: VALUE,
1631 pub local_table_size: ::std::os::raw::c_uint,
1632 pub is_size: ::std::os::raw::c_uint,
1633 pub ci_size: ::std::os::raw::c_uint,
1634 pub ci_kw_size: ::std::os::raw::c_uint,
1635 pub line_info_size: ::std::os::raw::c_uint,
1636}
1637pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_TOP: rb_iseq_constant_body_iseq_type = 0;
1638pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_constant_body_iseq_type = 1;
1639pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_constant_body_iseq_type = 2;
1640pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_constant_body_iseq_type = 3;
1641pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_constant_body_iseq_type = 4;
1642pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_constant_body_iseq_type = 5;
1643pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_constant_body_iseq_type = 6;
1644pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_constant_body_iseq_type = 7;
1645pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_DEFINED_GUARD: rb_iseq_constant_body_iseq_type =
1646 8;
1647pub type rb_iseq_constant_body_iseq_type = ::std::os::raw::c_uint;
1648#[repr(C)]
1649#[derive(Debug, Copy, Clone)]
1650pub struct rb_iseq_constant_body__bindgen_ty_1 {
1651 pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1652 pub size: ::std::os::raw::c_uint,
1653 pub lead_num: ::std::os::raw::c_int,
1654 pub opt_num: ::std::os::raw::c_int,
1655 pub rest_start: ::std::os::raw::c_int,
1656 pub post_start: ::std::os::raw::c_int,
1657 pub post_num: ::std::os::raw::c_int,
1658 pub block_start: ::std::os::raw::c_int,
1659 pub opt_table: *const VALUE,
1660 pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1661}
1662#[repr(C)]
1663#[derive(Debug, Copy, Clone)]
1664pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1665 pub _bindgen_align: [u32; 0],
1666 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1667 pub __bindgen_padding_0: [u8; 3usize],
1668}
1669impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1670 #[inline]
1671 #[allow(unnecessary_transmutes)]
1672 pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1673 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
1674 }
1675 #[inline]
1676 #[allow(unnecessary_transmutes)]
1677 pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1678 unsafe {
1679 let val: u32 = ::std::mem::transmute(val);
1680 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
1681 }
1682 }
1683 #[inline]
1684 #[allow(unnecessary_transmutes)]
1685 pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1686 unsafe {
1687 ::std::mem::transmute(
1688 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
1689 ::std::ptr::addr_of!((*this)._bitfield_1),
1690 ) as u32,
1691 )
1692 }
1693 }
1694 #[inline]
1695 #[allow(unnecessary_transmutes)]
1696 pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1697 unsafe {
1698 let val: u32 = ::std::mem::transmute(val);
1699 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
1700 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1701 val as u64,
1702 )
1703 }
1704 }
1705 #[inline]
1706 #[allow(unnecessary_transmutes)]
1707 pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1708 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
1709 }
1710 #[inline]
1711 #[allow(unnecessary_transmutes)]
1712 pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1713 unsafe {
1714 let val: u32 = ::std::mem::transmute(val);
1715 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
1716 }
1717 }
1718 #[inline]
1719 #[allow(unnecessary_transmutes)]
1720 pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1721 unsafe {
1722 ::std::mem::transmute(
1723 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
1724 ::std::ptr::addr_of!((*this)._bitfield_1),
1725 ) as u32,
1726 )
1727 }
1728 }
1729 #[inline]
1730 #[allow(unnecessary_transmutes)]
1731 pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1732 unsafe {
1733 let val: u32 = ::std::mem::transmute(val);
1734 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
1735 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1736 val as u64,
1737 )
1738 }
1739 }
1740 #[inline]
1741 #[allow(unnecessary_transmutes)]
1742 pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1743 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
1744 }
1745 #[inline]
1746 #[allow(unnecessary_transmutes)]
1747 pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1748 unsafe {
1749 let val: u32 = ::std::mem::transmute(val);
1750 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
1751 }
1752 }
1753 #[inline]
1754 #[allow(unnecessary_transmutes)]
1755 pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1756 unsafe {
1757 ::std::mem::transmute(
1758 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
1759 ::std::ptr::addr_of!((*this)._bitfield_1),
1760 ) as u32,
1761 )
1762 }
1763 }
1764 #[inline]
1765 #[allow(unnecessary_transmutes)]
1766 pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1767 unsafe {
1768 let val: u32 = ::std::mem::transmute(val);
1769 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
1770 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1771 val as u64,
1772 )
1773 }
1774 }
1775 #[inline]
1776 #[allow(unnecessary_transmutes)]
1777 pub fn has_post(&self) -> ::std::os::raw::c_uint {
1778 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1779 }
1780 #[inline]
1781 #[allow(unnecessary_transmutes)]
1782 pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1783 unsafe {
1784 let val: u32 = ::std::mem::transmute(val);
1785 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1786 }
1787 }
1788 #[inline]
1789 #[allow(unnecessary_transmutes)]
1790 pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1791 unsafe {
1792 ::std::mem::transmute(
1793 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
1794 ::std::ptr::addr_of!((*this)._bitfield_1),
1795 ) as u32,
1796 )
1797 }
1798 }
1799 #[inline]
1800 #[allow(unnecessary_transmutes)]
1801 pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1802 unsafe {
1803 let val: u32 = ::std::mem::transmute(val);
1804 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
1805 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1806 val as u64,
1807 )
1808 }
1809 }
1810 #[inline]
1811 #[allow(unnecessary_transmutes)]
1812 pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1813 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
1814 }
1815 #[inline]
1816 #[allow(unnecessary_transmutes)]
1817 pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1818 unsafe {
1819 let val: u32 = ::std::mem::transmute(val);
1820 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
1821 }
1822 }
1823 #[inline]
1824 #[allow(unnecessary_transmutes)]
1825 pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1826 unsafe {
1827 ::std::mem::transmute(
1828 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
1829 ::std::ptr::addr_of!((*this)._bitfield_1),
1830 ) as u32,
1831 )
1832 }
1833 }
1834 #[inline]
1835 #[allow(unnecessary_transmutes)]
1836 pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1837 unsafe {
1838 let val: u32 = ::std::mem::transmute(val);
1839 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
1840 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1841 val as u64,
1842 )
1843 }
1844 }
1845 #[inline]
1846 #[allow(unnecessary_transmutes)]
1847 pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1848 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
1849 }
1850 #[inline]
1851 #[allow(unnecessary_transmutes)]
1852 pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1853 unsafe {
1854 let val: u32 = ::std::mem::transmute(val);
1855 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
1856 }
1857 }
1858 #[inline]
1859 #[allow(unnecessary_transmutes)]
1860 pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1861 unsafe {
1862 ::std::mem::transmute(
1863 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
1864 ::std::ptr::addr_of!((*this)._bitfield_1),
1865 ) as u32,
1866 )
1867 }
1868 }
1869 #[inline]
1870 #[allow(unnecessary_transmutes)]
1871 pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1872 unsafe {
1873 let val: u32 = ::std::mem::transmute(val);
1874 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
1875 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1876 val as u64,
1877 )
1878 }
1879 }
1880 #[inline]
1881 #[allow(unnecessary_transmutes)]
1882 pub fn has_block(&self) -> ::std::os::raw::c_uint {
1883 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
1884 }
1885 #[inline]
1886 #[allow(unnecessary_transmutes)]
1887 pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1888 unsafe {
1889 let val: u32 = ::std::mem::transmute(val);
1890 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
1891 }
1892 }
1893 #[inline]
1894 #[allow(unnecessary_transmutes)]
1895 pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1896 unsafe {
1897 ::std::mem::transmute(
1898 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(
1899 ::std::ptr::addr_of!((*this)._bitfield_1),
1900 ) as u32,
1901 )
1902 }
1903 }
1904 #[inline]
1905 #[allow(unnecessary_transmutes)]
1906 pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1907 unsafe {
1908 let val: u32 = ::std::mem::transmute(val);
1909 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(
1910 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1911 val as u64,
1912 )
1913 }
1914 }
1915 #[inline]
1916 #[allow(unnecessary_transmutes)]
1917 pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1918 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
1919 }
1920 #[inline]
1921 #[allow(unnecessary_transmutes)]
1922 pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1923 unsafe {
1924 let val: u32 = ::std::mem::transmute(val);
1925 self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
1926 }
1927 }
1928 #[inline]
1929 #[allow(unnecessary_transmutes)]
1930 pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1931 unsafe {
1932 ::std::mem::transmute(
1933 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<7usize, 1u8>(
1934 ::std::ptr::addr_of!((*this)._bitfield_1),
1935 ) as u32,
1936 )
1937 }
1938 }
1939 #[inline]
1940 #[allow(unnecessary_transmutes)]
1941 pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1942 unsafe {
1943 let val: u32 = ::std::mem::transmute(val);
1944 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<7usize, 1u8>(
1945 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1946 val as u64,
1947 )
1948 }
1949 }
1950 #[inline]
1951 #[allow(unnecessary_transmutes)]
1952 pub fn new_bitfield_1(
1953 has_lead: ::std::os::raw::c_uint,
1954 has_opt: ::std::os::raw::c_uint,
1955 has_rest: ::std::os::raw::c_uint,
1956 has_post: ::std::os::raw::c_uint,
1957 has_kw: ::std::os::raw::c_uint,
1958 has_kwrest: ::std::os::raw::c_uint,
1959 has_block: ::std::os::raw::c_uint,
1960 ambiguous_param0: ::std::os::raw::c_uint,
1961 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1962 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1963 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
1964 let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1965 has_lead as u64
1966 });
1967 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
1968 let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1969 has_opt as u64
1970 });
1971 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
1972 let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1973 has_rest as u64
1974 });
1975 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
1976 let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1977 has_post as u64
1978 });
1979 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
1980 let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1981 has_kw as u64
1982 });
1983 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
1984 let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1985 has_kwrest as u64
1986 });
1987 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
1988 let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1989 has_block as u64
1990 });
1991 __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
1992 let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
1993 ambiguous_param0 as u64
1994 });
1995 __bindgen_bitfield_unit
1996 }
1997}
1998#[repr(C)]
1999#[derive(Debug, Copy, Clone)]
2000pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
2001 pub num: ::std::os::raw::c_int,
2002 pub required_num: ::std::os::raw::c_int,
2003 pub bits_start: ::std::os::raw::c_int,
2004 pub rest_start: ::std::os::raw::c_int,
2005 pub table: *const ID,
2006 pub default_values: *const VALUE,
2007}
2008#[repr(C)]
2009#[derive(Copy, Clone)]
2010pub struct rb_iseq_struct {
2011 pub flags: VALUE,
2012 pub reserved1: VALUE,
2013 pub body: *mut rb_iseq_constant_body,
2014 pub aux: rb_iseq_struct__bindgen_ty_1,
2015}
2016#[repr(C)]
2017#[derive(Copy, Clone)]
2018pub union rb_iseq_struct__bindgen_ty_1 {
2019 pub compile_data: *mut iseq_compile_data,
2020 pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
2021}
2022#[repr(C)]
2023#[derive(Debug, Copy, Clone)]
2024pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
2025 pub obj: VALUE,
2026 pub index: ::std::os::raw::c_int,
2027}
2028impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
2029 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2030 write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
2031 }
2032}
2033impl ::std::fmt::Debug for rb_iseq_struct {
2034 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2035 write!(
2036 f,
2037 "rb_iseq_struct {{ flags: {:?}, reserved1: {:?}, body: {:?}, aux: {:?} }}",
2038 self.flags, self.reserved1, self.body, self.aux
2039 )
2040 }
2041}
2042#[repr(C)]
2043#[derive(Debug)]
2044pub struct rb_objspace {
2045 _unused: [u8; 0],
2046}
2047#[repr(C)]
2048#[derive(Debug, Copy, Clone)]
2049pub struct rb_hook_list_struct {
2050 pub hooks: *mut rb_event_hook_struct,
2051 pub events: rb_event_flag_t,
2052 pub need_clean: ::std::os::raw::c_int,
2053}
2054pub type rb_hook_list_t = rb_hook_list_struct;
2055#[repr(C)]
2056#[derive(Copy, Clone)]
2057pub struct rb_vm_struct {
2058 pub self_: VALUE,
2059 pub gvl: rb_global_vm_lock_t,
2060 pub thread_destruct_lock: rb_nativethread_lock_t,
2061 pub main_thread: *mut rb_thread_struct,
2062 pub running_thread: *mut rb_thread_struct,
2063 pub living_threads: list_head,
2064 pub living_thread_num: usize,
2065 pub thgroup_default: VALUE,
2066 pub running: ::std::os::raw::c_int,
2067 pub thread_abort_on_exception: ::std::os::raw::c_int,
2068 pub trace_running: ::std::os::raw::c_int,
2069 pub sleeper: ::std::os::raw::c_int,
2070 pub mark_object_ary: VALUE,
2071 pub special_exceptions: [VALUE; 4usize],
2072 pub top_self: VALUE,
2073 pub load_path: VALUE,
2074 pub load_path_snapshot: VALUE,
2075 pub load_path_check_cache: VALUE,
2076 pub expanded_load_path: VALUE,
2077 pub loaded_features: VALUE,
2078 pub loaded_features_snapshot: VALUE,
2079 pub loaded_features_index: *mut st_table,
2080 pub loading_table: *mut st_table,
2081 pub trap_list: [rb_vm_struct__bindgen_ty_1; 65usize],
2082 pub event_hooks: rb_hook_list_t,
2083 pub ensure_rollback_table: *mut st_table,
2084 pub postponed_job_buffer: *mut rb_postponed_job_struct,
2085 pub postponed_job_index: ::std::os::raw::c_int,
2086 pub src_encoding_index: ::std::os::raw::c_int,
2087 pub verbose: VALUE,
2088 pub debug: VALUE,
2089 pub orig_progname: VALUE,
2090 pub progname: VALUE,
2091 pub coverages: VALUE,
2092 pub defined_module_hash: VALUE,
2093 pub objspace: *mut rb_objspace,
2094 pub at_exit: RArray,
2095 pub defined_strings: *mut VALUE,
2096 pub frozen_strings: *mut st_table,
2097 pub default_params: rb_vm_struct__bindgen_ty_2,
2098 pub redefined_flag: [::std::os::raw::c_short; 22usize],
2099}
2100#[repr(C)]
2101#[derive(Debug, Copy, Clone)]
2102pub struct rb_vm_struct__bindgen_ty_1 {
2103 pub cmd: VALUE,
2104 pub safe: ::std::os::raw::c_int,
2105}
2106#[repr(C)]
2107#[derive(Debug, Copy, Clone)]
2108pub struct rb_vm_struct__bindgen_ty_2 {
2109 pub thread_vm_stack_size: usize,
2110 pub thread_machine_stack_size: usize,
2111 pub fiber_vm_stack_size: usize,
2112 pub fiber_machine_stack_size: usize,
2113}
2114impl ::std::fmt::Debug for rb_vm_struct {
2115 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2116 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: {:?}, 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 . defined_module_hash , self . objspace , self . at_exit , self . defined_strings , self . frozen_strings , self . default_params , self . redefined_flag)
2117 }
2118}
2119pub type rb_vm_t = rb_vm_struct;
2120#[repr(C)]
2121#[derive(Debug, Copy, Clone)]
2122pub struct rb_control_frame_struct {
2123 pub pc: *const VALUE,
2124 pub sp: *mut VALUE,
2125 pub iseq: *const rb_iseq_t,
2126 pub flag: VALUE,
2127 pub self_: VALUE,
2128 pub ep: *mut VALUE,
2129 pub block_iseq: *const rb_iseq_t,
2130 pub proc_: VALUE,
2131}
2132pub type rb_control_frame_t = rb_control_frame_struct;
2133#[repr(C)]
2134#[derive(Debug, Copy, Clone)]
2135pub struct rb_block_struct {
2136 pub self_: VALUE,
2137 pub ep: *mut VALUE,
2138 pub iseq: *const rb_iseq_t,
2139 pub proc_: VALUE,
2140}
2141pub type rb_block_t = rb_block_struct;
2142pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2143pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2144pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2145pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2146pub type rb_thread_status = ::std::os::raw::c_uint;
2147pub type rb_jmpbuf_t = jmp_buf;
2148#[repr(C)]
2149#[derive(Debug, Copy, Clone)]
2150pub struct rb_vm_tag {
2151 pub tag: VALUE,
2152 pub retval: VALUE,
2153 pub buf: rb_jmpbuf_t,
2154 pub prev: *mut rb_vm_tag,
2155}
2156#[repr(C)]
2157#[derive(Debug, Copy, Clone)]
2158pub struct rb_vm_protect_tag {
2159 pub prev: *mut rb_vm_protect_tag,
2160}
2161#[repr(C)]
2162#[derive(Debug, Copy, Clone)]
2163pub struct rb_unblock_callback {
2164 pub func: rb_unblock_function_t,
2165 pub arg: *mut ::std::os::raw::c_void,
2166}
2167#[repr(C)]
2168#[derive(Debug)]
2169pub struct rb_mutex_struct {
2170 _unused: [u8; 0],
2171}
2172#[repr(C)]
2173#[derive(Debug, Copy, Clone)]
2174pub struct rb_thread_list_struct {
2175 pub next: *mut rb_thread_list_struct,
2176 pub th: *mut rb_thread_struct,
2177}
2178pub type rb_thread_list_t = rb_thread_list_struct;
2179#[repr(C)]
2180#[derive(Debug, Copy, Clone)]
2181pub struct rb_ensure_entry {
2182 pub marker: VALUE,
2183 pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
2184 pub data2: VALUE,
2185}
2186#[repr(C)]
2187#[derive(Debug, Copy, Clone)]
2188pub struct rb_ensure_list {
2189 pub next: *mut rb_ensure_list,
2190 pub entry: rb_ensure_entry,
2191}
2192pub type rb_ensure_list_t = rb_ensure_list;
2193#[repr(C)]
2194#[derive(Debug)]
2195pub struct rb_fiber_struct {
2196 _unused: [u8; 0],
2197}
2198pub type rb_fiber_t = rb_fiber_struct;
2199#[repr(C)]
2200#[derive(Copy, Clone)]
2201pub struct rb_thread_struct {
2202 pub vmlt_node: list_node,
2203 pub self_: VALUE,
2204 pub vm: *mut rb_vm_t,
2205 pub stack: *mut VALUE,
2206 pub stack_size: usize,
2207 pub cfp: *mut rb_control_frame_t,
2208 pub safe_level: ::std::os::raw::c_int,
2209 pub raised_flag: ::std::os::raw::c_int,
2210 pub last_status: VALUE,
2211 pub state: ::std::os::raw::c_int,
2212 pub waiting_fd: ::std::os::raw::c_int,
2213 pub passed_block: *const rb_block_t,
2214 pub passed_bmethod_me: *const rb_callable_method_entry_t,
2215 pub calling: *mut rb_calling_info,
2216 pub top_self: VALUE,
2217 pub top_wrapper: VALUE,
2218 pub base_block: *mut rb_block_t,
2219 pub root_lep: *mut VALUE,
2220 pub root_svar: VALUE,
2221 pub thread_id: rb_nativethread_id_t,
2222 pub status: rb_thread_status,
2223 pub to_kill: ::std::os::raw::c_int,
2224 pub priority: ::std::os::raw::c_int,
2225 pub native_thread_data: native_thread_data_t,
2226 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2227 pub thgroup: VALUE,
2228 pub value: VALUE,
2229 pub errinfo: VALUE,
2230 pub pending_interrupt_queue: VALUE,
2231 pub pending_interrupt_mask_stack: VALUE,
2232 pub pending_interrupt_queue_checked: ::std::os::raw::c_int,
2233 pub interrupt_flag: rb_atomic_t,
2234 pub interrupt_mask: ::std::os::raw::c_ulong,
2235 pub interrupt_lock: rb_nativethread_lock_t,
2236 pub interrupt_cond: rb_nativethread_cond_t,
2237 pub unblock: rb_unblock_callback,
2238 pub locking_mutex: VALUE,
2239 pub keeping_mutexes: *mut rb_mutex_struct,
2240 pub tag: *mut rb_vm_tag,
2241 pub protect_tag: *mut rb_vm_protect_tag,
2242 pub parse_in_eval: ::std::os::raw::c_int,
2243 pub mild_compile_error: ::std::os::raw::c_int,
2244 pub local_storage: *mut st_table,
2245 pub local_storage_recursive_hash: VALUE,
2246 pub local_storage_recursive_hash_for_trace: VALUE,
2247 pub join_list: *mut rb_thread_list_t,
2248 pub first_proc: VALUE,
2249 pub first_args: VALUE,
2250 pub first_func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
2251 pub machine: rb_thread_struct__bindgen_ty_1,
2252 pub stat_insn_usage: VALUE,
2253 pub event_hooks: rb_hook_list_t,
2254 pub trace_arg: *mut rb_trace_arg_struct,
2255 pub fiber: *mut rb_fiber_t,
2256 pub root_fiber: *mut rb_fiber_t,
2257 pub root_jmpbuf: rb_jmpbuf_t,
2258 pub ensure_list: *mut rb_ensure_list_t,
2259 pub method_missing_reason: method_missing_reason,
2260 pub abort_on_exception: ::std::os::raw::c_int,
2261 pub altstack: *mut ::std::os::raw::c_void,
2262 pub running_time_us: ::std::os::raw::c_ulong,
2263 pub name: VALUE,
2264}
2265#[repr(C)]
2266#[derive(Debug, Copy, Clone)]
2267pub struct rb_thread_struct__bindgen_ty_1 {
2268 pub stack_start: *mut VALUE,
2269 pub stack_end: *mut VALUE,
2270 pub stack_maxsize: usize,
2271 pub regs: jmp_buf,
2272}
2273impl ::std::fmt::Debug for rb_thread_struct {
2274 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2275 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: {:?}, calling: {:?}, 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: {:?}, name: {:?} }}" , 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 . calling , 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 , self . name)
2276 }
2277}
2278pub type rb_thread_t = rb_thread_struct;
2279#[repr(C)]
2280#[derive(Debug, Copy, Clone)]
2281pub struct rb_trace_arg_struct {
2282 pub event: rb_event_flag_t,
2283 pub th: *mut rb_thread_t,
2284 pub cfp: *mut rb_control_frame_t,
2285 pub self_: VALUE,
2286 pub id: ID,
2287 pub klass: VALUE,
2288 pub data: VALUE,
2289 pub klass_solved: ::std::os::raw::c_int,
2290 pub lineno: ::std::os::raw::c_int,
2291 pub path: VALUE,
2292}
2293#[repr(C)]
2294#[derive(Debug, Copy, Clone)]
2295pub struct rb_compile_option_struct {
2296 pub inline_const_cache: ::std::os::raw::c_int,
2297 pub peephole_optimization: ::std::os::raw::c_int,
2298 pub tailcall_optimization: ::std::os::raw::c_int,
2299 pub specialized_instruction: ::std::os::raw::c_int,
2300 pub operands_unification: ::std::os::raw::c_int,
2301 pub instructions_unification: ::std::os::raw::c_int,
2302 pub stack_caching: ::std::os::raw::c_int,
2303 pub trace_instruction: ::std::os::raw::c_int,
2304 pub frozen_string_literal: ::std::os::raw::c_int,
2305 pub debug_frozen_string_literal: ::std::os::raw::c_int,
2306 pub debug_level: ::std::os::raw::c_int,
2307}
2308#[repr(C)]
2309#[derive(Debug, Copy, Clone)]
2310pub struct iseq_line_info_entry {
2311 pub position: ::std::os::raw::c_uint,
2312 pub line_no: ::std::os::raw::c_uint,
2313}
2314#[repr(C)]
2315#[derive(Debug, Copy, Clone)]
2316pub struct iseq_catch_table_entry {
2317 pub type_: iseq_catch_table_entry_catch_type,
2318 pub iseq: *const rb_iseq_t,
2319 pub start: ::std::os::raw::c_uint,
2320 pub end: ::std::os::raw::c_uint,
2321 pub cont: ::std::os::raw::c_uint,
2322 pub sp: ::std::os::raw::c_uint,
2323}
2324pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
2325 3;
2326pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
2327 5;
2328pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
2329pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
2330pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
2331pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
2332pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
2333#[repr(C)]
2334#[derive(Copy, Clone)]
2335pub struct iseq_catch_table {
2336 pub size: ::std::os::raw::c_uint,
2337 pub entries: [iseq_catch_table_entry; 1usize],
2338}
2339#[repr(C)]
2340#[derive(Debug, Copy, Clone)]
2341pub struct iseq_compile_data_storage {
2342 pub next: *mut iseq_compile_data_storage,
2343 pub pos: ::std::os::raw::c_uint,
2344 pub size: ::std::os::raw::c_uint,
2345 pub buff: [::std::os::raw::c_char; 1usize],
2346}
2347#[repr(C)]
2348#[derive(Debug, Copy, Clone)]
2349pub struct iseq_compile_data {
2350 pub err_info: VALUE,
2351 pub mark_ary: VALUE,
2352 pub catch_table_ary: VALUE,
2353 pub start_label: *mut iseq_label_data,
2354 pub end_label: *mut iseq_label_data,
2355 pub redo_label: *mut iseq_label_data,
2356 pub current_block: *const rb_iseq_t,
2357 pub ensure_node: VALUE,
2358 pub for_iseq: VALUE,
2359 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2360 pub loopval_popped: ::std::os::raw::c_int,
2361 pub cached_const: ::std::os::raw::c_int,
2362 pub storage_head: *mut iseq_compile_data_storage,
2363 pub storage_current: *mut iseq_compile_data_storage,
2364 pub last_line: ::std::os::raw::c_int,
2365 pub last_coverable_line: ::std::os::raw::c_int,
2366 pub label_no: ::std::os::raw::c_int,
2367 pub node_level: ::std::os::raw::c_int,
2368 pub ci_index: ::std::os::raw::c_uint,
2369 pub ci_kw_index: ::std::os::raw::c_uint,
2370 pub option: *const rb_compile_option_t,
2371}
2372#[repr(C)]
2373#[derive(Debug, Copy, Clone)]
2374pub struct st_table_entry {
2375 pub _address: u8,
2376}
2377#[repr(C)]
2378#[derive(Debug, Copy, Clone)]
2379pub struct st_packed_entry {
2380 pub _address: u8,
2381}
2382#[repr(C)]
2383#[derive(Debug, Copy, Clone)]
2384pub struct rb_id_table {
2385 pub _address: u8,
2386}
2387#[repr(C)]
2388#[derive(Debug, Copy, Clone)]
2389pub struct rb_event_hook_struct {
2390 pub _address: u8,
2391}
2392#[repr(C)]
2393#[derive(Debug, Copy, Clone)]
2394pub struct rb_postponed_job_struct {
2395 pub _address: u8,
2396}
2397#[repr(C)]
2398#[derive(Debug, Copy, Clone)]
2399pub struct iseq_label_data {
2400 pub _address: u8,
2401}
2402#[repr(C)]
2403#[derive(Debug, Copy, Clone)]
2404pub struct iseq_compile_data_ensure_node_stack {
2405 pub _address: u8,
2406}