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}
498#[repr(C)]
499#[derive(Default)]
500pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
501impl<T> __IncompleteArrayField<T> {
502 #[inline]
503 pub const fn new() -> Self {
504 __IncompleteArrayField(::std::marker::PhantomData, [])
505 }
506 #[inline]
507 pub fn as_ptr(&self) -> *const T {
508 self as *const _ as *const T
509 }
510 #[inline]
511 pub fn as_mut_ptr(&mut self) -> *mut T {
512 self as *mut _ as *mut T
513 }
514 #[inline]
515 pub unsafe fn as_slice(&self, len: usize) -> &[T] {
516 ::std::slice::from_raw_parts(self.as_ptr(), len)
517 }
518 #[inline]
519 pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
520 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
521 }
522}
523impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
524 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
525 fmt.write_str("__IncompleteArrayField")
526 }
527}
528#[repr(C)]
529#[derive(Debug, Copy, Clone)]
530pub struct __sigset_t {
531 pub __val: [usize; 16usize],
532}
533#[repr(C)]
534#[derive(Debug, Copy, Clone)]
535pub struct __pthread_internal_list {
536 pub __prev: *mut __pthread_internal_list,
537 pub __next: *mut __pthread_internal_list,
538}
539pub type __pthread_list_t = __pthread_internal_list;
540#[repr(C)]
541#[derive(Debug, Copy, Clone)]
542pub struct __pthread_mutex_s {
543 pub __lock: ::std::os::raw::c_int,
544 pub __count: ::std::os::raw::c_uint,
545 pub __owner: ::std::os::raw::c_int,
546 pub __nusers: ::std::os::raw::c_uint,
547 pub __kind: ::std::os::raw::c_int,
548 pub __spins: ::std::os::raw::c_short,
549 pub __elision: ::std::os::raw::c_short,
550 pub __list: __pthread_list_t,
551}
552#[repr(C)]
553#[derive(Copy, Clone)]
554pub struct __pthread_cond_s {
555 pub __bindgen_anon_1: __pthread_cond_s__bindgen_ty_1,
556 pub __bindgen_anon_2: __pthread_cond_s__bindgen_ty_2,
557 pub __g_refs: [::std::os::raw::c_uint; 2usize],
558 pub __g_size: [::std::os::raw::c_uint; 2usize],
559 pub __g1_orig_size: ::std::os::raw::c_uint,
560 pub __wrefs: ::std::os::raw::c_uint,
561 pub __g_signals: [::std::os::raw::c_uint; 2usize],
562}
563#[repr(C)]
564#[derive(Copy, Clone)]
565pub union __pthread_cond_s__bindgen_ty_1 {
566 pub __wseq: ::std::os::raw::c_ulonglong,
567 pub __wseq32: __pthread_cond_s__bindgen_ty_1__bindgen_ty_1,
568}
569#[repr(C)]
570#[derive(Debug, Copy, Clone)]
571pub struct __pthread_cond_s__bindgen_ty_1__bindgen_ty_1 {
572 pub __low: ::std::os::raw::c_uint,
573 pub __high: ::std::os::raw::c_uint,
574}
575impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_1 {
576 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
577 write!(f, "__pthread_cond_s__bindgen_ty_1 {{ union }}")
578 }
579}
580#[repr(C)]
581#[derive(Copy, Clone)]
582pub union __pthread_cond_s__bindgen_ty_2 {
583 pub __g1_start: ::std::os::raw::c_ulonglong,
584 pub __g1_start32: __pthread_cond_s__bindgen_ty_2__bindgen_ty_1,
585}
586#[repr(C)]
587#[derive(Debug, Copy, Clone)]
588pub struct __pthread_cond_s__bindgen_ty_2__bindgen_ty_1 {
589 pub __low: ::std::os::raw::c_uint,
590 pub __high: ::std::os::raw::c_uint,
591}
592impl ::std::fmt::Debug for __pthread_cond_s__bindgen_ty_2 {
593 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
594 write!(f, "__pthread_cond_s__bindgen_ty_2 {{ union }}")
595 }
596}
597impl ::std::fmt::Debug for __pthread_cond_s {
598 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
599 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)
600 }
601}
602pub type pthread_t = usize;
603#[repr(C)]
604#[derive(Copy, Clone)]
605pub union pthread_mutex_t {
606 pub __data: __pthread_mutex_s,
607 pub __size: [::std::os::raw::c_char; 40usize],
608 pub __align: ::std::os::raw::c_long,
609}
610impl ::std::fmt::Debug for pthread_mutex_t {
611 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
612 write!(f, "pthread_mutex_t {{ union }}")
613 }
614}
615#[repr(C)]
616#[derive(Copy, Clone)]
617pub union pthread_cond_t {
618 pub __data: __pthread_cond_s,
619 pub __size: [::std::os::raw::c_char; 48usize],
620 pub __align: ::std::os::raw::c_longlong,
621}
622impl ::std::fmt::Debug for pthread_cond_t {
623 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
624 write!(f, "pthread_cond_t {{ union }}")
625 }
626}
627pub type VALUE = usize;
628pub type ID = usize;
629pub const ruby_fl_type_RUBY_FL_WB_PROTECTED: ruby_fl_type = 32;
630pub const ruby_fl_type_RUBY_FL_PROMOTED0: ruby_fl_type = 32;
631pub const ruby_fl_type_RUBY_FL_PROMOTED1: ruby_fl_type = 64;
632pub const ruby_fl_type_RUBY_FL_PROMOTED: ruby_fl_type = 96;
633pub const ruby_fl_type_RUBY_FL_FINALIZE: ruby_fl_type = 128;
634pub const ruby_fl_type_RUBY_FL_TAINT: ruby_fl_type = 256;
635pub const ruby_fl_type_RUBY_FL_UNTRUSTED: ruby_fl_type = 256;
636pub const ruby_fl_type_RUBY_FL_EXIVAR: ruby_fl_type = 1024;
637pub const ruby_fl_type_RUBY_FL_FREEZE: ruby_fl_type = 2048;
638pub const ruby_fl_type_RUBY_FL_USHIFT: ruby_fl_type = 12;
639pub const ruby_fl_type_RUBY_FL_USER0: ruby_fl_type = 4096;
640pub const ruby_fl_type_RUBY_FL_USER1: ruby_fl_type = 8192;
641pub const ruby_fl_type_RUBY_FL_USER2: ruby_fl_type = 16384;
642pub const ruby_fl_type_RUBY_FL_USER3: ruby_fl_type = 32768;
643pub const ruby_fl_type_RUBY_FL_USER4: ruby_fl_type = 65536;
644pub const ruby_fl_type_RUBY_FL_USER5: ruby_fl_type = 131072;
645pub const ruby_fl_type_RUBY_FL_USER6: ruby_fl_type = 262144;
646pub const ruby_fl_type_RUBY_FL_USER7: ruby_fl_type = 524288;
647pub const ruby_fl_type_RUBY_FL_USER8: ruby_fl_type = 1048576;
648pub const ruby_fl_type_RUBY_FL_USER9: ruby_fl_type = 2097152;
649pub const ruby_fl_type_RUBY_FL_USER10: ruby_fl_type = 4194304;
650pub const ruby_fl_type_RUBY_FL_USER11: ruby_fl_type = 8388608;
651pub const ruby_fl_type_RUBY_FL_USER12: ruby_fl_type = 16777216;
652pub const ruby_fl_type_RUBY_FL_USER13: ruby_fl_type = 33554432;
653pub const ruby_fl_type_RUBY_FL_USER14: ruby_fl_type = 67108864;
654pub const ruby_fl_type_RUBY_FL_USER15: ruby_fl_type = 134217728;
655pub const ruby_fl_type_RUBY_FL_USER16: ruby_fl_type = 268435456;
656pub const ruby_fl_type_RUBY_FL_USER17: ruby_fl_type = 536870912;
657pub const ruby_fl_type_RUBY_FL_USER18: ruby_fl_type = 1073741824;
658pub const ruby_fl_type_RUBY_FL_USER19: ruby_fl_type = -2147483648;
659pub const ruby_fl_type_RUBY_ELTS_SHARED: ruby_fl_type = 16384;
660pub const ruby_fl_type_RUBY_FL_DUPPED: ruby_fl_type = 1311;
661pub const ruby_fl_type_RUBY_FL_SINGLETON: ruby_fl_type = 4096;
662pub type ruby_fl_type = ::std::os::raw::c_int;
663#[repr(C)]
664#[derive(Debug, Copy, Clone)]
665pub struct RBasic {
666 pub flags: VALUE,
667 pub klass: VALUE,
668}
669#[repr(C)]
670#[derive(Copy, Clone)]
671pub struct RString {
672 pub basic: RBasic,
673 pub as_: RString__bindgen_ty_1,
674}
675#[repr(C)]
676#[derive(Copy, Clone)]
677pub union RString__bindgen_ty_1 {
678 pub heap: RString__bindgen_ty_1__bindgen_ty_1,
679 pub ary: [::std::os::raw::c_char; 24usize],
680}
681#[repr(C)]
682#[derive(Copy, Clone)]
683pub struct RString__bindgen_ty_1__bindgen_ty_1 {
684 pub len: ::std::os::raw::c_long,
685 pub ptr: *mut ::std::os::raw::c_char,
686 pub aux: RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
687}
688#[repr(C)]
689#[derive(Copy, Clone)]
690pub union RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
691 pub capa: ::std::os::raw::c_long,
692 pub shared: VALUE,
693}
694impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
695 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
696 write!(
697 f,
698 "RString__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
699 )
700 }
701}
702impl ::std::fmt::Debug for RString__bindgen_ty_1__bindgen_ty_1 {
703 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
704 write!(
705 f,
706 "RString__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, ptr: {:?}, aux: {:?} }}",
707 self.len, self.ptr, self.aux
708 )
709 }
710}
711impl ::std::fmt::Debug for RString__bindgen_ty_1 {
712 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
713 write!(f, "RString__bindgen_ty_1 {{ union }}")
714 }
715}
716impl ::std::fmt::Debug for RString {
717 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
718 write!(
719 f,
720 "RString {{ basic: {:?}, as: {:?} }}",
721 self.basic, self.as_
722 )
723 }
724}
725#[repr(C)]
726#[derive(Copy, Clone)]
727pub struct RArray {
728 pub basic: RBasic,
729 pub as_: RArray__bindgen_ty_1,
730}
731#[repr(C)]
732#[derive(Copy, Clone)]
733pub union RArray__bindgen_ty_1 {
734 pub heap: RArray__bindgen_ty_1__bindgen_ty_1,
735 pub ary: [VALUE; 3usize],
736}
737#[repr(C)]
738#[derive(Copy, Clone)]
739pub struct RArray__bindgen_ty_1__bindgen_ty_1 {
740 pub len: ::std::os::raw::c_long,
741 pub aux: RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1,
742 pub ptr: *const VALUE,
743}
744#[repr(C)]
745#[derive(Copy, Clone)]
746pub union RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
747 pub capa: ::std::os::raw::c_long,
748 pub shared: VALUE,
749}
750impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {
751 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
752 write!(
753 f,
754 "RArray__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 {{ union }}"
755 )
756 }
757}
758impl ::std::fmt::Debug for RArray__bindgen_ty_1__bindgen_ty_1 {
759 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
760 write!(
761 f,
762 "RArray__bindgen_ty_1__bindgen_ty_1 {{ len: {:?}, aux: {:?}, ptr: {:?} }}",
763 self.len, self.aux, self.ptr
764 )
765 }
766}
767impl ::std::fmt::Debug for RArray__bindgen_ty_1 {
768 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
769 write!(f, "RArray__bindgen_ty_1 {{ union }}")
770 }
771}
772impl ::std::fmt::Debug for RArray {
773 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
774 write!(
775 f,
776 "RArray {{ basic: {:?}, as: {:?} }}",
777 self.basic, self.as_
778 )
779 }
780}
781pub type st_data_t = usize;
782pub type st_index_t = st_data_t;
783#[repr(C)]
784#[derive(Debug, Copy, Clone)]
785pub struct st_hash_type {
786 pub compare: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
787 pub hash: ::std::option::Option<unsafe extern "C" fn() -> st_index_t>,
788}
789#[repr(C)]
790#[derive(Debug)]
791pub struct st_table_entry {
792 _unused: [u8; 0],
793}
794#[repr(C)]
795#[derive(Debug, Copy, Clone)]
796pub struct st_table {
797 pub entry_power: ::std::os::raw::c_uchar,
798 pub bin_power: ::std::os::raw::c_uchar,
799 pub size_ind: ::std::os::raw::c_uchar,
800 pub rebuilds_num: ::std::os::raw::c_uint,
801 pub type_: *const st_hash_type,
802 pub num_entries: st_index_t,
803 pub bins: *mut st_index_t,
804 pub entries_start: st_index_t,
805 pub entries_bound: st_index_t,
806 pub entries: *mut st_table_entry,
807}
808pub type rb_alloc_func_t = ::std::option::Option<unsafe extern "C" fn(arg1: VALUE) -> VALUE>;
809pub type rb_unblock_function_t =
810 ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>;
811pub type rb_event_flag_t = u32;
812#[repr(C)]
813#[derive(Debug, Copy, Clone)]
814pub struct rb_code_position_struct {
815 pub lineno: ::std::os::raw::c_int,
816 pub column: ::std::os::raw::c_int,
817}
818pub type rb_code_position_t = rb_code_position_struct;
819#[repr(C)]
820#[derive(Debug, Copy, Clone)]
821pub struct rb_code_location_struct {
822 pub beg_pos: rb_code_position_t,
823 pub end_pos: rb_code_position_t,
824}
825pub type rb_code_location_t = rb_code_location_struct;
826pub const ruby_id_types_RUBY_ID_STATIC_SYM: ruby_id_types = 1;
827pub const ruby_id_types_RUBY_ID_LOCAL: ruby_id_types = 0;
828pub const ruby_id_types_RUBY_ID_INSTANCE: ruby_id_types = 2;
829pub const ruby_id_types_RUBY_ID_GLOBAL: ruby_id_types = 6;
830pub const ruby_id_types_RUBY_ID_ATTRSET: ruby_id_types = 8;
831pub const ruby_id_types_RUBY_ID_CONST: ruby_id_types = 10;
832pub const ruby_id_types_RUBY_ID_CLASS: ruby_id_types = 12;
833pub const ruby_id_types_RUBY_ID_JUNK: ruby_id_types = 14;
834pub const ruby_id_types_RUBY_ID_INTERNAL: ruby_id_types = 14;
835pub const ruby_id_types_RUBY_ID_SCOPE_SHIFT: ruby_id_types = 4;
836pub const ruby_id_types_RUBY_ID_SCOPE_MASK: ruby_id_types = 14;
837pub type ruby_id_types = ::std::os::raw::c_uint;
838pub const ruby_method_ids_idDot2: ruby_method_ids = 128;
839pub const ruby_method_ids_idDot3: ruby_method_ids = 129;
840pub const ruby_method_ids_idUPlus: ruby_method_ids = 130;
841pub const ruby_method_ids_idUMinus: ruby_method_ids = 131;
842pub const ruby_method_ids_idPow: ruby_method_ids = 132;
843pub const ruby_method_ids_idCmp: ruby_method_ids = 133;
844pub const ruby_method_ids_idPLUS: ruby_method_ids = 43;
845pub const ruby_method_ids_idMINUS: ruby_method_ids = 45;
846pub const ruby_method_ids_idMULT: ruby_method_ids = 42;
847pub const ruby_method_ids_idDIV: ruby_method_ids = 47;
848pub const ruby_method_ids_idMOD: ruby_method_ids = 37;
849pub const ruby_method_ids_idLTLT: ruby_method_ids = 134;
850pub const ruby_method_ids_idGTGT: ruby_method_ids = 135;
851pub const ruby_method_ids_idLT: ruby_method_ids = 60;
852pub const ruby_method_ids_idLE: ruby_method_ids = 136;
853pub const ruby_method_ids_idGT: ruby_method_ids = 62;
854pub const ruby_method_ids_idGE: ruby_method_ids = 137;
855pub const ruby_method_ids_idEq: ruby_method_ids = 138;
856pub const ruby_method_ids_idEqq: ruby_method_ids = 139;
857pub const ruby_method_ids_idNeq: ruby_method_ids = 140;
858pub const ruby_method_ids_idNot: ruby_method_ids = 33;
859pub const ruby_method_ids_idAnd: ruby_method_ids = 38;
860pub const ruby_method_ids_idOr: ruby_method_ids = 124;
861pub const ruby_method_ids_idBackquote: ruby_method_ids = 96;
862pub const ruby_method_ids_idEqTilde: ruby_method_ids = 141;
863pub const ruby_method_ids_idNeqTilde: ruby_method_ids = 142;
864pub const ruby_method_ids_idAREF: ruby_method_ids = 143;
865pub const ruby_method_ids_idASET: ruby_method_ids = 144;
866pub const ruby_method_ids_idCOLON2: ruby_method_ids = 145;
867pub const ruby_method_ids_idANDOP: ruby_method_ids = 146;
868pub const ruby_method_ids_idOROP: ruby_method_ids = 147;
869pub const ruby_method_ids_idANDDOT: ruby_method_ids = 148;
870pub const ruby_method_ids_tPRESERVED_ID_BEGIN: ruby_method_ids = 148;
871pub const ruby_method_ids_idNULL: ruby_method_ids = 149;
872pub const ruby_method_ids_idEmptyP: ruby_method_ids = 150;
873pub const ruby_method_ids_idEqlP: ruby_method_ids = 151;
874pub const ruby_method_ids_idRespond_to: ruby_method_ids = 152;
875pub const ruby_method_ids_idRespond_to_missing: ruby_method_ids = 153;
876pub const ruby_method_ids_idIFUNC: ruby_method_ids = 154;
877pub const ruby_method_ids_idCFUNC: ruby_method_ids = 155;
878pub const ruby_method_ids_id_core_set_method_alias: ruby_method_ids = 156;
879pub const ruby_method_ids_id_core_set_variable_alias: ruby_method_ids = 157;
880pub const ruby_method_ids_id_core_undef_method: ruby_method_ids = 158;
881pub const ruby_method_ids_id_core_define_method: ruby_method_ids = 159;
882pub const ruby_method_ids_id_core_define_singleton_method: ruby_method_ids = 160;
883pub const ruby_method_ids_id_core_set_postexe: ruby_method_ids = 161;
884pub const ruby_method_ids_id_core_hash_merge_ptr: ruby_method_ids = 162;
885pub const ruby_method_ids_id_core_hash_merge_kwd: ruby_method_ids = 163;
886pub const ruby_method_ids_id_debug_created_info: ruby_method_ids = 164;
887pub const ruby_method_ids_tPRESERVED_ID_END: ruby_method_ids = 165;
888pub const ruby_method_ids_tTOKEN_LOCAL_BEGIN: ruby_method_ids = 164;
889pub const ruby_method_ids_tMax: ruby_method_ids = 165;
890pub const ruby_method_ids_tMin: ruby_method_ids = 166;
891pub const ruby_method_ids_tFreeze: ruby_method_ids = 167;
892pub const ruby_method_ids_tInspect: ruby_method_ids = 168;
893pub const ruby_method_ids_tIntern: ruby_method_ids = 169;
894pub const ruby_method_ids_tObject_id: ruby_method_ids = 170;
895pub const ruby_method_ids_tConst_missing: ruby_method_ids = 171;
896pub const ruby_method_ids_tMethodMissing: ruby_method_ids = 172;
897pub const ruby_method_ids_tMethod_added: ruby_method_ids = 173;
898pub const ruby_method_ids_tSingleton_method_added: ruby_method_ids = 174;
899pub const ruby_method_ids_tMethod_removed: ruby_method_ids = 175;
900pub const ruby_method_ids_tSingleton_method_removed: ruby_method_ids = 176;
901pub const ruby_method_ids_tMethod_undefined: ruby_method_ids = 177;
902pub const ruby_method_ids_tSingleton_method_undefined: ruby_method_ids = 178;
903pub const ruby_method_ids_tLength: ruby_method_ids = 179;
904pub const ruby_method_ids_tSize: ruby_method_ids = 180;
905pub const ruby_method_ids_tGets: ruby_method_ids = 181;
906pub const ruby_method_ids_tSucc: ruby_method_ids = 182;
907pub const ruby_method_ids_tEach: ruby_method_ids = 183;
908pub const ruby_method_ids_tProc: ruby_method_ids = 184;
909pub const ruby_method_ids_tLambda: ruby_method_ids = 185;
910pub const ruby_method_ids_tSend: ruby_method_ids = 186;
911pub const ruby_method_ids_t__send__: ruby_method_ids = 187;
912pub const ruby_method_ids_t__attached__: ruby_method_ids = 188;
913pub const ruby_method_ids_tInitialize: ruby_method_ids = 189;
914pub const ruby_method_ids_tInitialize_copy: ruby_method_ids = 190;
915pub const ruby_method_ids_tInitialize_clone: ruby_method_ids = 191;
916pub const ruby_method_ids_tInitialize_dup: ruby_method_ids = 192;
917pub const ruby_method_ids_tTo_int: ruby_method_ids = 193;
918pub const ruby_method_ids_tTo_ary: ruby_method_ids = 194;
919pub const ruby_method_ids_tTo_str: ruby_method_ids = 195;
920pub const ruby_method_ids_tTo_sym: ruby_method_ids = 196;
921pub const ruby_method_ids_tTo_hash: ruby_method_ids = 197;
922pub const ruby_method_ids_tTo_proc: ruby_method_ids = 198;
923pub const ruby_method_ids_tTo_io: ruby_method_ids = 199;
924pub const ruby_method_ids_tTo_a: ruby_method_ids = 200;
925pub const ruby_method_ids_tTo_s: ruby_method_ids = 201;
926pub const ruby_method_ids_tTo_i: ruby_method_ids = 202;
927pub const ruby_method_ids_tTo_f: ruby_method_ids = 203;
928pub const ruby_method_ids_tTo_r: ruby_method_ids = 204;
929pub const ruby_method_ids_tBt: ruby_method_ids = 205;
930pub const ruby_method_ids_tBt_locations: ruby_method_ids = 206;
931pub const ruby_method_ids_tCall: ruby_method_ids = 207;
932pub const ruby_method_ids_tMesg: ruby_method_ids = 208;
933pub const ruby_method_ids_tException: ruby_method_ids = 209;
934pub const ruby_method_ids_tNOT: ruby_method_ids = 210;
935pub const ruby_method_ids_tAND: ruby_method_ids = 211;
936pub const ruby_method_ids_tOR: ruby_method_ids = 212;
937pub const ruby_method_ids_tUScore: ruby_method_ids = 213;
938pub const ruby_method_ids_tTOKEN_LOCAL_END: ruby_method_ids = 214;
939pub const ruby_method_ids_tTOKEN_INSTANCE_BEGIN: ruby_method_ids = 213;
940pub const ruby_method_ids_tTOKEN_INSTANCE_END: ruby_method_ids = 214;
941pub const ruby_method_ids_tTOKEN_GLOBAL_BEGIN: ruby_method_ids = 213;
942pub const ruby_method_ids_tLASTLINE: ruby_method_ids = 214;
943pub const ruby_method_ids_tBACKREF: ruby_method_ids = 215;
944pub const ruby_method_ids_tTOKEN_GLOBAL_END: ruby_method_ids = 216;
945pub const ruby_method_ids_tTOKEN_CONST_BEGIN: ruby_method_ids = 215;
946pub const ruby_method_ids_tTOKEN_CONST_END: ruby_method_ids = 216;
947pub const ruby_method_ids_tTOKEN_CLASS_BEGIN: ruby_method_ids = 215;
948pub const ruby_method_ids_tTOKEN_CLASS_END: ruby_method_ids = 216;
949pub const ruby_method_ids_tTOKEN_ATTRSET_BEGIN: ruby_method_ids = 215;
950pub const ruby_method_ids_tTOKEN_ATTRSET_END: ruby_method_ids = 216;
951pub const ruby_method_ids_tNEXT_ID: ruby_method_ids = 216;
952pub const ruby_method_ids_idMax: ruby_method_ids = 2641;
953pub const ruby_method_ids_idMin: ruby_method_ids = 2657;
954pub const ruby_method_ids_idFreeze: ruby_method_ids = 2673;
955pub const ruby_method_ids_idInspect: ruby_method_ids = 2689;
956pub const ruby_method_ids_idIntern: ruby_method_ids = 2705;
957pub const ruby_method_ids_idObject_id: ruby_method_ids = 2721;
958pub const ruby_method_ids_idConst_missing: ruby_method_ids = 2737;
959pub const ruby_method_ids_idMethodMissing: ruby_method_ids = 2753;
960pub const ruby_method_ids_idMethod_added: ruby_method_ids = 2769;
961pub const ruby_method_ids_idSingleton_method_added: ruby_method_ids = 2785;
962pub const ruby_method_ids_idMethod_removed: ruby_method_ids = 2801;
963pub const ruby_method_ids_idSingleton_method_removed: ruby_method_ids = 2817;
964pub const ruby_method_ids_idMethod_undefined: ruby_method_ids = 2833;
965pub const ruby_method_ids_idSingleton_method_undefined: ruby_method_ids = 2849;
966pub const ruby_method_ids_idLength: ruby_method_ids = 2865;
967pub const ruby_method_ids_idSize: ruby_method_ids = 2881;
968pub const ruby_method_ids_idGets: ruby_method_ids = 2897;
969pub const ruby_method_ids_idSucc: ruby_method_ids = 2913;
970pub const ruby_method_ids_idEach: ruby_method_ids = 2929;
971pub const ruby_method_ids_idProc: ruby_method_ids = 2945;
972pub const ruby_method_ids_idLambda: ruby_method_ids = 2961;
973pub const ruby_method_ids_idSend: ruby_method_ids = 2977;
974pub const ruby_method_ids_id__send__: ruby_method_ids = 2993;
975pub const ruby_method_ids_id__attached__: ruby_method_ids = 3009;
976pub const ruby_method_ids_idInitialize: ruby_method_ids = 3025;
977pub const ruby_method_ids_idInitialize_copy: ruby_method_ids = 3041;
978pub const ruby_method_ids_idInitialize_clone: ruby_method_ids = 3057;
979pub const ruby_method_ids_idInitialize_dup: ruby_method_ids = 3073;
980pub const ruby_method_ids_idTo_int: ruby_method_ids = 3089;
981pub const ruby_method_ids_idTo_ary: ruby_method_ids = 3105;
982pub const ruby_method_ids_idTo_str: ruby_method_ids = 3121;
983pub const ruby_method_ids_idTo_sym: ruby_method_ids = 3137;
984pub const ruby_method_ids_idTo_hash: ruby_method_ids = 3153;
985pub const ruby_method_ids_idTo_proc: ruby_method_ids = 3169;
986pub const ruby_method_ids_idTo_io: ruby_method_ids = 3185;
987pub const ruby_method_ids_idTo_a: ruby_method_ids = 3201;
988pub const ruby_method_ids_idTo_s: ruby_method_ids = 3217;
989pub const ruby_method_ids_idTo_i: ruby_method_ids = 3233;
990pub const ruby_method_ids_idTo_f: ruby_method_ids = 3249;
991pub const ruby_method_ids_idTo_r: ruby_method_ids = 3265;
992pub const ruby_method_ids_idBt: ruby_method_ids = 3281;
993pub const ruby_method_ids_idBt_locations: ruby_method_ids = 3297;
994pub const ruby_method_ids_idCall: ruby_method_ids = 3313;
995pub const ruby_method_ids_idMesg: ruby_method_ids = 3329;
996pub const ruby_method_ids_idException: ruby_method_ids = 3345;
997pub const ruby_method_ids_idNOT: ruby_method_ids = 3361;
998pub const ruby_method_ids_idAND: ruby_method_ids = 3377;
999pub const ruby_method_ids_idOR: ruby_method_ids = 3393;
1000pub const ruby_method_ids_idUScore: ruby_method_ids = 3409;
1001pub const ruby_method_ids_idLASTLINE: ruby_method_ids = 3431;
1002pub const ruby_method_ids_idBACKREF: ruby_method_ids = 3447;
1003pub const ruby_method_ids_tLAST_OP_ID: ruby_method_ids = 164;
1004pub const ruby_method_ids_idLAST_OP_ID: ruby_method_ids = 10;
1005pub type ruby_method_ids = ::std::os::raw::c_uint;
1006pub type rb_subclass_entry_t = rb_subclass_entry;
1007#[repr(C)]
1008#[derive(Debug, Copy, Clone)]
1009pub struct rb_subclass_entry {
1010 pub klass: VALUE,
1011 pub next: *mut rb_subclass_entry_t,
1012}
1013pub type rb_serial_t = ::std::os::raw::c_ulonglong;
1014#[repr(C)]
1015#[derive(Debug, Copy, Clone)]
1016pub struct rb_classext_struct {
1017 pub iv_index_tbl: *mut st_table,
1018 pub iv_tbl: *mut st_table,
1019 pub const_tbl: *mut rb_id_table,
1020 pub callable_m_tbl: *mut rb_id_table,
1021 pub subclasses: *mut rb_subclass_entry_t,
1022 pub parent_subclasses: *mut *mut rb_subclass_entry_t,
1023 pub module_subclasses: *mut *mut rb_subclass_entry_t,
1024 pub class_serial: rb_serial_t,
1025 pub origin_: VALUE,
1026 pub refined_class: VALUE,
1027 pub allocator: rb_alloc_func_t,
1028}
1029pub type rb_classext_t = rb_classext_struct;
1030pub const imemo_type_imemo_env: imemo_type = 0;
1031pub const imemo_type_imemo_cref: imemo_type = 1;
1032pub const imemo_type_imemo_svar: imemo_type = 2;
1033pub const imemo_type_imemo_throw_data: imemo_type = 3;
1034pub const imemo_type_imemo_ifunc: imemo_type = 4;
1035pub const imemo_type_imemo_memo: imemo_type = 5;
1036pub const imemo_type_imemo_ment: imemo_type = 6;
1037pub const imemo_type_imemo_iseq: imemo_type = 7;
1038pub const imemo_type_imemo_tmpbuf: imemo_type = 8;
1039pub const imemo_type_imemo_ast: imemo_type = 9;
1040pub const imemo_type_imemo_parser_strterm: imemo_type = 10;
1041pub type imemo_type = ::std::os::raw::c_uint;
1042#[repr(C)]
1043#[derive(Debug, Copy, Clone)]
1044pub struct vm_svar {
1045 pub flags: VALUE,
1046 pub cref_or_me: VALUE,
1047 pub lastline: VALUE,
1048 pub backref: VALUE,
1049 pub others: VALUE,
1050}
1051#[repr(C)]
1052#[derive(Debug)]
1053pub struct rb_fiber_struct {
1054 _unused: [u8; 0],
1055}
1056pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
1057pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
1058pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
1059pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
1060pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
1061pub type rb_method_visibility_t = ::std::os::raw::c_uint;
1062#[repr(C)]
1063#[derive(Debug, Copy, Clone)]
1064pub struct rb_scope_visi_struct {
1065 pub _bindgen_align: [u32; 0],
1066 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1067 pub __bindgen_padding_0: [u8; 3usize],
1068}
1069impl rb_scope_visi_struct {
1070 #[inline]
1071 #[allow(unnecessary_transmutes)]
1072 pub fn method_visi(&self) -> rb_method_visibility_t {
1073 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 3u8>() as u32) }
1074 }
1075 #[inline]
1076 #[allow(unnecessary_transmutes)]
1077 pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
1078 unsafe {
1079 let val: u32 = ::std::mem::transmute(val);
1080 self._bitfield_1.set_const::<0usize, 3u8>(val as u64)
1081 }
1082 }
1083 #[inline]
1084 #[allow(unnecessary_transmutes)]
1085 pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
1086 unsafe {
1087 ::std::mem::transmute(
1088 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 3u8>(
1089 ::std::ptr::addr_of!((*this)._bitfield_1),
1090 ) as u32,
1091 )
1092 }
1093 }
1094 #[inline]
1095 #[allow(unnecessary_transmutes)]
1096 pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
1097 unsafe {
1098 let val: u32 = ::std::mem::transmute(val);
1099 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 3u8>(
1100 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1101 val as u64,
1102 )
1103 }
1104 }
1105 #[inline]
1106 #[allow(unnecessary_transmutes)]
1107 pub fn module_func(&self) -> ::std::os::raw::c_uint {
1108 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1109 }
1110 #[inline]
1111 #[allow(unnecessary_transmutes)]
1112 pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
1113 unsafe {
1114 let val: u32 = ::std::mem::transmute(val);
1115 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1116 }
1117 }
1118 #[inline]
1119 #[allow(unnecessary_transmutes)]
1120 pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
1121 unsafe {
1122 ::std::mem::transmute(
1123 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
1124 ::std::ptr::addr_of!((*this)._bitfield_1),
1125 ) as u32,
1126 )
1127 }
1128 }
1129 #[inline]
1130 #[allow(unnecessary_transmutes)]
1131 pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1132 unsafe {
1133 let val: u32 = ::std::mem::transmute(val);
1134 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
1135 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1136 val as u64,
1137 )
1138 }
1139 }
1140 #[inline]
1141 #[allow(unnecessary_transmutes)]
1142 pub fn new_bitfield_1(
1143 method_visi: rb_method_visibility_t,
1144 module_func: ::std::os::raw::c_uint,
1145 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1146 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1147 __bindgen_bitfield_unit.set_const::<0usize, 3u8>({
1148 let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
1149 method_visi as u64
1150 });
1151 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
1152 let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
1153 module_func as u64
1154 });
1155 __bindgen_bitfield_unit
1156 }
1157}
1158pub type rb_scope_visibility_t = rb_scope_visi_struct;
1159#[repr(C)]
1160#[derive(Debug, Copy, Clone)]
1161pub struct rb_cref_struct {
1162 pub flags: VALUE,
1163 pub refinements: VALUE,
1164 pub klass: VALUE,
1165 pub next: *mut rb_cref_struct,
1166 pub scope_visi: rb_scope_visibility_t,
1167}
1168pub type rb_cref_t = rb_cref_struct;
1169#[repr(C)]
1170#[derive(Debug, Copy, Clone)]
1171pub struct rb_method_entry_struct {
1172 pub flags: VALUE,
1173 pub defined_class: VALUE,
1174 pub def: *mut rb_method_definition_struct,
1175 pub called_id: ID,
1176 pub owner: VALUE,
1177}
1178#[repr(C)]
1179#[derive(Debug, Copy, Clone)]
1180pub struct rb_callable_method_entry_struct {
1181 pub flags: VALUE,
1182 pub defined_class: VALUE,
1183 pub def: *mut rb_method_definition_struct,
1184 pub called_id: ID,
1185 pub owner: VALUE,
1186}
1187pub type rb_callable_method_entry_t = rb_callable_method_entry_struct;
1188pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
1189pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
1190pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
1191pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
1192pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
1193pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
1194pub const rb_method_type_t_VM_METHOD_TYPE_ALIAS: rb_method_type_t = 6;
1195pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 7;
1196pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 8;
1197pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 9;
1198pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 10;
1199pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 11;
1200pub type rb_method_type_t = ::std::os::raw::c_uint;
1201pub type rb_iseq_t = rb_iseq_struct;
1202#[repr(C)]
1203#[derive(Debug, Copy, Clone)]
1204pub struct rb_method_iseq_struct {
1205 pub iseqptr: *const rb_iseq_t,
1206 pub cref: *mut rb_cref_t,
1207}
1208pub type rb_method_iseq_t = rb_method_iseq_struct;
1209#[repr(C)]
1210#[derive(Debug, Copy, Clone)]
1211pub struct rb_method_cfunc_struct {
1212 pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1213 pub invoker: ::std::option::Option<
1214 unsafe extern "C" fn(
1215 func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1216 recv: VALUE,
1217 argc: ::std::os::raw::c_int,
1218 argv: *const VALUE,
1219 ) -> VALUE,
1220 >,
1221 pub argc: ::std::os::raw::c_int,
1222}
1223pub type rb_method_cfunc_t = rb_method_cfunc_struct;
1224#[repr(C)]
1225#[derive(Debug, Copy, Clone)]
1226pub struct rb_method_attr_struct {
1227 pub id: ID,
1228 pub location: VALUE,
1229}
1230pub type rb_method_attr_t = rb_method_attr_struct;
1231#[repr(C)]
1232#[derive(Debug, Copy, Clone)]
1233pub struct rb_method_alias_struct {
1234 pub original_me: *const rb_method_entry_struct,
1235}
1236pub type rb_method_alias_t = rb_method_alias_struct;
1237#[repr(C)]
1238#[derive(Debug, Copy, Clone)]
1239pub struct rb_method_refined_struct {
1240 pub orig_me: *const rb_method_entry_struct,
1241 pub owner: VALUE,
1242}
1243pub type rb_method_refined_t = rb_method_refined_struct;
1244#[repr(C)]
1245#[derive(Debug, Copy, Clone)]
1246pub struct rb_method_bmethod_struct {
1247 pub proc_: VALUE,
1248 pub hooks: *mut rb_hook_list_struct,
1249}
1250pub type rb_method_bmethod_t = rb_method_bmethod_struct;
1251pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND: method_optimized_type = 0;
1252pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL: method_optimized_type = 1;
1253pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_BLOCK_CALL: method_optimized_type = 2;
1254pub const method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX: method_optimized_type = 3;
1255pub type method_optimized_type = ::std::os::raw::c_uint;
1256#[repr(C, packed)]
1257#[derive(Copy, Clone)]
1258pub struct rb_method_definition_struct {
1259 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
1260 pub body: rb_method_definition_struct__bindgen_ty_1,
1261 pub original_id: ID,
1262}
1263#[repr(C)]
1264#[derive(Copy, Clone)]
1265pub union rb_method_definition_struct__bindgen_ty_1 {
1266 pub iseq: rb_method_iseq_t,
1267 pub cfunc: rb_method_cfunc_t,
1268 pub attr: rb_method_attr_t,
1269 pub alias: rb_method_alias_t,
1270 pub refined: rb_method_refined_t,
1271 pub bmethod: rb_method_bmethod_t,
1272 pub optimize_type: method_optimized_type,
1273}
1274impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
1275 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1276 write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
1277 }
1278}
1279impl rb_method_definition_struct {
1280 #[inline]
1281 #[allow(unnecessary_transmutes)]
1282 pub fn type_(&self) -> rb_method_type_t {
1283 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u32) }
1284 }
1285 #[inline]
1286 #[allow(unnecessary_transmutes)]
1287 pub fn set_type(&mut self, val: rb_method_type_t) {
1288 unsafe {
1289 let val: u32 = ::std::mem::transmute(val);
1290 self._bitfield_1.set_const::<0usize, 4u8>(val as u64)
1291 }
1292 }
1293 #[inline]
1294 #[allow(unnecessary_transmutes)]
1295 pub unsafe fn type__raw(this: *const Self) -> rb_method_type_t {
1296 unsafe {
1297 ::std::mem::transmute(
1298 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<0usize, 4u8>(
1299 ::std::ptr::addr_of!((*this)._bitfield_1),
1300 ) as u32,
1301 )
1302 }
1303 }
1304 #[inline]
1305 #[allow(unnecessary_transmutes)]
1306 pub unsafe fn set_type_raw(this: *mut Self, val: rb_method_type_t) {
1307 unsafe {
1308 let val: u32 = ::std::mem::transmute(val);
1309 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<0usize, 4u8>(
1310 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1311 val as u64,
1312 )
1313 }
1314 }
1315 #[inline]
1316 #[allow(unnecessary_transmutes)]
1317 pub fn alias_count(&self) -> ::std::os::raw::c_int {
1318 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 28u8>() as u32) }
1319 }
1320 #[inline]
1321 #[allow(unnecessary_transmutes)]
1322 pub fn set_alias_count(&mut self, val: ::std::os::raw::c_int) {
1323 unsafe {
1324 let val: u32 = ::std::mem::transmute(val);
1325 self._bitfield_1.set_const::<4usize, 28u8>(val as u64)
1326 }
1327 }
1328 #[inline]
1329 #[allow(unnecessary_transmutes)]
1330 pub unsafe fn alias_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1331 unsafe {
1332 ::std::mem::transmute(
1333 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<4usize, 28u8>(
1334 ::std::ptr::addr_of!((*this)._bitfield_1),
1335 ) as u32,
1336 )
1337 }
1338 }
1339 #[inline]
1340 #[allow(unnecessary_transmutes)]
1341 pub unsafe fn set_alias_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1342 unsafe {
1343 let val: u32 = ::std::mem::transmute(val);
1344 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<4usize, 28u8>(
1345 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1346 val as u64,
1347 )
1348 }
1349 }
1350 #[inline]
1351 #[allow(unnecessary_transmutes)]
1352 pub fn complemented_count(&self) -> ::std::os::raw::c_int {
1353 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<32usize, 28u8>() as u32) }
1354 }
1355 #[inline]
1356 #[allow(unnecessary_transmutes)]
1357 pub fn set_complemented_count(&mut self, val: ::std::os::raw::c_int) {
1358 unsafe {
1359 let val: u32 = ::std::mem::transmute(val);
1360 self._bitfield_1.set_const::<32usize, 28u8>(val as u64)
1361 }
1362 }
1363 #[inline]
1364 #[allow(unnecessary_transmutes)]
1365 pub unsafe fn complemented_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1366 unsafe {
1367 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<
1368 32usize,
1369 28u8,
1370 >(::std::ptr::addr_of!((*this)._bitfield_1))
1371 as u32)
1372 }
1373 }
1374 #[inline]
1375 #[allow(unnecessary_transmutes)]
1376 pub unsafe fn set_complemented_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1377 unsafe {
1378 let val: u32 = ::std::mem::transmute(val);
1379 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<32usize, 28u8>(
1380 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1381 val as u64,
1382 )
1383 }
1384 }
1385 #[inline]
1386 #[allow(unnecessary_transmutes)]
1387 pub fn new_bitfield_1(
1388 type_: rb_method_type_t,
1389 alias_count: ::std::os::raw::c_int,
1390 complemented_count: ::std::os::raw::c_int,
1391 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
1392 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
1393 __bindgen_bitfield_unit.set_const::<0usize, 4u8>({
1394 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1395 type_ as u64
1396 });
1397 __bindgen_bitfield_unit.set_const::<4usize, 28u8>({
1398 let alias_count: u32 = unsafe { ::std::mem::transmute(alias_count) };
1399 alias_count as u64
1400 });
1401 __bindgen_bitfield_unit.set_const::<32usize, 28u8>({
1402 let complemented_count: u32 = unsafe { ::std::mem::transmute(complemented_count) };
1403 complemented_count as u64
1404 });
1405 __bindgen_bitfield_unit
1406 }
1407}
1408pub type rb_atomic_t = ::std::os::raw::c_uint;
1409#[repr(C)]
1410#[derive(Debug, Copy, Clone)]
1411pub struct list_node {
1412 pub next: *mut list_node,
1413 pub prev: *mut list_node,
1414}
1415#[repr(C)]
1416#[derive(Debug, Copy, Clone)]
1417pub struct list_head {
1418 pub n: list_node,
1419}
1420pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
1421pub type rb_nativethread_id_t = pthread_t;
1422pub type rb_nativethread_lock_t = pthread_mutex_t;
1423pub type rb_nativethread_cond_t = pthread_cond_t;
1424#[repr(C)]
1425#[derive(Copy, Clone)]
1426pub struct native_thread_data_struct {
1427 pub node: native_thread_data_struct__bindgen_ty_1,
1428 pub cond: native_thread_data_struct__bindgen_ty_2,
1429}
1430#[repr(C)]
1431#[derive(Copy, Clone)]
1432pub union native_thread_data_struct__bindgen_ty_1 {
1433 pub ubf: list_node,
1434 pub gvl: list_node,
1435}
1436impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_1 {
1437 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1438 write!(f, "native_thread_data_struct__bindgen_ty_1 {{ union }}")
1439 }
1440}
1441#[repr(C)]
1442#[derive(Copy, Clone)]
1443pub union native_thread_data_struct__bindgen_ty_2 {
1444 pub intr: rb_nativethread_cond_t,
1445 pub gvlq: rb_nativethread_cond_t,
1446}
1447impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_2 {
1448 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1449 write!(f, "native_thread_data_struct__bindgen_ty_2 {{ union }}")
1450 }
1451}
1452impl ::std::fmt::Debug for native_thread_data_struct {
1453 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1454 write!(
1455 f,
1456 "native_thread_data_struct {{ node: {:?}, cond: {:?} }}",
1457 self.node, self.cond
1458 )
1459 }
1460}
1461pub type native_thread_data_t = native_thread_data_struct;
1462#[repr(C)]
1463#[derive(Copy, Clone)]
1464pub struct rb_global_vm_lock_struct {
1465 pub owner: *const rb_thread_struct,
1466 pub lock: rb_nativethread_lock_t,
1467 pub waitq: list_head,
1468 pub timer: *const rb_thread_struct,
1469 pub timer_err: ::std::os::raw::c_int,
1470 pub switch_cond: rb_nativethread_cond_t,
1471 pub switch_wait_cond: rb_nativethread_cond_t,
1472 pub need_yield: ::std::os::raw::c_int,
1473 pub wait_yield: ::std::os::raw::c_int,
1474}
1475impl ::std::fmt::Debug for rb_global_vm_lock_struct {
1476 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1477 write ! (f , "rb_global_vm_lock_struct {{ owner: {:?}, lock: {:?}, waitq: {:?}, timer: {:?}, timer_err: {:?}, switch_cond: {:?}, switch_wait_cond: {:?}, need_yield: {:?}, wait_yield: {:?} }}" , self . owner , self . lock , self . waitq , self . timer , self . timer_err , self . switch_cond , self . switch_wait_cond , self . need_yield , self . wait_yield)
1478 }
1479}
1480pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
1481#[repr(C)]
1482#[derive(Debug, Copy, Clone)]
1483pub struct __jmp_buf_tag {
1484 pub __jmpbuf: __jmp_buf,
1485 pub __mask_was_saved: ::std::os::raw::c_int,
1486 pub __saved_mask: __sigset_t,
1487}
1488pub type jmp_buf = [__jmp_buf_tag; 1usize];
1489pub type rb_snum_t = ::std::os::raw::c_long;
1490pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1491pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1492pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1493pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1494pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1495pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1496pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1497pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1498pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1499pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1500pub type ruby_tag_type = ::std::os::raw::c_uint;
1501pub type rb_compile_option_t = rb_compile_option_struct;
1502#[repr(C)]
1503#[derive(Copy, Clone)]
1504pub struct iseq_inline_cache_entry {
1505 pub ic_serial: rb_serial_t,
1506 pub ic_cref: *const rb_cref_t,
1507 pub ic_value: iseq_inline_cache_entry__bindgen_ty_1,
1508}
1509#[repr(C)]
1510#[derive(Copy, Clone)]
1511pub union iseq_inline_cache_entry__bindgen_ty_1 {
1512 pub index: usize,
1513 pub value: VALUE,
1514}
1515impl ::std::fmt::Debug for iseq_inline_cache_entry__bindgen_ty_1 {
1516 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1517 write!(f, "iseq_inline_cache_entry__bindgen_ty_1 {{ union }}")
1518 }
1519}
1520impl ::std::fmt::Debug for iseq_inline_cache_entry {
1521 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1522 write!(
1523 f,
1524 "iseq_inline_cache_entry {{ ic_serial: {:?}, ic_cref: {:?}, ic_value: {:?} }}",
1525 self.ic_serial, self.ic_cref, self.ic_value
1526 )
1527 }
1528}
1529#[repr(C)]
1530#[derive(Copy, Clone)]
1531pub union iseq_inline_storage_entry {
1532 pub once: iseq_inline_storage_entry__bindgen_ty_1,
1533 pub cache: iseq_inline_cache_entry,
1534}
1535#[repr(C)]
1536#[derive(Debug, Copy, Clone)]
1537pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1538 pub running_thread: *mut rb_thread_struct,
1539 pub value: VALUE,
1540}
1541impl ::std::fmt::Debug for iseq_inline_storage_entry {
1542 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1543 write!(f, "iseq_inline_storage_entry {{ union }}")
1544 }
1545}
1546pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
1547pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
1548pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
1549pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
1550pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
1551pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
1552pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
1553pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
1554pub type method_missing_reason = ::std::os::raw::c_uint;
1555#[repr(C)]
1556#[derive(Debug, Copy, Clone)]
1557pub struct rb_call_info {
1558 pub mid: ID,
1559 pub flag: ::std::os::raw::c_uint,
1560 pub orig_argc: ::std::os::raw::c_int,
1561}
1562#[repr(C)]
1563#[derive(Debug, Copy, Clone)]
1564pub struct rb_calling_info {
1565 pub block_handler: VALUE,
1566 pub recv: VALUE,
1567 pub argc: ::std::os::raw::c_int,
1568}
1569pub type vm_call_handler = ::std::option::Option<
1570 unsafe extern "C" fn(
1571 ec: *mut rb_execution_context_struct,
1572 cfp: *mut rb_control_frame_struct,
1573 calling: *mut rb_calling_info,
1574 ci: *const rb_call_info,
1575 cc: *mut rb_call_cache,
1576 ) -> VALUE,
1577>;
1578#[repr(C)]
1579#[derive(Copy, Clone)]
1580pub struct rb_call_cache {
1581 pub method_state: rb_serial_t,
1582 pub class_serial: rb_serial_t,
1583 pub me: *const rb_callable_method_entry_t,
1584 pub call: vm_call_handler,
1585 pub aux: rb_call_cache__bindgen_ty_1,
1586}
1587#[repr(C)]
1588#[derive(Copy, Clone)]
1589pub union rb_call_cache__bindgen_ty_1 {
1590 pub index: ::std::os::raw::c_uint,
1591 pub method_missing_reason: method_missing_reason,
1592 pub inc_sp: ::std::os::raw::c_int,
1593}
1594impl ::std::fmt::Debug for rb_call_cache__bindgen_ty_1 {
1595 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1596 write!(f, "rb_call_cache__bindgen_ty_1 {{ union }}")
1597 }
1598}
1599impl ::std::fmt::Debug for rb_call_cache {
1600 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1601 write ! (f , "rb_call_cache {{ method_state: {:?}, class_serial: {:?}, me: {:?}, call: {:?}, aux: {:?} }}" , self . method_state , self . class_serial , self . me , self . call , self . aux)
1602 }
1603}
1604#[repr(C)]
1605#[derive(Debug, Copy, Clone)]
1606pub struct rb_iseq_location_struct {
1607 pub pathobj: VALUE,
1608 pub base_label: VALUE,
1609 pub label: VALUE,
1610 pub first_lineno: VALUE,
1611 pub node_id: ::std::os::raw::c_int,
1612 pub code_location: rb_code_location_t,
1613}
1614pub type rb_iseq_location_t = rb_iseq_location_struct;
1615#[repr(C)]
1616#[derive(Debug)]
1617pub struct rb_mjit_unit {
1618 _unused: [u8; 0],
1619}
1620#[repr(C)]
1621#[derive(Debug, Copy, Clone)]
1622pub struct rb_iseq_constant_body {
1623 pub type_: rb_iseq_constant_body_iseq_type,
1624 pub iseq_size: ::std::os::raw::c_uint,
1625 pub iseq_encoded: *const VALUE,
1626 pub param: rb_iseq_constant_body__bindgen_ty_1,
1627 pub location: rb_iseq_location_t,
1628 pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1629 pub local_table: *const ID,
1630 pub catch_table: *const iseq_catch_table,
1631 pub parent_iseq: *const rb_iseq_struct,
1632 pub local_iseq: *mut rb_iseq_struct,
1633 pub is_entries: *mut iseq_inline_storage_entry,
1634 pub ci_entries: *mut rb_call_info,
1635 pub cc_entries: *mut rb_call_cache,
1636 pub variable: rb_iseq_constant_body__bindgen_ty_2,
1637 pub local_table_size: ::std::os::raw::c_uint,
1638 pub is_size: ::std::os::raw::c_uint,
1639 pub ci_size: ::std::os::raw::c_uint,
1640 pub ci_kw_size: ::std::os::raw::c_uint,
1641 pub stack_max: ::std::os::raw::c_uint,
1642 pub jit_func: ::std::option::Option<
1643 unsafe extern "C" fn(
1644 arg1: *mut rb_execution_context_struct,
1645 arg2: *mut rb_control_frame_struct,
1646 ) -> VALUE,
1647 >,
1648 pub total_calls: ::std::os::raw::c_ulong,
1649 pub jit_unit: *mut rb_mjit_unit,
1650 pub catch_except_p: ::std::os::raw::c_char,
1651}
1652pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_TOP: rb_iseq_constant_body_iseq_type = 0;
1653pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_constant_body_iseq_type = 1;
1654pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_constant_body_iseq_type = 2;
1655pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_constant_body_iseq_type = 3;
1656pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_constant_body_iseq_type = 4;
1657pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_constant_body_iseq_type = 5;
1658pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_constant_body_iseq_type = 6;
1659pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_constant_body_iseq_type = 7;
1660pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_constant_body_iseq_type = 8;
1661pub type rb_iseq_constant_body_iseq_type = ::std::os::raw::c_uint;
1662#[repr(C)]
1663#[derive(Debug, Copy, Clone)]
1664pub struct rb_iseq_constant_body__bindgen_ty_1 {
1665 pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1666 pub size: ::std::os::raw::c_uint,
1667 pub lead_num: ::std::os::raw::c_int,
1668 pub opt_num: ::std::os::raw::c_int,
1669 pub rest_start: ::std::os::raw::c_int,
1670 pub post_start: ::std::os::raw::c_int,
1671 pub post_num: ::std::os::raw::c_int,
1672 pub block_start: ::std::os::raw::c_int,
1673 pub opt_table: *const VALUE,
1674 pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1675}
1676#[repr(C)]
1677#[derive(Debug, Copy, Clone)]
1678pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1679 pub _bindgen_align: [u32; 0],
1680 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1681 pub __bindgen_padding_0: [u8; 3usize],
1682}
1683impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1684 #[inline]
1685 #[allow(unnecessary_transmutes)]
1686 pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1687 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
1688 }
1689 #[inline]
1690 #[allow(unnecessary_transmutes)]
1691 pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1692 unsafe {
1693 let val: u32 = ::std::mem::transmute(val);
1694 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
1695 }
1696 }
1697 #[inline]
1698 #[allow(unnecessary_transmutes)]
1699 pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1700 unsafe {
1701 ::std::mem::transmute(
1702 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
1703 ::std::ptr::addr_of!((*this)._bitfield_1),
1704 ) as u32,
1705 )
1706 }
1707 }
1708 #[inline]
1709 #[allow(unnecessary_transmutes)]
1710 pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1711 unsafe {
1712 let val: u32 = ::std::mem::transmute(val);
1713 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
1714 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1715 val as u64,
1716 )
1717 }
1718 }
1719 #[inline]
1720 #[allow(unnecessary_transmutes)]
1721 pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1722 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
1723 }
1724 #[inline]
1725 #[allow(unnecessary_transmutes)]
1726 pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1727 unsafe {
1728 let val: u32 = ::std::mem::transmute(val);
1729 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
1730 }
1731 }
1732 #[inline]
1733 #[allow(unnecessary_transmutes)]
1734 pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1735 unsafe {
1736 ::std::mem::transmute(
1737 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
1738 ::std::ptr::addr_of!((*this)._bitfield_1),
1739 ) as u32,
1740 )
1741 }
1742 }
1743 #[inline]
1744 #[allow(unnecessary_transmutes)]
1745 pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1746 unsafe {
1747 let val: u32 = ::std::mem::transmute(val);
1748 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
1749 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1750 val as u64,
1751 )
1752 }
1753 }
1754 #[inline]
1755 #[allow(unnecessary_transmutes)]
1756 pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1757 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
1758 }
1759 #[inline]
1760 #[allow(unnecessary_transmutes)]
1761 pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1762 unsafe {
1763 let val: u32 = ::std::mem::transmute(val);
1764 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
1765 }
1766 }
1767 #[inline]
1768 #[allow(unnecessary_transmutes)]
1769 pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1770 unsafe {
1771 ::std::mem::transmute(
1772 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
1773 ::std::ptr::addr_of!((*this)._bitfield_1),
1774 ) as u32,
1775 )
1776 }
1777 }
1778 #[inline]
1779 #[allow(unnecessary_transmutes)]
1780 pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1781 unsafe {
1782 let val: u32 = ::std::mem::transmute(val);
1783 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
1784 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1785 val as u64,
1786 )
1787 }
1788 }
1789 #[inline]
1790 #[allow(unnecessary_transmutes)]
1791 pub fn has_post(&self) -> ::std::os::raw::c_uint {
1792 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1793 }
1794 #[inline]
1795 #[allow(unnecessary_transmutes)]
1796 pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1797 unsafe {
1798 let val: u32 = ::std::mem::transmute(val);
1799 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1800 }
1801 }
1802 #[inline]
1803 #[allow(unnecessary_transmutes)]
1804 pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1805 unsafe {
1806 ::std::mem::transmute(
1807 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
1808 ::std::ptr::addr_of!((*this)._bitfield_1),
1809 ) as u32,
1810 )
1811 }
1812 }
1813 #[inline]
1814 #[allow(unnecessary_transmutes)]
1815 pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1816 unsafe {
1817 let val: u32 = ::std::mem::transmute(val);
1818 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
1819 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1820 val as u64,
1821 )
1822 }
1823 }
1824 #[inline]
1825 #[allow(unnecessary_transmutes)]
1826 pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1827 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
1828 }
1829 #[inline]
1830 #[allow(unnecessary_transmutes)]
1831 pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1832 unsafe {
1833 let val: u32 = ::std::mem::transmute(val);
1834 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
1835 }
1836 }
1837 #[inline]
1838 #[allow(unnecessary_transmutes)]
1839 pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1840 unsafe {
1841 ::std::mem::transmute(
1842 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
1843 ::std::ptr::addr_of!((*this)._bitfield_1),
1844 ) as u32,
1845 )
1846 }
1847 }
1848 #[inline]
1849 #[allow(unnecessary_transmutes)]
1850 pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1851 unsafe {
1852 let val: u32 = ::std::mem::transmute(val);
1853 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
1854 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1855 val as u64,
1856 )
1857 }
1858 }
1859 #[inline]
1860 #[allow(unnecessary_transmutes)]
1861 pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1862 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
1863 }
1864 #[inline]
1865 #[allow(unnecessary_transmutes)]
1866 pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1867 unsafe {
1868 let val: u32 = ::std::mem::transmute(val);
1869 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
1870 }
1871 }
1872 #[inline]
1873 #[allow(unnecessary_transmutes)]
1874 pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1875 unsafe {
1876 ::std::mem::transmute(
1877 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
1878 ::std::ptr::addr_of!((*this)._bitfield_1),
1879 ) as u32,
1880 )
1881 }
1882 }
1883 #[inline]
1884 #[allow(unnecessary_transmutes)]
1885 pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1886 unsafe {
1887 let val: u32 = ::std::mem::transmute(val);
1888 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
1889 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1890 val as u64,
1891 )
1892 }
1893 }
1894 #[inline]
1895 #[allow(unnecessary_transmutes)]
1896 pub fn has_block(&self) -> ::std::os::raw::c_uint {
1897 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
1898 }
1899 #[inline]
1900 #[allow(unnecessary_transmutes)]
1901 pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1902 unsafe {
1903 let val: u32 = ::std::mem::transmute(val);
1904 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
1905 }
1906 }
1907 #[inline]
1908 #[allow(unnecessary_transmutes)]
1909 pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1910 unsafe {
1911 ::std::mem::transmute(
1912 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(
1913 ::std::ptr::addr_of!((*this)._bitfield_1),
1914 ) as u32,
1915 )
1916 }
1917 }
1918 #[inline]
1919 #[allow(unnecessary_transmutes)]
1920 pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1921 unsafe {
1922 let val: u32 = ::std::mem::transmute(val);
1923 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(
1924 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1925 val as u64,
1926 )
1927 }
1928 }
1929 #[inline]
1930 #[allow(unnecessary_transmutes)]
1931 pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1932 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
1933 }
1934 #[inline]
1935 #[allow(unnecessary_transmutes)]
1936 pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1937 unsafe {
1938 let val: u32 = ::std::mem::transmute(val);
1939 self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
1940 }
1941 }
1942 #[inline]
1943 #[allow(unnecessary_transmutes)]
1944 pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1945 unsafe {
1946 ::std::mem::transmute(
1947 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<7usize, 1u8>(
1948 ::std::ptr::addr_of!((*this)._bitfield_1),
1949 ) as u32,
1950 )
1951 }
1952 }
1953 #[inline]
1954 #[allow(unnecessary_transmutes)]
1955 pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1956 unsafe {
1957 let val: u32 = ::std::mem::transmute(val);
1958 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<7usize, 1u8>(
1959 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1960 val as u64,
1961 )
1962 }
1963 }
1964 #[inline]
1965 #[allow(unnecessary_transmutes)]
1966 pub fn new_bitfield_1(
1967 has_lead: ::std::os::raw::c_uint,
1968 has_opt: ::std::os::raw::c_uint,
1969 has_rest: ::std::os::raw::c_uint,
1970 has_post: ::std::os::raw::c_uint,
1971 has_kw: ::std::os::raw::c_uint,
1972 has_kwrest: ::std::os::raw::c_uint,
1973 has_block: ::std::os::raw::c_uint,
1974 ambiguous_param0: ::std::os::raw::c_uint,
1975 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1976 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1977 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
1978 let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1979 has_lead as u64
1980 });
1981 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
1982 let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1983 has_opt as u64
1984 });
1985 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
1986 let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1987 has_rest as u64
1988 });
1989 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
1990 let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1991 has_post as u64
1992 });
1993 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
1994 let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1995 has_kw as u64
1996 });
1997 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
1998 let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1999 has_kwrest as u64
2000 });
2001 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
2002 let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
2003 has_block as u64
2004 });
2005 __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
2006 let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
2007 ambiguous_param0 as u64
2008 });
2009 __bindgen_bitfield_unit
2010 }
2011}
2012#[repr(C)]
2013#[derive(Debug, Copy, Clone)]
2014pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
2015 pub num: ::std::os::raw::c_int,
2016 pub required_num: ::std::os::raw::c_int,
2017 pub bits_start: ::std::os::raw::c_int,
2018 pub rest_start: ::std::os::raw::c_int,
2019 pub table: *const ID,
2020 pub default_values: *const VALUE,
2021}
2022#[repr(C)]
2023#[derive(Debug, Copy, Clone)]
2024pub struct rb_iseq_constant_body_iseq_insn_info {
2025 pub body: *const iseq_insn_info_entry,
2026 pub positions: *mut ::std::os::raw::c_uint,
2027 pub size: ::std::os::raw::c_uint,
2028 pub succ_index_table: *mut succ_index_table,
2029}
2030#[repr(C)]
2031#[derive(Debug, Copy, Clone)]
2032pub struct rb_iseq_constant_body__bindgen_ty_2 {
2033 pub flip_count: rb_snum_t,
2034 pub coverage: VALUE,
2035 pub pc2branchindex: VALUE,
2036 pub original_iseq: *mut VALUE,
2037}
2038#[repr(C)]
2039#[derive(Copy, Clone)]
2040pub struct rb_iseq_struct {
2041 pub flags: VALUE,
2042 pub wrapper: VALUE,
2043 pub body: *mut rb_iseq_constant_body,
2044 pub aux: rb_iseq_struct__bindgen_ty_1,
2045}
2046#[repr(C)]
2047#[derive(Copy, Clone)]
2048pub union rb_iseq_struct__bindgen_ty_1 {
2049 pub compile_data: *mut iseq_compile_data,
2050 pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
2051 pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
2052}
2053#[repr(C)]
2054#[derive(Debug, Copy, Clone)]
2055pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
2056 pub obj: VALUE,
2057 pub index: ::std::os::raw::c_int,
2058}
2059#[repr(C)]
2060#[derive(Debug, Copy, Clone)]
2061pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
2062 pub local_hooks: *mut rb_hook_list_struct,
2063 pub global_trace_events: rb_event_flag_t,
2064}
2065impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
2066 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2067 write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
2068 }
2069}
2070impl ::std::fmt::Debug for rb_iseq_struct {
2071 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2072 write!(
2073 f,
2074 "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
2075 self.flags, self.wrapper, self.body, self.aux
2076 )
2077 }
2078}
2079pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
2080#[repr(C)]
2081#[derive(Debug, Copy, Clone)]
2082pub struct rb_at_exit_list {
2083 pub func: rb_vm_at_exit_func,
2084 pub next: *mut rb_at_exit_list,
2085}
2086#[repr(C)]
2087#[derive(Debug)]
2088pub struct rb_objspace {
2089 _unused: [u8; 0],
2090}
2091#[repr(C)]
2092#[derive(Debug, Copy, Clone)]
2093pub struct rb_hook_list_struct {
2094 pub hooks: *mut rb_event_hook_struct,
2095 pub events: rb_event_flag_t,
2096 pub need_clean: ::std::os::raw::c_uint,
2097 pub running: ::std::os::raw::c_uint,
2098}
2099pub type rb_hook_list_t = rb_hook_list_struct;
2100#[repr(C)]
2101#[derive(Copy, Clone)]
2102pub struct rb_vm_struct {
2103 pub self_: VALUE,
2104 pub gvl: rb_global_vm_lock_t,
2105 pub main_thread: *mut rb_thread_struct,
2106 pub running_thread: *const rb_thread_struct,
2107 pub main_altstack: *mut ::std::os::raw::c_void,
2108 pub fork_gen: rb_serial_t,
2109 pub waitpid_lock: rb_nativethread_lock_t,
2110 pub waiting_pids: list_head,
2111 pub waiting_grps: list_head,
2112 pub waiting_fds: list_head,
2113 pub living_threads: list_head,
2114 pub thgroup_default: VALUE,
2115 pub living_thread_num: ::std::os::raw::c_int,
2116 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2117 pub sleeper: ::std::os::raw::c_int,
2118 pub mark_object_ary: VALUE,
2119 pub special_exceptions: [VALUE; 5usize],
2120 pub top_self: VALUE,
2121 pub load_path: VALUE,
2122 pub load_path_snapshot: VALUE,
2123 pub load_path_check_cache: VALUE,
2124 pub expanded_load_path: VALUE,
2125 pub loaded_features: VALUE,
2126 pub loaded_features_snapshot: VALUE,
2127 pub loaded_features_index: *mut st_table,
2128 pub loading_table: *mut st_table,
2129 pub trap_list: rb_vm_struct__bindgen_ty_1,
2130 pub global_hooks: rb_hook_list_t,
2131 pub ensure_rollback_table: *mut st_table,
2132 pub postponed_job_buffer: *mut rb_postponed_job_struct,
2133 pub postponed_job_index: ::std::os::raw::c_int,
2134 pub src_encoding_index: ::std::os::raw::c_int,
2135 pub workqueue: list_head,
2136 pub workqueue_lock: rb_nativethread_lock_t,
2137 pub verbose: VALUE,
2138 pub debug: VALUE,
2139 pub orig_progname: VALUE,
2140 pub progname: VALUE,
2141 pub coverages: VALUE,
2142 pub coverage_mode: ::std::os::raw::c_int,
2143 pub defined_module_hash: VALUE,
2144 pub objspace: *mut rb_objspace,
2145 pub at_exit: *mut rb_at_exit_list,
2146 pub defined_strings: *mut VALUE,
2147 pub frozen_strings: *mut st_table,
2148 pub default_params: rb_vm_struct__bindgen_ty_2,
2149 pub redefined_flag: [::std::os::raw::c_short; 28usize],
2150}
2151#[repr(C)]
2152#[derive(Debug, Copy, Clone)]
2153pub struct rb_vm_struct__bindgen_ty_1 {
2154 pub cmd: [VALUE; 65usize],
2155 pub safe: [::std::os::raw::c_uchar; 65usize],
2156}
2157#[repr(C)]
2158#[derive(Debug, Copy, Clone)]
2159pub struct rb_vm_struct__bindgen_ty_2 {
2160 pub thread_vm_stack_size: usize,
2161 pub thread_machine_stack_size: usize,
2162 pub fiber_vm_stack_size: usize,
2163 pub fiber_machine_stack_size: usize,
2164}
2165impl ::std::fmt::Debug for rb_vm_struct {
2166 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2167 write ! (f , "rb_vm_struct {{ self: {:?}, gvl: {:?}, main_thread: {:?}, running_thread: {:?}, main_altstack: {:?}, fork_gen: {:?}, waitpid_lock: {:?}, waiting_pids: {:?}, waiting_grps: {:?}, waiting_fds: {:?}, living_threads: {:?}, thgroup_default: {:?}, living_thread_num: {:?}, running : {:?}, thread_abort_on_exception : {:?}, thread_report_on_exception : {:?}, safe_level_ : {:?}, 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: {:?}, global_hooks: {:?}, ensure_rollback_table: {:?}, postponed_job_buffer: {:?}, postponed_job_index: {:?}, src_encoding_index: {:?}, workqueue: {:?}, workqueue_lock: {:?}, verbose: {:?}, debug: {:?}, orig_progname: {:?}, progname: {:?}, coverages: {:?}, coverage_mode: {:?}, defined_module_hash: {:?}, objspace: {:?}, at_exit: {:?}, defined_strings: {:?}, frozen_strings: {:?}, default_params: {:?}, redefined_flag: {:?} }}" , self . self_ , self . gvl , self . main_thread , self . running_thread , self . main_altstack , self . fork_gen , self . waitpid_lock , self . waiting_pids , self . waiting_grps , self . waiting_fds , self . living_threads , self . thgroup_default , self . living_thread_num , self . running () , self . thread_abort_on_exception () , self . thread_report_on_exception () , self . safe_level_ () , 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 . global_hooks , self . ensure_rollback_table , self . postponed_job_buffer , self . postponed_job_index , self . src_encoding_index , self . workqueue , self . workqueue_lock , self . verbose , self . debug , self . orig_progname , self . progname , self . coverages , self . coverage_mode , self . defined_module_hash , self . objspace , self . at_exit , self . defined_strings , self . frozen_strings , self . default_params , self . redefined_flag)
2168 }
2169}
2170impl rb_vm_struct {
2171 #[inline]
2172 #[allow(unnecessary_transmutes)]
2173 pub fn running(&self) -> ::std::os::raw::c_uint {
2174 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2175 }
2176 #[inline]
2177 #[allow(unnecessary_transmutes)]
2178 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2179 unsafe {
2180 let val: u32 = ::std::mem::transmute(val);
2181 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2182 }
2183 }
2184 #[inline]
2185 #[allow(unnecessary_transmutes)]
2186 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2187 unsafe {
2188 ::std::mem::transmute(
2189 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
2190 ::std::ptr::addr_of!((*this)._bitfield_1),
2191 ) as u32,
2192 )
2193 }
2194 }
2195 #[inline]
2196 #[allow(unnecessary_transmutes)]
2197 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2198 unsafe {
2199 let val: u32 = ::std::mem::transmute(val);
2200 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
2201 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2202 val as u64,
2203 )
2204 }
2205 }
2206 #[inline]
2207 #[allow(unnecessary_transmutes)]
2208 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2209 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2210 }
2211 #[inline]
2212 #[allow(unnecessary_transmutes)]
2213 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2214 unsafe {
2215 let val: u32 = ::std::mem::transmute(val);
2216 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2217 }
2218 }
2219 #[inline]
2220 #[allow(unnecessary_transmutes)]
2221 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2222 unsafe {
2223 ::std::mem::transmute(
2224 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
2225 ::std::ptr::addr_of!((*this)._bitfield_1),
2226 ) as u32,
2227 )
2228 }
2229 }
2230 #[inline]
2231 #[allow(unnecessary_transmutes)]
2232 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2233 unsafe {
2234 let val: u32 = ::std::mem::transmute(val);
2235 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
2236 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2237 val as u64,
2238 )
2239 }
2240 }
2241 #[inline]
2242 #[allow(unnecessary_transmutes)]
2243 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2244 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2245 }
2246 #[inline]
2247 #[allow(unnecessary_transmutes)]
2248 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2249 unsafe {
2250 let val: u32 = ::std::mem::transmute(val);
2251 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2252 }
2253 }
2254 #[inline]
2255 #[allow(unnecessary_transmutes)]
2256 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2257 unsafe {
2258 ::std::mem::transmute(
2259 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2260 ::std::ptr::addr_of!((*this)._bitfield_1),
2261 ) as u32,
2262 )
2263 }
2264 }
2265 #[inline]
2266 #[allow(unnecessary_transmutes)]
2267 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2268 unsafe {
2269 let val: u32 = ::std::mem::transmute(val);
2270 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2271 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2272 val as u64,
2273 )
2274 }
2275 }
2276 #[inline]
2277 #[allow(unnecessary_transmutes)]
2278 pub fn safe_level_(&self) -> ::std::os::raw::c_uint {
2279 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2280 }
2281 #[inline]
2282 #[allow(unnecessary_transmutes)]
2283 pub fn set_safe_level_(&mut self, val: ::std::os::raw::c_uint) {
2284 unsafe {
2285 let val: u32 = ::std::mem::transmute(val);
2286 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2287 }
2288 }
2289 #[inline]
2290 #[allow(unnecessary_transmutes)]
2291 pub unsafe fn safe_level__raw(this: *const Self) -> ::std::os::raw::c_uint {
2292 unsafe {
2293 ::std::mem::transmute(
2294 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
2295 ::std::ptr::addr_of!((*this)._bitfield_1),
2296 ) as u32,
2297 )
2298 }
2299 }
2300 #[inline]
2301 #[allow(unnecessary_transmutes)]
2302 pub unsafe fn set_safe_level__raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2303 unsafe {
2304 let val: u32 = ::std::mem::transmute(val);
2305 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
2306 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2307 val as u64,
2308 )
2309 }
2310 }
2311 #[inline]
2312 #[allow(unnecessary_transmutes)]
2313 pub fn new_bitfield_1(
2314 running: ::std::os::raw::c_uint,
2315 thread_abort_on_exception: ::std::os::raw::c_uint,
2316 thread_report_on_exception: ::std::os::raw::c_uint,
2317 safe_level_: ::std::os::raw::c_uint,
2318 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2319 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2320 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2321 let running: u32 = unsafe { ::std::mem::transmute(running) };
2322 running as u64
2323 });
2324 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2325 let thread_abort_on_exception: u32 =
2326 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2327 thread_abort_on_exception as u64
2328 });
2329 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2330 let thread_report_on_exception: u32 =
2331 unsafe { ::std::mem::transmute(thread_report_on_exception) };
2332 thread_report_on_exception as u64
2333 });
2334 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2335 let safe_level_: u32 = unsafe { ::std::mem::transmute(safe_level_) };
2336 safe_level_ as u64
2337 });
2338 __bindgen_bitfield_unit
2339 }
2340}
2341pub type rb_vm_t = rb_vm_struct;
2342#[repr(C)]
2343#[derive(Debug, Copy, Clone)]
2344pub struct rb_control_frame_struct {
2345 pub pc: *const VALUE,
2346 pub sp: *mut VALUE,
2347 pub iseq: *const rb_iseq_t,
2348 pub self_: VALUE,
2349 pub ep: *const VALUE,
2350 pub block_code: *const ::std::os::raw::c_void,
2351 pub bp: *const VALUE,
2352}
2353pub type rb_control_frame_t = rb_control_frame_struct;
2354pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2355pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2356pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2357pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2358pub type rb_thread_status = ::std::os::raw::c_uint;
2359pub type rb_jmpbuf_t = jmp_buf;
2360#[repr(C)]
2361#[derive(Debug, Copy, Clone)]
2362pub struct rb_vm_tag {
2363 pub tag: VALUE,
2364 pub retval: VALUE,
2365 pub buf: rb_jmpbuf_t,
2366 pub prev: *mut rb_vm_tag,
2367 pub state: ruby_tag_type,
2368}
2369#[repr(C)]
2370#[derive(Debug, Copy, Clone)]
2371pub struct rb_vm_protect_tag {
2372 pub prev: *mut rb_vm_protect_tag,
2373}
2374#[repr(C)]
2375#[derive(Debug, Copy, Clone)]
2376pub struct rb_unblock_callback {
2377 pub func: rb_unblock_function_t,
2378 pub arg: *mut ::std::os::raw::c_void,
2379}
2380#[repr(C)]
2381#[derive(Debug)]
2382pub struct rb_mutex_struct {
2383 _unused: [u8; 0],
2384}
2385#[repr(C)]
2386#[derive(Debug, Copy, Clone)]
2387pub struct rb_thread_list_struct {
2388 pub next: *mut rb_thread_list_struct,
2389 pub th: *mut rb_thread_struct,
2390}
2391pub type rb_thread_list_t = rb_thread_list_struct;
2392#[repr(C)]
2393#[derive(Debug, Copy, Clone)]
2394pub struct rb_ensure_entry {
2395 pub marker: VALUE,
2396 pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
2397 pub data2: VALUE,
2398}
2399#[repr(C)]
2400#[derive(Debug, Copy, Clone)]
2401pub struct rb_ensure_list {
2402 pub next: *mut rb_ensure_list,
2403 pub entry: rb_ensure_entry,
2404}
2405pub type rb_ensure_list_t = rb_ensure_list;
2406pub type rb_fiber_t = rb_fiber_struct;
2407#[repr(C)]
2408#[derive(Debug, Copy, Clone)]
2409pub struct rb_execution_context_struct {
2410 pub vm_stack: *mut VALUE,
2411 pub vm_stack_size: usize,
2412 pub cfp: *mut rb_control_frame_t,
2413 pub tag: *mut rb_vm_tag,
2414 pub protect_tag: *mut rb_vm_protect_tag,
2415 pub interrupt_flag: rb_atomic_t,
2416 pub interrupt_mask: rb_atomic_t,
2417 pub fiber_ptr: *mut rb_fiber_t,
2418 pub thread_ptr: *mut rb_thread_struct,
2419 pub local_storage: *mut st_table,
2420 pub local_storage_recursive_hash: VALUE,
2421 pub local_storage_recursive_hash_for_trace: VALUE,
2422 pub root_lep: *const VALUE,
2423 pub root_svar: VALUE,
2424 pub ensure_list: *mut rb_ensure_list_t,
2425 pub trace_arg: *mut rb_trace_arg_struct,
2426 pub errinfo: VALUE,
2427 pub passed_block_handler: VALUE,
2428 pub raised_flag: u8,
2429 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2430 pub private_const_reference: VALUE,
2431 pub machine: rb_execution_context_struct__bindgen_ty_1,
2432}
2433#[repr(C)]
2434#[derive(Debug, Copy, Clone)]
2435pub struct rb_execution_context_struct__bindgen_ty_1 {
2436 pub stack_start: *mut VALUE,
2437 pub stack_end: *mut VALUE,
2438 pub stack_maxsize: usize,
2439 pub regs: jmp_buf,
2440}
2441impl rb_execution_context_struct {
2442 #[inline]
2443 #[allow(unnecessary_transmutes)]
2444 pub fn method_missing_reason(&self) -> method_missing_reason {
2445 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 8u8>() as u32) }
2446 }
2447 #[inline]
2448 #[allow(unnecessary_transmutes)]
2449 pub fn set_method_missing_reason(&mut self, val: method_missing_reason) {
2450 unsafe {
2451 let val: u32 = ::std::mem::transmute(val);
2452 self._bitfield_1.set_const::<0usize, 8u8>(val as u64)
2453 }
2454 }
2455 #[inline]
2456 #[allow(unnecessary_transmutes)]
2457 pub unsafe fn method_missing_reason_raw(this: *const Self) -> method_missing_reason {
2458 unsafe {
2459 ::std::mem::transmute(
2460 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 8u8>(
2461 ::std::ptr::addr_of!((*this)._bitfield_1),
2462 ) as u32,
2463 )
2464 }
2465 }
2466 #[inline]
2467 #[allow(unnecessary_transmutes)]
2468 pub unsafe fn set_method_missing_reason_raw(this: *mut Self, val: method_missing_reason) {
2469 unsafe {
2470 let val: u32 = ::std::mem::transmute(val);
2471 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 8u8>(
2472 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2473 val as u64,
2474 )
2475 }
2476 }
2477 #[inline]
2478 #[allow(unnecessary_transmutes)]
2479 pub fn new_bitfield_1(
2480 method_missing_reason: method_missing_reason,
2481 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2482 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2483 __bindgen_bitfield_unit.set_const::<0usize, 8u8>({
2484 let method_missing_reason: u32 =
2485 unsafe { ::std::mem::transmute(method_missing_reason) };
2486 method_missing_reason as u64
2487 });
2488 __bindgen_bitfield_unit
2489 }
2490}
2491pub type rb_execution_context_t = rb_execution_context_struct;
2492#[repr(C)]
2493#[derive(Copy, Clone)]
2494pub struct rb_thread_struct {
2495 pub vmlt_node: list_node,
2496 pub self_: VALUE,
2497 pub vm: *mut rb_vm_t,
2498 pub ec: *mut rb_execution_context_t,
2499 pub last_status: VALUE,
2500 pub calling: *mut rb_calling_info,
2501 pub top_self: VALUE,
2502 pub top_wrapper: VALUE,
2503 pub thread_id: rb_nativethread_id_t,
2504 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2505 pub priority: i8,
2506 pub running_time_us: u32,
2507 pub native_thread_data: native_thread_data_t,
2508 pub blocking_region_buffer: *mut ::std::os::raw::c_void,
2509 pub thgroup: VALUE,
2510 pub value: VALUE,
2511 pub pending_interrupt_queue: VALUE,
2512 pub pending_interrupt_mask_stack: VALUE,
2513 pub interrupt_lock: rb_nativethread_lock_t,
2514 pub unblock: rb_unblock_callback,
2515 pub locking_mutex: VALUE,
2516 pub keeping_mutexes: *mut rb_mutex_struct,
2517 pub join_list: *mut rb_thread_list_t,
2518 pub invoke_arg: rb_thread_struct__bindgen_ty_1,
2519 pub invoke_type: rb_thread_struct__bindgen_ty_2,
2520 pub stat_insn_usage: VALUE,
2521 pub root_fiber: *mut rb_fiber_t,
2522 pub root_jmpbuf: rb_jmpbuf_t,
2523 pub name: VALUE,
2524}
2525#[repr(C)]
2526#[derive(Copy, Clone)]
2527pub union rb_thread_struct__bindgen_ty_1 {
2528 pub proc_: rb_thread_struct__bindgen_ty_1__bindgen_ty_1,
2529 pub func: rb_thread_struct__bindgen_ty_1__bindgen_ty_2,
2530}
2531#[repr(C)]
2532#[derive(Debug, Copy, Clone)]
2533pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_1 {
2534 pub proc_: VALUE,
2535 pub args: VALUE,
2536}
2537#[repr(C)]
2538#[derive(Debug, Copy, Clone)]
2539pub struct rb_thread_struct__bindgen_ty_1__bindgen_ty_2 {
2540 pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
2541 pub arg: *mut ::std::os::raw::c_void,
2542}
2543impl ::std::fmt::Debug for rb_thread_struct__bindgen_ty_1 {
2544 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2545 write!(f, "rb_thread_struct__bindgen_ty_1 {{ union }}")
2546 }
2547}
2548pub const rb_thread_struct_thread_invoke_type_none: rb_thread_struct__bindgen_ty_2 = 0;
2549pub const rb_thread_struct_thread_invoke_type_proc: rb_thread_struct__bindgen_ty_2 = 1;
2550pub const rb_thread_struct_thread_invoke_type_func: rb_thread_struct__bindgen_ty_2 = 2;
2551pub type rb_thread_struct__bindgen_ty_2 = ::std::os::raw::c_uint;
2552impl ::std::fmt::Debug for rb_thread_struct {
2553 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2554 write ! (f , "rb_thread_struct {{ vmlt_node: {:?}, self: {:?}, vm: {:?}, ec: {:?}, last_status: {:?}, calling: {:?}, top_self: {:?}, top_wrapper: {:?}, thread_id: {:?}, status : {:?}, to_kill : {:?}, abort_on_exception : {:?}, report_on_exception : {:?}, pending_interrupt_queue_checked : {:?}, native_thread_data: {:?}, blocking_region_buffer: {:?}, thgroup: {:?}, value: {:?}, pending_interrupt_queue: {:?}, pending_interrupt_mask_stack: {:?}, interrupt_lock: {:?}, unblock: {:?}, locking_mutex: {:?}, keeping_mutexes: {:?}, join_list: {:?}, invoke_arg: {:?}, invoke_type: {:?}, stat_insn_usage: {:?}, root_fiber: {:?}, root_jmpbuf: {:?}, name: {:?} }}" , self . vmlt_node , self . self_ , self . vm , self . ec , self . last_status , self . calling , self . top_self , self . top_wrapper , self . thread_id , self . status () , self . to_kill () , self . abort_on_exception () , self . report_on_exception () , self . pending_interrupt_queue_checked () , self . native_thread_data , self . blocking_region_buffer , self . thgroup , self . value , self . pending_interrupt_queue , self . pending_interrupt_mask_stack , self . interrupt_lock , self . unblock , self . locking_mutex , self . keeping_mutexes , self . join_list , self . invoke_arg , self . invoke_type , self . stat_insn_usage , self . root_fiber , self . root_jmpbuf , self . name)
2555 }
2556}
2557impl rb_thread_struct {
2558 #[inline]
2559 #[allow(unnecessary_transmutes)]
2560 pub fn status(&self) -> rb_thread_status {
2561 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 2u8>() as u32) }
2562 }
2563 #[inline]
2564 #[allow(unnecessary_transmutes)]
2565 pub fn set_status(&mut self, val: rb_thread_status) {
2566 unsafe {
2567 let val: u32 = ::std::mem::transmute(val);
2568 self._bitfield_1.set_const::<0usize, 2u8>(val as u64)
2569 }
2570 }
2571 #[inline]
2572 #[allow(unnecessary_transmutes)]
2573 pub unsafe fn status_raw(this: *const Self) -> rb_thread_status {
2574 unsafe {
2575 ::std::mem::transmute(
2576 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 2u8>(
2577 ::std::ptr::addr_of!((*this)._bitfield_1),
2578 ) as u32,
2579 )
2580 }
2581 }
2582 #[inline]
2583 #[allow(unnecessary_transmutes)]
2584 pub unsafe fn set_status_raw(this: *mut Self, val: rb_thread_status) {
2585 unsafe {
2586 let val: u32 = ::std::mem::transmute(val);
2587 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 2u8>(
2588 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2589 val as u64,
2590 )
2591 }
2592 }
2593 #[inline]
2594 #[allow(unnecessary_transmutes)]
2595 pub fn to_kill(&self) -> ::std::os::raw::c_uint {
2596 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2597 }
2598 #[inline]
2599 #[allow(unnecessary_transmutes)]
2600 pub fn set_to_kill(&mut self, val: ::std::os::raw::c_uint) {
2601 unsafe {
2602 let val: u32 = ::std::mem::transmute(val);
2603 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2604 }
2605 }
2606 #[inline]
2607 #[allow(unnecessary_transmutes)]
2608 pub unsafe fn to_kill_raw(this: *const Self) -> ::std::os::raw::c_uint {
2609 unsafe {
2610 ::std::mem::transmute(
2611 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2612 ::std::ptr::addr_of!((*this)._bitfield_1),
2613 ) as u32,
2614 )
2615 }
2616 }
2617 #[inline]
2618 #[allow(unnecessary_transmutes)]
2619 pub unsafe fn set_to_kill_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2620 unsafe {
2621 let val: u32 = ::std::mem::transmute(val);
2622 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2623 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2624 val as u64,
2625 )
2626 }
2627 }
2628 #[inline]
2629 #[allow(unnecessary_transmutes)]
2630 pub fn abort_on_exception(&self) -> ::std::os::raw::c_uint {
2631 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2632 }
2633 #[inline]
2634 #[allow(unnecessary_transmutes)]
2635 pub fn set_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2636 unsafe {
2637 let val: u32 = ::std::mem::transmute(val);
2638 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2639 }
2640 }
2641 #[inline]
2642 #[allow(unnecessary_transmutes)]
2643 pub unsafe fn abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2644 unsafe {
2645 ::std::mem::transmute(
2646 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
2647 ::std::ptr::addr_of!((*this)._bitfield_1),
2648 ) as u32,
2649 )
2650 }
2651 }
2652 #[inline]
2653 #[allow(unnecessary_transmutes)]
2654 pub unsafe fn set_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2655 unsafe {
2656 let val: u32 = ::std::mem::transmute(val);
2657 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
2658 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2659 val as u64,
2660 )
2661 }
2662 }
2663 #[inline]
2664 #[allow(unnecessary_transmutes)]
2665 pub fn report_on_exception(&self) -> ::std::os::raw::c_uint {
2666 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
2667 }
2668 #[inline]
2669 #[allow(unnecessary_transmutes)]
2670 pub fn set_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2671 unsafe {
2672 let val: u32 = ::std::mem::transmute(val);
2673 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
2674 }
2675 }
2676 #[inline]
2677 #[allow(unnecessary_transmutes)]
2678 pub unsafe fn report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2679 unsafe {
2680 ::std::mem::transmute(
2681 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
2682 ::std::ptr::addr_of!((*this)._bitfield_1),
2683 ) as u32,
2684 )
2685 }
2686 }
2687 #[inline]
2688 #[allow(unnecessary_transmutes)]
2689 pub unsafe fn set_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2690 unsafe {
2691 let val: u32 = ::std::mem::transmute(val);
2692 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
2693 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2694 val as u64,
2695 )
2696 }
2697 }
2698 #[inline]
2699 #[allow(unnecessary_transmutes)]
2700 pub fn pending_interrupt_queue_checked(&self) -> ::std::os::raw::c_uint {
2701 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
2702 }
2703 #[inline]
2704 #[allow(unnecessary_transmutes)]
2705 pub fn set_pending_interrupt_queue_checked(&mut self, val: ::std::os::raw::c_uint) {
2706 unsafe {
2707 let val: u32 = ::std::mem::transmute(val);
2708 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
2709 }
2710 }
2711 #[inline]
2712 #[allow(unnecessary_transmutes)]
2713 pub unsafe fn pending_interrupt_queue_checked_raw(this: *const Self) -> ::std::os::raw::c_uint {
2714 unsafe {
2715 ::std::mem::transmute(
2716 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
2717 ::std::ptr::addr_of!((*this)._bitfield_1),
2718 ) as u32,
2719 )
2720 }
2721 }
2722 #[inline]
2723 #[allow(unnecessary_transmutes)]
2724 pub unsafe fn set_pending_interrupt_queue_checked_raw(
2725 this: *mut Self,
2726 val: ::std::os::raw::c_uint,
2727 ) {
2728 unsafe {
2729 let val: u32 = ::std::mem::transmute(val);
2730 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
2731 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2732 val as u64,
2733 )
2734 }
2735 }
2736 #[inline]
2737 #[allow(unnecessary_transmutes)]
2738 pub fn new_bitfield_1(
2739 status: rb_thread_status,
2740 to_kill: ::std::os::raw::c_uint,
2741 abort_on_exception: ::std::os::raw::c_uint,
2742 report_on_exception: ::std::os::raw::c_uint,
2743 pending_interrupt_queue_checked: ::std::os::raw::c_uint,
2744 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2745 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2746 __bindgen_bitfield_unit.set_const::<0usize, 2u8>({
2747 let status: u32 = unsafe { ::std::mem::transmute(status) };
2748 status as u64
2749 });
2750 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2751 let to_kill: u32 = unsafe { ::std::mem::transmute(to_kill) };
2752 to_kill as u64
2753 });
2754 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2755 let abort_on_exception: u32 = unsafe { ::std::mem::transmute(abort_on_exception) };
2756 abort_on_exception as u64
2757 });
2758 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
2759 let report_on_exception: u32 = unsafe { ::std::mem::transmute(report_on_exception) };
2760 report_on_exception as u64
2761 });
2762 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
2763 let pending_interrupt_queue_checked: u32 =
2764 unsafe { ::std::mem::transmute(pending_interrupt_queue_checked) };
2765 pending_interrupt_queue_checked as u64
2766 });
2767 __bindgen_bitfield_unit
2768 }
2769}
2770pub type rb_thread_t = rb_thread_struct;
2771#[repr(C)]
2772#[derive(Debug, Copy, Clone)]
2773pub struct rb_trace_arg_struct {
2774 pub event: rb_event_flag_t,
2775 pub ec: *mut rb_execution_context_t,
2776 pub cfp: *const rb_control_frame_t,
2777 pub self_: VALUE,
2778 pub id: ID,
2779 pub called_id: ID,
2780 pub klass: VALUE,
2781 pub data: VALUE,
2782 pub klass_solved: ::std::os::raw::c_int,
2783 pub lineno: ::std::os::raw::c_int,
2784 pub path: VALUE,
2785}
2786#[repr(C)]
2787#[derive(Debug, Copy, Clone)]
2788pub struct iseq_compile_data {
2789 pub err_info: VALUE,
2790 pub mark_ary: VALUE,
2791 pub catch_table_ary: VALUE,
2792 pub start_label: *mut iseq_label_data,
2793 pub end_label: *mut iseq_label_data,
2794 pub redo_label: *mut iseq_label_data,
2795 pub current_block: *const rb_iseq_t,
2796 pub ensure_node: VALUE,
2797 pub for_iseq: VALUE,
2798 pub ensure_node_stack: *mut iseq_compile_data_ensure_node_stack,
2799 pub storage_head: *mut iseq_compile_data_storage,
2800 pub storage_current: *mut iseq_compile_data_storage,
2801 pub loopval_popped: ::std::os::raw::c_int,
2802 pub last_line: ::std::os::raw::c_int,
2803 pub label_no: ::std::os::raw::c_int,
2804 pub node_level: ::std::os::raw::c_int,
2805 pub ci_index: ::std::os::raw::c_uint,
2806 pub ci_kw_index: ::std::os::raw::c_uint,
2807 pub option: *const rb_compile_option_t,
2808 pub ivar_cache_table: *mut rb_id_table,
2809}
2810#[repr(C)]
2811#[derive(Debug, Copy, Clone)]
2812pub struct rb_compile_option_struct {
2813 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2usize]>,
2814 pub debug_level: ::std::os::raw::c_int,
2815}
2816impl rb_compile_option_struct {
2817 #[inline]
2818 #[allow(unnecessary_transmutes)]
2819 pub fn inline_const_cache(&self) -> ::std::os::raw::c_uint {
2820 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2821 }
2822 #[inline]
2823 #[allow(unnecessary_transmutes)]
2824 pub fn set_inline_const_cache(&mut self, val: ::std::os::raw::c_uint) {
2825 unsafe {
2826 let val: u32 = ::std::mem::transmute(val);
2827 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2828 }
2829 }
2830 #[inline]
2831 #[allow(unnecessary_transmutes)]
2832 pub unsafe fn inline_const_cache_raw(this: *const Self) -> ::std::os::raw::c_uint {
2833 unsafe {
2834 ::std::mem::transmute(
2835 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<0usize, 1u8>(
2836 ::std::ptr::addr_of!((*this)._bitfield_1),
2837 ) as u32,
2838 )
2839 }
2840 }
2841 #[inline]
2842 #[allow(unnecessary_transmutes)]
2843 pub unsafe fn set_inline_const_cache_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2844 unsafe {
2845 let val: u32 = ::std::mem::transmute(val);
2846 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<0usize, 1u8>(
2847 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2848 val as u64,
2849 )
2850 }
2851 }
2852 #[inline]
2853 #[allow(unnecessary_transmutes)]
2854 pub fn peephole_optimization(&self) -> ::std::os::raw::c_uint {
2855 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2856 }
2857 #[inline]
2858 #[allow(unnecessary_transmutes)]
2859 pub fn set_peephole_optimization(&mut self, val: ::std::os::raw::c_uint) {
2860 unsafe {
2861 let val: u32 = ::std::mem::transmute(val);
2862 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2863 }
2864 }
2865 #[inline]
2866 #[allow(unnecessary_transmutes)]
2867 pub unsafe fn peephole_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2868 unsafe {
2869 ::std::mem::transmute(
2870 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<1usize, 1u8>(
2871 ::std::ptr::addr_of!((*this)._bitfield_1),
2872 ) as u32,
2873 )
2874 }
2875 }
2876 #[inline]
2877 #[allow(unnecessary_transmutes)]
2878 pub unsafe fn set_peephole_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2879 unsafe {
2880 let val: u32 = ::std::mem::transmute(val);
2881 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<1usize, 1u8>(
2882 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2883 val as u64,
2884 )
2885 }
2886 }
2887 #[inline]
2888 #[allow(unnecessary_transmutes)]
2889 pub fn tailcall_optimization(&self) -> ::std::os::raw::c_uint {
2890 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2891 }
2892 #[inline]
2893 #[allow(unnecessary_transmutes)]
2894 pub fn set_tailcall_optimization(&mut self, val: ::std::os::raw::c_uint) {
2895 unsafe {
2896 let val: u32 = ::std::mem::transmute(val);
2897 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2898 }
2899 }
2900 #[inline]
2901 #[allow(unnecessary_transmutes)]
2902 pub unsafe fn tailcall_optimization_raw(this: *const Self) -> ::std::os::raw::c_uint {
2903 unsafe {
2904 ::std::mem::transmute(
2905 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<2usize, 1u8>(
2906 ::std::ptr::addr_of!((*this)._bitfield_1),
2907 ) as u32,
2908 )
2909 }
2910 }
2911 #[inline]
2912 #[allow(unnecessary_transmutes)]
2913 pub unsafe fn set_tailcall_optimization_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2914 unsafe {
2915 let val: u32 = ::std::mem::transmute(val);
2916 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<2usize, 1u8>(
2917 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2918 val as u64,
2919 )
2920 }
2921 }
2922 #[inline]
2923 #[allow(unnecessary_transmutes)]
2924 pub fn specialized_instruction(&self) -> ::std::os::raw::c_uint {
2925 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2926 }
2927 #[inline]
2928 #[allow(unnecessary_transmutes)]
2929 pub fn set_specialized_instruction(&mut self, val: ::std::os::raw::c_uint) {
2930 unsafe {
2931 let val: u32 = ::std::mem::transmute(val);
2932 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2933 }
2934 }
2935 #[inline]
2936 #[allow(unnecessary_transmutes)]
2937 pub unsafe fn specialized_instruction_raw(this: *const Self) -> ::std::os::raw::c_uint {
2938 unsafe {
2939 ::std::mem::transmute(
2940 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<3usize, 1u8>(
2941 ::std::ptr::addr_of!((*this)._bitfield_1),
2942 ) as u32,
2943 )
2944 }
2945 }
2946 #[inline]
2947 #[allow(unnecessary_transmutes)]
2948 pub unsafe fn set_specialized_instruction_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2949 unsafe {
2950 let val: u32 = ::std::mem::transmute(val);
2951 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<3usize, 1u8>(
2952 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2953 val as u64,
2954 )
2955 }
2956 }
2957 #[inline]
2958 #[allow(unnecessary_transmutes)]
2959 pub fn operands_unification(&self) -> ::std::os::raw::c_uint {
2960 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
2961 }
2962 #[inline]
2963 #[allow(unnecessary_transmutes)]
2964 pub fn set_operands_unification(&mut self, val: ::std::os::raw::c_uint) {
2965 unsafe {
2966 let val: u32 = ::std::mem::transmute(val);
2967 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
2968 }
2969 }
2970 #[inline]
2971 #[allow(unnecessary_transmutes)]
2972 pub unsafe fn operands_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
2973 unsafe {
2974 ::std::mem::transmute(
2975 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<4usize, 1u8>(
2976 ::std::ptr::addr_of!((*this)._bitfield_1),
2977 ) as u32,
2978 )
2979 }
2980 }
2981 #[inline]
2982 #[allow(unnecessary_transmutes)]
2983 pub unsafe fn set_operands_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2984 unsafe {
2985 let val: u32 = ::std::mem::transmute(val);
2986 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<4usize, 1u8>(
2987 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2988 val as u64,
2989 )
2990 }
2991 }
2992 #[inline]
2993 #[allow(unnecessary_transmutes)]
2994 pub fn instructions_unification(&self) -> ::std::os::raw::c_uint {
2995 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
2996 }
2997 #[inline]
2998 #[allow(unnecessary_transmutes)]
2999 pub fn set_instructions_unification(&mut self, val: ::std::os::raw::c_uint) {
3000 unsafe {
3001 let val: u32 = ::std::mem::transmute(val);
3002 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
3003 }
3004 }
3005 #[inline]
3006 #[allow(unnecessary_transmutes)]
3007 pub unsafe fn instructions_unification_raw(this: *const Self) -> ::std::os::raw::c_uint {
3008 unsafe {
3009 ::std::mem::transmute(
3010 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<5usize, 1u8>(
3011 ::std::ptr::addr_of!((*this)._bitfield_1),
3012 ) as u32,
3013 )
3014 }
3015 }
3016 #[inline]
3017 #[allow(unnecessary_transmutes)]
3018 pub unsafe fn set_instructions_unification_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3019 unsafe {
3020 let val: u32 = ::std::mem::transmute(val);
3021 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<5usize, 1u8>(
3022 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3023 val as u64,
3024 )
3025 }
3026 }
3027 #[inline]
3028 #[allow(unnecessary_transmutes)]
3029 pub fn stack_caching(&self) -> ::std::os::raw::c_uint {
3030 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
3031 }
3032 #[inline]
3033 #[allow(unnecessary_transmutes)]
3034 pub fn set_stack_caching(&mut self, val: ::std::os::raw::c_uint) {
3035 unsafe {
3036 let val: u32 = ::std::mem::transmute(val);
3037 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
3038 }
3039 }
3040 #[inline]
3041 #[allow(unnecessary_transmutes)]
3042 pub unsafe fn stack_caching_raw(this: *const Self) -> ::std::os::raw::c_uint {
3043 unsafe {
3044 ::std::mem::transmute(
3045 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<6usize, 1u8>(
3046 ::std::ptr::addr_of!((*this)._bitfield_1),
3047 ) as u32,
3048 )
3049 }
3050 }
3051 #[inline]
3052 #[allow(unnecessary_transmutes)]
3053 pub unsafe fn set_stack_caching_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3054 unsafe {
3055 let val: u32 = ::std::mem::transmute(val);
3056 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<6usize, 1u8>(
3057 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3058 val as u64,
3059 )
3060 }
3061 }
3062 #[inline]
3063 #[allow(unnecessary_transmutes)]
3064 pub fn frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3065 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
3066 }
3067 #[inline]
3068 #[allow(unnecessary_transmutes)]
3069 pub fn set_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3070 unsafe {
3071 let val: u32 = ::std::mem::transmute(val);
3072 self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
3073 }
3074 }
3075 #[inline]
3076 #[allow(unnecessary_transmutes)]
3077 pub unsafe fn frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3078 unsafe {
3079 ::std::mem::transmute(
3080 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<7usize, 1u8>(
3081 ::std::ptr::addr_of!((*this)._bitfield_1),
3082 ) as u32,
3083 )
3084 }
3085 }
3086 #[inline]
3087 #[allow(unnecessary_transmutes)]
3088 pub unsafe fn set_frozen_string_literal_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3089 unsafe {
3090 let val: u32 = ::std::mem::transmute(val);
3091 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<7usize, 1u8>(
3092 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3093 val as u64,
3094 )
3095 }
3096 }
3097 #[inline]
3098 #[allow(unnecessary_transmutes)]
3099 pub fn debug_frozen_string_literal(&self) -> ::std::os::raw::c_uint {
3100 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<8usize, 1u8>() as u32) }
3101 }
3102 #[inline]
3103 #[allow(unnecessary_transmutes)]
3104 pub fn set_debug_frozen_string_literal(&mut self, val: ::std::os::raw::c_uint) {
3105 unsafe {
3106 let val: u32 = ::std::mem::transmute(val);
3107 self._bitfield_1.set_const::<8usize, 1u8>(val as u64)
3108 }
3109 }
3110 #[inline]
3111 #[allow(unnecessary_transmutes)]
3112 pub unsafe fn debug_frozen_string_literal_raw(this: *const Self) -> ::std::os::raw::c_uint {
3113 unsafe {
3114 ::std::mem::transmute(
3115 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<8usize, 1u8>(
3116 ::std::ptr::addr_of!((*this)._bitfield_1),
3117 ) as u32,
3118 )
3119 }
3120 }
3121 #[inline]
3122 #[allow(unnecessary_transmutes)]
3123 pub unsafe fn set_debug_frozen_string_literal_raw(
3124 this: *mut Self,
3125 val: ::std::os::raw::c_uint,
3126 ) {
3127 unsafe {
3128 let val: u32 = ::std::mem::transmute(val);
3129 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<8usize, 1u8>(
3130 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3131 val as u64,
3132 )
3133 }
3134 }
3135 #[inline]
3136 #[allow(unnecessary_transmutes)]
3137 pub fn coverage_enabled(&self) -> ::std::os::raw::c_uint {
3138 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<9usize, 1u8>() as u32) }
3139 }
3140 #[inline]
3141 #[allow(unnecessary_transmutes)]
3142 pub fn set_coverage_enabled(&mut self, val: ::std::os::raw::c_uint) {
3143 unsafe {
3144 let val: u32 = ::std::mem::transmute(val);
3145 self._bitfield_1.set_const::<9usize, 1u8>(val as u64)
3146 }
3147 }
3148 #[inline]
3149 #[allow(unnecessary_transmutes)]
3150 pub unsafe fn coverage_enabled_raw(this: *const Self) -> ::std::os::raw::c_uint {
3151 unsafe {
3152 ::std::mem::transmute(
3153 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_get_const::<9usize, 1u8>(
3154 ::std::ptr::addr_of!((*this)._bitfield_1),
3155 ) as u32,
3156 )
3157 }
3158 }
3159 #[inline]
3160 #[allow(unnecessary_transmutes)]
3161 pub unsafe fn set_coverage_enabled_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
3162 unsafe {
3163 let val: u32 = ::std::mem::transmute(val);
3164 <__BindgenBitfieldUnit<[u8; 2usize]>>::raw_set_const::<9usize, 1u8>(
3165 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
3166 val as u64,
3167 )
3168 }
3169 }
3170 #[inline]
3171 #[allow(unnecessary_transmutes)]
3172 pub fn new_bitfield_1(
3173 inline_const_cache: ::std::os::raw::c_uint,
3174 peephole_optimization: ::std::os::raw::c_uint,
3175 tailcall_optimization: ::std::os::raw::c_uint,
3176 specialized_instruction: ::std::os::raw::c_uint,
3177 operands_unification: ::std::os::raw::c_uint,
3178 instructions_unification: ::std::os::raw::c_uint,
3179 stack_caching: ::std::os::raw::c_uint,
3180 frozen_string_literal: ::std::os::raw::c_uint,
3181 debug_frozen_string_literal: ::std::os::raw::c_uint,
3182 coverage_enabled: ::std::os::raw::c_uint,
3183 ) -> __BindgenBitfieldUnit<[u8; 2usize]> {
3184 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 2usize]> = Default::default();
3185 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
3186 let inline_const_cache: u32 = unsafe { ::std::mem::transmute(inline_const_cache) };
3187 inline_const_cache as u64
3188 });
3189 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
3190 let peephole_optimization: u32 =
3191 unsafe { ::std::mem::transmute(peephole_optimization) };
3192 peephole_optimization as u64
3193 });
3194 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
3195 let tailcall_optimization: u32 =
3196 unsafe { ::std::mem::transmute(tailcall_optimization) };
3197 tailcall_optimization as u64
3198 });
3199 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
3200 let specialized_instruction: u32 =
3201 unsafe { ::std::mem::transmute(specialized_instruction) };
3202 specialized_instruction as u64
3203 });
3204 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
3205 let operands_unification: u32 = unsafe { ::std::mem::transmute(operands_unification) };
3206 operands_unification as u64
3207 });
3208 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
3209 let instructions_unification: u32 =
3210 unsafe { ::std::mem::transmute(instructions_unification) };
3211 instructions_unification as u64
3212 });
3213 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
3214 let stack_caching: u32 = unsafe { ::std::mem::transmute(stack_caching) };
3215 stack_caching as u64
3216 });
3217 __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
3218 let frozen_string_literal: u32 =
3219 unsafe { ::std::mem::transmute(frozen_string_literal) };
3220 frozen_string_literal as u64
3221 });
3222 __bindgen_bitfield_unit.set_const::<8usize, 1u8>({
3223 let debug_frozen_string_literal: u32 =
3224 unsafe { ::std::mem::transmute(debug_frozen_string_literal) };
3225 debug_frozen_string_literal as u64
3226 });
3227 __bindgen_bitfield_unit.set_const::<9usize, 1u8>({
3228 let coverage_enabled: u32 = unsafe { ::std::mem::transmute(coverage_enabled) };
3229 coverage_enabled as u64
3230 });
3231 __bindgen_bitfield_unit
3232 }
3233}
3234#[repr(C)]
3235#[derive(Debug, Copy, Clone)]
3236pub struct iseq_insn_info_entry {
3237 pub line_no: ::std::os::raw::c_int,
3238 pub events: rb_event_flag_t,
3239}
3240#[repr(C)]
3241#[derive(Debug, Copy, Clone)]
3242pub struct iseq_catch_table_entry {
3243 pub type_: iseq_catch_table_entry_catch_type,
3244 pub iseq: *const rb_iseq_t,
3245 pub start: ::std::os::raw::c_uint,
3246 pub end: ::std::os::raw::c_uint,
3247 pub cont: ::std::os::raw::c_uint,
3248 pub sp: ::std::os::raw::c_uint,
3249}
3250pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RESCUE: iseq_catch_table_entry_catch_type =
3251 3;
3252pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_ENSURE: iseq_catch_table_entry_catch_type =
3253 5;
3254pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_RETRY: iseq_catch_table_entry_catch_type = 7;
3255pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_BREAK: iseq_catch_table_entry_catch_type = 9;
3256pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_REDO: iseq_catch_table_entry_catch_type = 11;
3257pub const iseq_catch_table_entry_catch_type_CATCH_TYPE_NEXT: iseq_catch_table_entry_catch_type = 13;
3258pub type iseq_catch_table_entry_catch_type = ::std::os::raw::c_uint;
3259#[repr(C, packed)]
3260pub struct iseq_catch_table {
3261 pub size: ::std::os::raw::c_uint,
3262 pub entries: __IncompleteArrayField<iseq_catch_table_entry>,
3263}
3264#[repr(C)]
3265#[derive(Debug)]
3266pub struct iseq_compile_data_storage {
3267 pub next: *mut iseq_compile_data_storage,
3268 pub pos: ::std::os::raw::c_uint,
3269 pub size: ::std::os::raw::c_uint,
3270 pub buff: __IncompleteArrayField<::std::os::raw::c_char>,
3271}
3272#[repr(C)]
3273#[derive(Debug, Copy, Clone)]
3274pub struct rb_id_table {
3275 pub _address: u8,
3276}
3277#[repr(C)]
3278#[derive(Debug, Copy, Clone)]
3279pub struct succ_index_table {
3280 pub _address: u8,
3281}
3282#[repr(C)]
3283#[derive(Debug, Copy, Clone)]
3284pub struct rb_event_hook_struct {
3285 pub _address: u8,
3286}
3287#[repr(C)]
3288#[derive(Debug, Copy, Clone)]
3289pub struct rb_postponed_job_struct {
3290 pub _address: u8,
3291}
3292#[repr(C)]
3293#[derive(Debug, Copy, Clone)]
3294pub struct iseq_label_data {
3295 pub _address: u8,
3296}
3297#[repr(C)]
3298#[derive(Debug, Copy, Clone)]
3299pub struct iseq_compile_data_ensure_node_stack {
3300 pub _address: u8,
3301}