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}
1051pub const rb_method_visibility_t_METHOD_VISI_UNDEF: rb_method_visibility_t = 0;
1052pub const rb_method_visibility_t_METHOD_VISI_PUBLIC: rb_method_visibility_t = 1;
1053pub const rb_method_visibility_t_METHOD_VISI_PRIVATE: rb_method_visibility_t = 2;
1054pub const rb_method_visibility_t_METHOD_VISI_PROTECTED: rb_method_visibility_t = 3;
1055pub const rb_method_visibility_t_METHOD_VISI_MASK: rb_method_visibility_t = 3;
1056pub type rb_method_visibility_t = ::std::os::raw::c_uint;
1057#[repr(C)]
1058#[derive(Debug, Copy, Clone)]
1059pub struct rb_scope_visi_struct {
1060 pub _bindgen_align: [u32; 0],
1061 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1062 pub __bindgen_padding_0: [u8; 3usize],
1063}
1064impl rb_scope_visi_struct {
1065 #[inline]
1066 #[allow(unnecessary_transmutes)]
1067 pub fn method_visi(&self) -> rb_method_visibility_t {
1068 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 3u8>() as u32) }
1069 }
1070 #[inline]
1071 #[allow(unnecessary_transmutes)]
1072 pub fn set_method_visi(&mut self, val: rb_method_visibility_t) {
1073 unsafe {
1074 let val: u32 = ::std::mem::transmute(val);
1075 self._bitfield_1.set_const::<0usize, 3u8>(val as u64)
1076 }
1077 }
1078 #[inline]
1079 #[allow(unnecessary_transmutes)]
1080 pub unsafe fn method_visi_raw(this: *const Self) -> rb_method_visibility_t {
1081 unsafe {
1082 ::std::mem::transmute(
1083 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 3u8>(
1084 ::std::ptr::addr_of!((*this)._bitfield_1),
1085 ) as u32,
1086 )
1087 }
1088 }
1089 #[inline]
1090 #[allow(unnecessary_transmutes)]
1091 pub unsafe fn set_method_visi_raw(this: *mut Self, val: rb_method_visibility_t) {
1092 unsafe {
1093 let val: u32 = ::std::mem::transmute(val);
1094 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 3u8>(
1095 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1096 val as u64,
1097 )
1098 }
1099 }
1100 #[inline]
1101 #[allow(unnecessary_transmutes)]
1102 pub fn module_func(&self) -> ::std::os::raw::c_uint {
1103 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1104 }
1105 #[inline]
1106 #[allow(unnecessary_transmutes)]
1107 pub fn set_module_func(&mut self, val: ::std::os::raw::c_uint) {
1108 unsafe {
1109 let val: u32 = ::std::mem::transmute(val);
1110 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1111 }
1112 }
1113 #[inline]
1114 #[allow(unnecessary_transmutes)]
1115 pub unsafe fn module_func_raw(this: *const Self) -> ::std::os::raw::c_uint {
1116 unsafe {
1117 ::std::mem::transmute(
1118 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
1119 ::std::ptr::addr_of!((*this)._bitfield_1),
1120 ) as u32,
1121 )
1122 }
1123 }
1124 #[inline]
1125 #[allow(unnecessary_transmutes)]
1126 pub unsafe fn set_module_func_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1127 unsafe {
1128 let val: u32 = ::std::mem::transmute(val);
1129 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
1130 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1131 val as u64,
1132 )
1133 }
1134 }
1135 #[inline]
1136 #[allow(unnecessary_transmutes)]
1137 pub fn new_bitfield_1(
1138 method_visi: rb_method_visibility_t,
1139 module_func: ::std::os::raw::c_uint,
1140 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1141 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1142 __bindgen_bitfield_unit.set_const::<0usize, 3u8>({
1143 let method_visi: u32 = unsafe { ::std::mem::transmute(method_visi) };
1144 method_visi as u64
1145 });
1146 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
1147 let module_func: u32 = unsafe { ::std::mem::transmute(module_func) };
1148 module_func as u64
1149 });
1150 __bindgen_bitfield_unit
1151 }
1152}
1153pub type rb_scope_visibility_t = rb_scope_visi_struct;
1154#[repr(C)]
1155#[derive(Debug, Copy, Clone)]
1156pub struct rb_cref_struct {
1157 pub flags: VALUE,
1158 pub refinements: VALUE,
1159 pub klass: VALUE,
1160 pub next: *mut rb_cref_struct,
1161 pub scope_visi: rb_scope_visibility_t,
1162}
1163pub type rb_cref_t = rb_cref_struct;
1164#[repr(C)]
1165#[derive(Debug, Copy, Clone)]
1166pub struct rb_method_entry_struct {
1167 pub flags: VALUE,
1168 pub defined_class: VALUE,
1169 pub def: *mut rb_method_definition_struct,
1170 pub called_id: ID,
1171 pub owner: VALUE,
1172}
1173#[repr(C)]
1174#[derive(Debug, Copy, Clone)]
1175pub struct rb_callable_method_entry_struct {
1176 pub flags: VALUE,
1177 pub defined_class: VALUE,
1178 pub def: *mut rb_method_definition_struct,
1179 pub called_id: ID,
1180 pub owner: VALUE,
1181}
1182pub type rb_callable_method_entry_t = rb_callable_method_entry_struct;
1183pub const rb_method_type_t_VM_METHOD_TYPE_ISEQ: rb_method_type_t = 0;
1184pub const rb_method_type_t_VM_METHOD_TYPE_CFUNC: rb_method_type_t = 1;
1185pub const rb_method_type_t_VM_METHOD_TYPE_ATTRSET: rb_method_type_t = 2;
1186pub const rb_method_type_t_VM_METHOD_TYPE_IVAR: rb_method_type_t = 3;
1187pub const rb_method_type_t_VM_METHOD_TYPE_BMETHOD: rb_method_type_t = 4;
1188pub const rb_method_type_t_VM_METHOD_TYPE_ZSUPER: rb_method_type_t = 5;
1189pub const rb_method_type_t_VM_METHOD_TYPE_ALIAS: rb_method_type_t = 6;
1190pub const rb_method_type_t_VM_METHOD_TYPE_UNDEF: rb_method_type_t = 7;
1191pub const rb_method_type_t_VM_METHOD_TYPE_NOTIMPLEMENTED: rb_method_type_t = 8;
1192pub const rb_method_type_t_VM_METHOD_TYPE_OPTIMIZED: rb_method_type_t = 9;
1193pub const rb_method_type_t_VM_METHOD_TYPE_MISSING: rb_method_type_t = 10;
1194pub const rb_method_type_t_VM_METHOD_TYPE_REFINED: rb_method_type_t = 11;
1195pub type rb_method_type_t = ::std::os::raw::c_uint;
1196pub type rb_iseq_t = rb_iseq_struct;
1197#[repr(C)]
1198#[derive(Debug, Copy, Clone)]
1199pub struct rb_method_iseq_struct {
1200 pub iseqptr: *const rb_iseq_t,
1201 pub cref: *mut rb_cref_t,
1202}
1203pub type rb_method_iseq_t = rb_method_iseq_struct;
1204#[repr(C)]
1205#[derive(Debug, Copy, Clone)]
1206pub struct rb_method_cfunc_struct {
1207 pub func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1208 pub invoker: ::std::option::Option<
1209 unsafe extern "C" fn(
1210 func: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
1211 recv: VALUE,
1212 argc: ::std::os::raw::c_int,
1213 argv: *const VALUE,
1214 ) -> VALUE,
1215 >,
1216 pub argc: ::std::os::raw::c_int,
1217}
1218pub type rb_method_cfunc_t = rb_method_cfunc_struct;
1219#[repr(C)]
1220#[derive(Debug, Copy, Clone)]
1221pub struct rb_method_attr_struct {
1222 pub id: ID,
1223 pub location: VALUE,
1224}
1225pub type rb_method_attr_t = rb_method_attr_struct;
1226#[repr(C)]
1227#[derive(Debug, Copy, Clone)]
1228pub struct rb_method_alias_struct {
1229 pub original_me: *const rb_method_entry_struct,
1230}
1231pub type rb_method_alias_t = rb_method_alias_struct;
1232#[repr(C)]
1233#[derive(Debug, Copy, Clone)]
1234pub struct rb_method_refined_struct {
1235 pub orig_me: *const rb_method_entry_struct,
1236 pub owner: VALUE,
1237}
1238pub type rb_method_refined_t = rb_method_refined_struct;
1239#[repr(C)]
1240#[derive(Debug, Copy, Clone)]
1241pub struct rb_method_bmethod_struct {
1242 pub proc_: VALUE,
1243 pub hooks: *mut rb_hook_list_struct,
1244}
1245pub type rb_method_bmethod_t = rb_method_bmethod_struct;
1246pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_SEND: method_optimized_type = 0;
1247pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_CALL: method_optimized_type = 1;
1248pub const method_optimized_type_OPTIMIZED_METHOD_TYPE_BLOCK_CALL: method_optimized_type = 2;
1249pub const method_optimized_type_OPTIMIZED_METHOD_TYPE__MAX: method_optimized_type = 3;
1250pub type method_optimized_type = ::std::os::raw::c_uint;
1251#[repr(C, packed)]
1252#[derive(Copy, Clone)]
1253pub struct rb_method_definition_struct {
1254 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 8usize]>,
1255 pub body: rb_method_definition_struct__bindgen_ty_1,
1256 pub original_id: ID,
1257}
1258#[repr(C)]
1259#[derive(Copy, Clone)]
1260pub union rb_method_definition_struct__bindgen_ty_1 {
1261 pub iseq: rb_method_iseq_t,
1262 pub cfunc: rb_method_cfunc_t,
1263 pub attr: rb_method_attr_t,
1264 pub alias: rb_method_alias_t,
1265 pub refined: rb_method_refined_t,
1266 pub bmethod: rb_method_bmethod_t,
1267 pub optimize_type: method_optimized_type,
1268}
1269impl ::std::fmt::Debug for rb_method_definition_struct__bindgen_ty_1 {
1270 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1271 write!(f, "rb_method_definition_struct__bindgen_ty_1 {{ union }}")
1272 }
1273}
1274impl rb_method_definition_struct {
1275 #[inline]
1276 #[allow(unnecessary_transmutes)]
1277 pub fn type_(&self) -> rb_method_type_t {
1278 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 4u8>() as u32) }
1279 }
1280 #[inline]
1281 #[allow(unnecessary_transmutes)]
1282 pub fn set_type(&mut self, val: rb_method_type_t) {
1283 unsafe {
1284 let val: u32 = ::std::mem::transmute(val);
1285 self._bitfield_1.set_const::<0usize, 4u8>(val as u64)
1286 }
1287 }
1288 #[inline]
1289 #[allow(unnecessary_transmutes)]
1290 pub unsafe fn type__raw(this: *const Self) -> rb_method_type_t {
1291 unsafe {
1292 ::std::mem::transmute(
1293 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<0usize, 4u8>(
1294 ::std::ptr::addr_of!((*this)._bitfield_1),
1295 ) as u32,
1296 )
1297 }
1298 }
1299 #[inline]
1300 #[allow(unnecessary_transmutes)]
1301 pub unsafe fn set_type_raw(this: *mut Self, val: rb_method_type_t) {
1302 unsafe {
1303 let val: u32 = ::std::mem::transmute(val);
1304 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<0usize, 4u8>(
1305 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1306 val as u64,
1307 )
1308 }
1309 }
1310 #[inline]
1311 #[allow(unnecessary_transmutes)]
1312 pub fn alias_count(&self) -> ::std::os::raw::c_int {
1313 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 28u8>() as u32) }
1314 }
1315 #[inline]
1316 #[allow(unnecessary_transmutes)]
1317 pub fn set_alias_count(&mut self, val: ::std::os::raw::c_int) {
1318 unsafe {
1319 let val: u32 = ::std::mem::transmute(val);
1320 self._bitfield_1.set_const::<4usize, 28u8>(val as u64)
1321 }
1322 }
1323 #[inline]
1324 #[allow(unnecessary_transmutes)]
1325 pub unsafe fn alias_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1326 unsafe {
1327 ::std::mem::transmute(
1328 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<4usize, 28u8>(
1329 ::std::ptr::addr_of!((*this)._bitfield_1),
1330 ) as u32,
1331 )
1332 }
1333 }
1334 #[inline]
1335 #[allow(unnecessary_transmutes)]
1336 pub unsafe fn set_alias_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1337 unsafe {
1338 let val: u32 = ::std::mem::transmute(val);
1339 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<4usize, 28u8>(
1340 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1341 val as u64,
1342 )
1343 }
1344 }
1345 #[inline]
1346 #[allow(unnecessary_transmutes)]
1347 pub fn complemented_count(&self) -> ::std::os::raw::c_int {
1348 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<32usize, 28u8>() as u32) }
1349 }
1350 #[inline]
1351 #[allow(unnecessary_transmutes)]
1352 pub fn set_complemented_count(&mut self, val: ::std::os::raw::c_int) {
1353 unsafe {
1354 let val: u32 = ::std::mem::transmute(val);
1355 self._bitfield_1.set_const::<32usize, 28u8>(val as u64)
1356 }
1357 }
1358 #[inline]
1359 #[allow(unnecessary_transmutes)]
1360 pub unsafe fn complemented_count_raw(this: *const Self) -> ::std::os::raw::c_int {
1361 unsafe {
1362 ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 8usize]>>::raw_get_const::<
1363 32usize,
1364 28u8,
1365 >(::std::ptr::addr_of!((*this)._bitfield_1))
1366 as u32)
1367 }
1368 }
1369 #[inline]
1370 #[allow(unnecessary_transmutes)]
1371 pub unsafe fn set_complemented_count_raw(this: *mut Self, val: ::std::os::raw::c_int) {
1372 unsafe {
1373 let val: u32 = ::std::mem::transmute(val);
1374 <__BindgenBitfieldUnit<[u8; 8usize]>>::raw_set_const::<32usize, 28u8>(
1375 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1376 val as u64,
1377 )
1378 }
1379 }
1380 #[inline]
1381 #[allow(unnecessary_transmutes)]
1382 pub fn new_bitfield_1(
1383 type_: rb_method_type_t,
1384 alias_count: ::std::os::raw::c_int,
1385 complemented_count: ::std::os::raw::c_int,
1386 ) -> __BindgenBitfieldUnit<[u8; 8usize]> {
1387 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 8usize]> = Default::default();
1388 __bindgen_bitfield_unit.set_const::<0usize, 4u8>({
1389 let type_: u32 = unsafe { ::std::mem::transmute(type_) };
1390 type_ as u64
1391 });
1392 __bindgen_bitfield_unit.set_const::<4usize, 28u8>({
1393 let alias_count: u32 = unsafe { ::std::mem::transmute(alias_count) };
1394 alias_count as u64
1395 });
1396 __bindgen_bitfield_unit.set_const::<32usize, 28u8>({
1397 let complemented_count: u32 = unsafe { ::std::mem::transmute(complemented_count) };
1398 complemented_count as u64
1399 });
1400 __bindgen_bitfield_unit
1401 }
1402}
1403pub type rb_atomic_t = ::std::os::raw::c_uint;
1404#[repr(C)]
1405#[derive(Debug, Copy, Clone)]
1406pub struct list_node {
1407 pub next: *mut list_node,
1408 pub prev: *mut list_node,
1409}
1410#[repr(C)]
1411#[derive(Debug, Copy, Clone)]
1412pub struct list_head {
1413 pub n: list_node,
1414}
1415pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
1416pub type rb_nativethread_id_t = pthread_t;
1417pub type rb_nativethread_lock_t = pthread_mutex_t;
1418pub type rb_nativethread_cond_t = pthread_cond_t;
1419#[repr(C)]
1420#[derive(Copy, Clone)]
1421pub struct native_thread_data_struct {
1422 pub node: native_thread_data_struct__bindgen_ty_1,
1423 pub cond: native_thread_data_struct__bindgen_ty_2,
1424}
1425#[repr(C)]
1426#[derive(Copy, Clone)]
1427pub union native_thread_data_struct__bindgen_ty_1 {
1428 pub ubf: list_node,
1429 pub gvl: list_node,
1430}
1431impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_1 {
1432 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1433 write!(f, "native_thread_data_struct__bindgen_ty_1 {{ union }}")
1434 }
1435}
1436#[repr(C)]
1437#[derive(Copy, Clone)]
1438pub union native_thread_data_struct__bindgen_ty_2 {
1439 pub intr: rb_nativethread_cond_t,
1440 pub gvlq: rb_nativethread_cond_t,
1441}
1442impl ::std::fmt::Debug for native_thread_data_struct__bindgen_ty_2 {
1443 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1444 write!(f, "native_thread_data_struct__bindgen_ty_2 {{ union }}")
1445 }
1446}
1447impl ::std::fmt::Debug for native_thread_data_struct {
1448 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1449 write!(
1450 f,
1451 "native_thread_data_struct {{ node: {:?}, cond: {:?} }}",
1452 self.node, self.cond
1453 )
1454 }
1455}
1456pub type native_thread_data_t = native_thread_data_struct;
1457#[repr(C)]
1458#[derive(Copy, Clone)]
1459pub struct rb_global_vm_lock_struct {
1460 pub owner: *const rb_thread_struct,
1461 pub lock: rb_nativethread_lock_t,
1462 pub waitq: list_head,
1463 pub timer: *const rb_thread_struct,
1464 pub timer_err: ::std::os::raw::c_int,
1465 pub switch_cond: rb_nativethread_cond_t,
1466 pub switch_wait_cond: rb_nativethread_cond_t,
1467 pub need_yield: ::std::os::raw::c_int,
1468 pub wait_yield: ::std::os::raw::c_int,
1469}
1470impl ::std::fmt::Debug for rb_global_vm_lock_struct {
1471 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1472 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)
1473 }
1474}
1475pub type rb_global_vm_lock_t = rb_global_vm_lock_struct;
1476#[repr(C)]
1477#[derive(Debug, Copy, Clone)]
1478pub struct __jmp_buf_tag {
1479 pub __jmpbuf: __jmp_buf,
1480 pub __mask_was_saved: ::std::os::raw::c_int,
1481 pub __saved_mask: __sigset_t,
1482}
1483pub type jmp_buf = [__jmp_buf_tag; 1usize];
1484pub type rb_snum_t = ::std::os::raw::c_long;
1485pub const ruby_tag_type_RUBY_TAG_NONE: ruby_tag_type = 0;
1486pub const ruby_tag_type_RUBY_TAG_RETURN: ruby_tag_type = 1;
1487pub const ruby_tag_type_RUBY_TAG_BREAK: ruby_tag_type = 2;
1488pub const ruby_tag_type_RUBY_TAG_NEXT: ruby_tag_type = 3;
1489pub const ruby_tag_type_RUBY_TAG_RETRY: ruby_tag_type = 4;
1490pub const ruby_tag_type_RUBY_TAG_REDO: ruby_tag_type = 5;
1491pub const ruby_tag_type_RUBY_TAG_RAISE: ruby_tag_type = 6;
1492pub const ruby_tag_type_RUBY_TAG_THROW: ruby_tag_type = 7;
1493pub const ruby_tag_type_RUBY_TAG_FATAL: ruby_tag_type = 8;
1494pub const ruby_tag_type_RUBY_TAG_MASK: ruby_tag_type = 15;
1495pub type ruby_tag_type = ::std::os::raw::c_uint;
1496pub type rb_compile_option_t = rb_compile_option_struct;
1497#[repr(C)]
1498#[derive(Copy, Clone)]
1499pub struct iseq_inline_cache_entry {
1500 pub ic_serial: rb_serial_t,
1501 pub ic_cref: *const rb_cref_t,
1502 pub ic_value: iseq_inline_cache_entry__bindgen_ty_1,
1503}
1504#[repr(C)]
1505#[derive(Copy, Clone)]
1506pub union iseq_inline_cache_entry__bindgen_ty_1 {
1507 pub index: usize,
1508 pub value: VALUE,
1509}
1510impl ::std::fmt::Debug for iseq_inline_cache_entry__bindgen_ty_1 {
1511 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1512 write!(f, "iseq_inline_cache_entry__bindgen_ty_1 {{ union }}")
1513 }
1514}
1515impl ::std::fmt::Debug for iseq_inline_cache_entry {
1516 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1517 write!(
1518 f,
1519 "iseq_inline_cache_entry {{ ic_serial: {:?}, ic_cref: {:?}, ic_value: {:?} }}",
1520 self.ic_serial, self.ic_cref, self.ic_value
1521 )
1522 }
1523}
1524#[repr(C)]
1525#[derive(Copy, Clone)]
1526pub union iseq_inline_storage_entry {
1527 pub once: iseq_inline_storage_entry__bindgen_ty_1,
1528 pub cache: iseq_inline_cache_entry,
1529}
1530#[repr(C)]
1531#[derive(Debug, Copy, Clone)]
1532pub struct iseq_inline_storage_entry__bindgen_ty_1 {
1533 pub running_thread: *mut rb_thread_struct,
1534 pub value: VALUE,
1535}
1536impl ::std::fmt::Debug for iseq_inline_storage_entry {
1537 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1538 write!(f, "iseq_inline_storage_entry {{ union }}")
1539 }
1540}
1541pub const method_missing_reason_MISSING_NOENTRY: method_missing_reason = 0;
1542pub const method_missing_reason_MISSING_PRIVATE: method_missing_reason = 1;
1543pub const method_missing_reason_MISSING_PROTECTED: method_missing_reason = 2;
1544pub const method_missing_reason_MISSING_FCALL: method_missing_reason = 4;
1545pub const method_missing_reason_MISSING_VCALL: method_missing_reason = 8;
1546pub const method_missing_reason_MISSING_SUPER: method_missing_reason = 16;
1547pub const method_missing_reason_MISSING_MISSING: method_missing_reason = 32;
1548pub const method_missing_reason_MISSING_NONE: method_missing_reason = 64;
1549pub type method_missing_reason = ::std::os::raw::c_uint;
1550#[repr(C)]
1551#[derive(Debug, Copy, Clone)]
1552pub struct rb_call_info {
1553 pub mid: ID,
1554 pub flag: ::std::os::raw::c_uint,
1555 pub orig_argc: ::std::os::raw::c_int,
1556}
1557#[repr(C)]
1558#[derive(Debug, Copy, Clone)]
1559pub struct rb_calling_info {
1560 pub block_handler: VALUE,
1561 pub recv: VALUE,
1562 pub argc: ::std::os::raw::c_int,
1563}
1564pub type vm_call_handler = ::std::option::Option<
1565 unsafe extern "C" fn(
1566 ec: *mut rb_execution_context_struct,
1567 cfp: *mut rb_control_frame_struct,
1568 calling: *mut rb_calling_info,
1569 ci: *const rb_call_info,
1570 cc: *mut rb_call_cache,
1571 ) -> VALUE,
1572>;
1573#[repr(C)]
1574#[derive(Copy, Clone)]
1575pub struct rb_call_cache {
1576 pub method_state: rb_serial_t,
1577 pub class_serial: rb_serial_t,
1578 pub me: *const rb_callable_method_entry_t,
1579 pub call: vm_call_handler,
1580 pub aux: rb_call_cache__bindgen_ty_1,
1581}
1582#[repr(C)]
1583#[derive(Copy, Clone)]
1584pub union rb_call_cache__bindgen_ty_1 {
1585 pub index: ::std::os::raw::c_uint,
1586 pub method_missing_reason: method_missing_reason,
1587 pub inc_sp: ::std::os::raw::c_int,
1588}
1589impl ::std::fmt::Debug for rb_call_cache__bindgen_ty_1 {
1590 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1591 write!(f, "rb_call_cache__bindgen_ty_1 {{ union }}")
1592 }
1593}
1594impl ::std::fmt::Debug for rb_call_cache {
1595 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
1596 write ! (f , "rb_call_cache {{ method_state: {:?}, class_serial: {:?}, me: {:?}, call: {:?}, aux: {:?} }}" , self . method_state , self . class_serial , self . me , self . call , self . aux)
1597 }
1598}
1599#[repr(C)]
1600#[derive(Debug, Copy, Clone)]
1601pub struct rb_iseq_location_struct {
1602 pub pathobj: VALUE,
1603 pub base_label: VALUE,
1604 pub label: VALUE,
1605 pub first_lineno: VALUE,
1606 pub node_id: ::std::os::raw::c_int,
1607 pub code_location: rb_code_location_t,
1608}
1609pub type rb_iseq_location_t = rb_iseq_location_struct;
1610#[repr(C)]
1611#[derive(Debug)]
1612pub struct rb_mjit_unit {
1613 _unused: [u8; 0],
1614}
1615#[repr(C)]
1616#[derive(Debug, Copy, Clone)]
1617pub struct rb_iseq_constant_body {
1618 pub type_: rb_iseq_constant_body_iseq_type,
1619 pub iseq_size: ::std::os::raw::c_uint,
1620 pub iseq_encoded: *const VALUE,
1621 pub param: rb_iseq_constant_body__bindgen_ty_1,
1622 pub location: rb_iseq_location_t,
1623 pub insns_info: rb_iseq_constant_body_iseq_insn_info,
1624 pub local_table: *const ID,
1625 pub catch_table: *const iseq_catch_table,
1626 pub parent_iseq: *const rb_iseq_struct,
1627 pub local_iseq: *mut rb_iseq_struct,
1628 pub is_entries: *mut iseq_inline_storage_entry,
1629 pub ci_entries: *mut rb_call_info,
1630 pub cc_entries: *mut rb_call_cache,
1631 pub variable: rb_iseq_constant_body__bindgen_ty_2,
1632 pub local_table_size: ::std::os::raw::c_uint,
1633 pub is_size: ::std::os::raw::c_uint,
1634 pub ci_size: ::std::os::raw::c_uint,
1635 pub ci_kw_size: ::std::os::raw::c_uint,
1636 pub stack_max: ::std::os::raw::c_uint,
1637 pub jit_func: ::std::option::Option<
1638 unsafe extern "C" fn(
1639 arg1: *mut rb_execution_context_struct,
1640 arg2: *mut rb_control_frame_struct,
1641 ) -> VALUE,
1642 >,
1643 pub total_calls: ::std::os::raw::c_ulong,
1644 pub jit_unit: *mut rb_mjit_unit,
1645 pub catch_except_p: ::std::os::raw::c_char,
1646}
1647pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_TOP: rb_iseq_constant_body_iseq_type = 0;
1648pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_METHOD: rb_iseq_constant_body_iseq_type = 1;
1649pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_BLOCK: rb_iseq_constant_body_iseq_type = 2;
1650pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_CLASS: rb_iseq_constant_body_iseq_type = 3;
1651pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_RESCUE: rb_iseq_constant_body_iseq_type = 4;
1652pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_ENSURE: rb_iseq_constant_body_iseq_type = 5;
1653pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_EVAL: rb_iseq_constant_body_iseq_type = 6;
1654pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_MAIN: rb_iseq_constant_body_iseq_type = 7;
1655pub const rb_iseq_constant_body_iseq_type_ISEQ_TYPE_PLAIN: rb_iseq_constant_body_iseq_type = 8;
1656pub type rb_iseq_constant_body_iseq_type = ::std::os::raw::c_uint;
1657#[repr(C)]
1658#[derive(Debug, Copy, Clone)]
1659pub struct rb_iseq_constant_body__bindgen_ty_1 {
1660 pub flags: rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1,
1661 pub size: ::std::os::raw::c_uint,
1662 pub lead_num: ::std::os::raw::c_int,
1663 pub opt_num: ::std::os::raw::c_int,
1664 pub rest_start: ::std::os::raw::c_int,
1665 pub post_start: ::std::os::raw::c_int,
1666 pub post_num: ::std::os::raw::c_int,
1667 pub block_start: ::std::os::raw::c_int,
1668 pub opt_table: *const VALUE,
1669 pub keyword: *const rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword,
1670}
1671#[repr(C)]
1672#[derive(Debug, Copy, Clone)]
1673pub struct rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1674 pub _bindgen_align: [u32; 0],
1675 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
1676 pub __bindgen_padding_0: [u8; 3usize],
1677}
1678impl rb_iseq_constant_body__bindgen_ty_1__bindgen_ty_1 {
1679 #[inline]
1680 #[allow(unnecessary_transmutes)]
1681 pub fn has_lead(&self) -> ::std::os::raw::c_uint {
1682 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
1683 }
1684 #[inline]
1685 #[allow(unnecessary_transmutes)]
1686 pub fn set_has_lead(&mut self, val: ::std::os::raw::c_uint) {
1687 unsafe {
1688 let val: u32 = ::std::mem::transmute(val);
1689 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
1690 }
1691 }
1692 #[inline]
1693 #[allow(unnecessary_transmutes)]
1694 pub unsafe fn has_lead_raw(this: *const Self) -> ::std::os::raw::c_uint {
1695 unsafe {
1696 ::std::mem::transmute(
1697 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
1698 ::std::ptr::addr_of!((*this)._bitfield_1),
1699 ) as u32,
1700 )
1701 }
1702 }
1703 #[inline]
1704 #[allow(unnecessary_transmutes)]
1705 pub unsafe fn set_has_lead_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1706 unsafe {
1707 let val: u32 = ::std::mem::transmute(val);
1708 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
1709 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1710 val as u64,
1711 )
1712 }
1713 }
1714 #[inline]
1715 #[allow(unnecessary_transmutes)]
1716 pub fn has_opt(&self) -> ::std::os::raw::c_uint {
1717 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
1718 }
1719 #[inline]
1720 #[allow(unnecessary_transmutes)]
1721 pub fn set_has_opt(&mut self, val: ::std::os::raw::c_uint) {
1722 unsafe {
1723 let val: u32 = ::std::mem::transmute(val);
1724 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
1725 }
1726 }
1727 #[inline]
1728 #[allow(unnecessary_transmutes)]
1729 pub unsafe fn has_opt_raw(this: *const Self) -> ::std::os::raw::c_uint {
1730 unsafe {
1731 ::std::mem::transmute(
1732 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
1733 ::std::ptr::addr_of!((*this)._bitfield_1),
1734 ) as u32,
1735 )
1736 }
1737 }
1738 #[inline]
1739 #[allow(unnecessary_transmutes)]
1740 pub unsafe fn set_has_opt_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1741 unsafe {
1742 let val: u32 = ::std::mem::transmute(val);
1743 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
1744 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1745 val as u64,
1746 )
1747 }
1748 }
1749 #[inline]
1750 #[allow(unnecessary_transmutes)]
1751 pub fn has_rest(&self) -> ::std::os::raw::c_uint {
1752 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
1753 }
1754 #[inline]
1755 #[allow(unnecessary_transmutes)]
1756 pub fn set_has_rest(&mut self, val: ::std::os::raw::c_uint) {
1757 unsafe {
1758 let val: u32 = ::std::mem::transmute(val);
1759 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
1760 }
1761 }
1762 #[inline]
1763 #[allow(unnecessary_transmutes)]
1764 pub unsafe fn has_rest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1765 unsafe {
1766 ::std::mem::transmute(
1767 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
1768 ::std::ptr::addr_of!((*this)._bitfield_1),
1769 ) as u32,
1770 )
1771 }
1772 }
1773 #[inline]
1774 #[allow(unnecessary_transmutes)]
1775 pub unsafe fn set_has_rest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1776 unsafe {
1777 let val: u32 = ::std::mem::transmute(val);
1778 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
1779 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1780 val as u64,
1781 )
1782 }
1783 }
1784 #[inline]
1785 #[allow(unnecessary_transmutes)]
1786 pub fn has_post(&self) -> ::std::os::raw::c_uint {
1787 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
1788 }
1789 #[inline]
1790 #[allow(unnecessary_transmutes)]
1791 pub fn set_has_post(&mut self, val: ::std::os::raw::c_uint) {
1792 unsafe {
1793 let val: u32 = ::std::mem::transmute(val);
1794 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
1795 }
1796 }
1797 #[inline]
1798 #[allow(unnecessary_transmutes)]
1799 pub unsafe fn has_post_raw(this: *const Self) -> ::std::os::raw::c_uint {
1800 unsafe {
1801 ::std::mem::transmute(
1802 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
1803 ::std::ptr::addr_of!((*this)._bitfield_1),
1804 ) as u32,
1805 )
1806 }
1807 }
1808 #[inline]
1809 #[allow(unnecessary_transmutes)]
1810 pub unsafe fn set_has_post_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1811 unsafe {
1812 let val: u32 = ::std::mem::transmute(val);
1813 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
1814 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1815 val as u64,
1816 )
1817 }
1818 }
1819 #[inline]
1820 #[allow(unnecessary_transmutes)]
1821 pub fn has_kw(&self) -> ::std::os::raw::c_uint {
1822 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<4usize, 1u8>() as u32) }
1823 }
1824 #[inline]
1825 #[allow(unnecessary_transmutes)]
1826 pub fn set_has_kw(&mut self, val: ::std::os::raw::c_uint) {
1827 unsafe {
1828 let val: u32 = ::std::mem::transmute(val);
1829 self._bitfield_1.set_const::<4usize, 1u8>(val as u64)
1830 }
1831 }
1832 #[inline]
1833 #[allow(unnecessary_transmutes)]
1834 pub unsafe fn has_kw_raw(this: *const Self) -> ::std::os::raw::c_uint {
1835 unsafe {
1836 ::std::mem::transmute(
1837 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<4usize, 1u8>(
1838 ::std::ptr::addr_of!((*this)._bitfield_1),
1839 ) as u32,
1840 )
1841 }
1842 }
1843 #[inline]
1844 #[allow(unnecessary_transmutes)]
1845 pub unsafe fn set_has_kw_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1846 unsafe {
1847 let val: u32 = ::std::mem::transmute(val);
1848 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<4usize, 1u8>(
1849 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1850 val as u64,
1851 )
1852 }
1853 }
1854 #[inline]
1855 #[allow(unnecessary_transmutes)]
1856 pub fn has_kwrest(&self) -> ::std::os::raw::c_uint {
1857 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<5usize, 1u8>() as u32) }
1858 }
1859 #[inline]
1860 #[allow(unnecessary_transmutes)]
1861 pub fn set_has_kwrest(&mut self, val: ::std::os::raw::c_uint) {
1862 unsafe {
1863 let val: u32 = ::std::mem::transmute(val);
1864 self._bitfield_1.set_const::<5usize, 1u8>(val as u64)
1865 }
1866 }
1867 #[inline]
1868 #[allow(unnecessary_transmutes)]
1869 pub unsafe fn has_kwrest_raw(this: *const Self) -> ::std::os::raw::c_uint {
1870 unsafe {
1871 ::std::mem::transmute(
1872 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<5usize, 1u8>(
1873 ::std::ptr::addr_of!((*this)._bitfield_1),
1874 ) as u32,
1875 )
1876 }
1877 }
1878 #[inline]
1879 #[allow(unnecessary_transmutes)]
1880 pub unsafe fn set_has_kwrest_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1881 unsafe {
1882 let val: u32 = ::std::mem::transmute(val);
1883 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<5usize, 1u8>(
1884 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1885 val as u64,
1886 )
1887 }
1888 }
1889 #[inline]
1890 #[allow(unnecessary_transmutes)]
1891 pub fn has_block(&self) -> ::std::os::raw::c_uint {
1892 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<6usize, 1u8>() as u32) }
1893 }
1894 #[inline]
1895 #[allow(unnecessary_transmutes)]
1896 pub fn set_has_block(&mut self, val: ::std::os::raw::c_uint) {
1897 unsafe {
1898 let val: u32 = ::std::mem::transmute(val);
1899 self._bitfield_1.set_const::<6usize, 1u8>(val as u64)
1900 }
1901 }
1902 #[inline]
1903 #[allow(unnecessary_transmutes)]
1904 pub unsafe fn has_block_raw(this: *const Self) -> ::std::os::raw::c_uint {
1905 unsafe {
1906 ::std::mem::transmute(
1907 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<6usize, 1u8>(
1908 ::std::ptr::addr_of!((*this)._bitfield_1),
1909 ) as u32,
1910 )
1911 }
1912 }
1913 #[inline]
1914 #[allow(unnecessary_transmutes)]
1915 pub unsafe fn set_has_block_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1916 unsafe {
1917 let val: u32 = ::std::mem::transmute(val);
1918 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<6usize, 1u8>(
1919 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1920 val as u64,
1921 )
1922 }
1923 }
1924 #[inline]
1925 #[allow(unnecessary_transmutes)]
1926 pub fn ambiguous_param0(&self) -> ::std::os::raw::c_uint {
1927 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<7usize, 1u8>() as u32) }
1928 }
1929 #[inline]
1930 #[allow(unnecessary_transmutes)]
1931 pub fn set_ambiguous_param0(&mut self, val: ::std::os::raw::c_uint) {
1932 unsafe {
1933 let val: u32 = ::std::mem::transmute(val);
1934 self._bitfield_1.set_const::<7usize, 1u8>(val as u64)
1935 }
1936 }
1937 #[inline]
1938 #[allow(unnecessary_transmutes)]
1939 pub unsafe fn ambiguous_param0_raw(this: *const Self) -> ::std::os::raw::c_uint {
1940 unsafe {
1941 ::std::mem::transmute(
1942 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<7usize, 1u8>(
1943 ::std::ptr::addr_of!((*this)._bitfield_1),
1944 ) as u32,
1945 )
1946 }
1947 }
1948 #[inline]
1949 #[allow(unnecessary_transmutes)]
1950 pub unsafe fn set_ambiguous_param0_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
1951 unsafe {
1952 let val: u32 = ::std::mem::transmute(val);
1953 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<7usize, 1u8>(
1954 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
1955 val as u64,
1956 )
1957 }
1958 }
1959 #[inline]
1960 #[allow(unnecessary_transmutes)]
1961 pub fn new_bitfield_1(
1962 has_lead: ::std::os::raw::c_uint,
1963 has_opt: ::std::os::raw::c_uint,
1964 has_rest: ::std::os::raw::c_uint,
1965 has_post: ::std::os::raw::c_uint,
1966 has_kw: ::std::os::raw::c_uint,
1967 has_kwrest: ::std::os::raw::c_uint,
1968 has_block: ::std::os::raw::c_uint,
1969 ambiguous_param0: ::std::os::raw::c_uint,
1970 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
1971 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
1972 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
1973 let has_lead: u32 = unsafe { ::std::mem::transmute(has_lead) };
1974 has_lead as u64
1975 });
1976 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
1977 let has_opt: u32 = unsafe { ::std::mem::transmute(has_opt) };
1978 has_opt as u64
1979 });
1980 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
1981 let has_rest: u32 = unsafe { ::std::mem::transmute(has_rest) };
1982 has_rest as u64
1983 });
1984 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
1985 let has_post: u32 = unsafe { ::std::mem::transmute(has_post) };
1986 has_post as u64
1987 });
1988 __bindgen_bitfield_unit.set_const::<4usize, 1u8>({
1989 let has_kw: u32 = unsafe { ::std::mem::transmute(has_kw) };
1990 has_kw as u64
1991 });
1992 __bindgen_bitfield_unit.set_const::<5usize, 1u8>({
1993 let has_kwrest: u32 = unsafe { ::std::mem::transmute(has_kwrest) };
1994 has_kwrest as u64
1995 });
1996 __bindgen_bitfield_unit.set_const::<6usize, 1u8>({
1997 let has_block: u32 = unsafe { ::std::mem::transmute(has_block) };
1998 has_block as u64
1999 });
2000 __bindgen_bitfield_unit.set_const::<7usize, 1u8>({
2001 let ambiguous_param0: u32 = unsafe { ::std::mem::transmute(ambiguous_param0) };
2002 ambiguous_param0 as u64
2003 });
2004 __bindgen_bitfield_unit
2005 }
2006}
2007#[repr(C)]
2008#[derive(Debug, Copy, Clone)]
2009pub struct rb_iseq_constant_body__bindgen_ty_1_rb_iseq_param_keyword {
2010 pub num: ::std::os::raw::c_int,
2011 pub required_num: ::std::os::raw::c_int,
2012 pub bits_start: ::std::os::raw::c_int,
2013 pub rest_start: ::std::os::raw::c_int,
2014 pub table: *const ID,
2015 pub default_values: *const VALUE,
2016}
2017#[repr(C)]
2018#[derive(Debug, Copy, Clone)]
2019pub struct rb_iseq_constant_body_iseq_insn_info {
2020 pub body: *const iseq_insn_info_entry,
2021 pub positions: *mut ::std::os::raw::c_uint,
2022 pub size: ::std::os::raw::c_uint,
2023 pub succ_index_table: *mut succ_index_table,
2024}
2025#[repr(C)]
2026#[derive(Debug, Copy, Clone)]
2027pub struct rb_iseq_constant_body__bindgen_ty_2 {
2028 pub flip_count: rb_snum_t,
2029 pub coverage: VALUE,
2030 pub pc2branchindex: VALUE,
2031 pub original_iseq: *mut VALUE,
2032}
2033#[repr(C)]
2034#[derive(Copy, Clone)]
2035pub struct rb_iseq_struct {
2036 pub flags: VALUE,
2037 pub wrapper: VALUE,
2038 pub body: *mut rb_iseq_constant_body,
2039 pub aux: rb_iseq_struct__bindgen_ty_1,
2040}
2041#[repr(C)]
2042#[derive(Copy, Clone)]
2043pub union rb_iseq_struct__bindgen_ty_1 {
2044 pub compile_data: *mut iseq_compile_data,
2045 pub loader: rb_iseq_struct__bindgen_ty_1__bindgen_ty_1,
2046 pub exec: rb_iseq_struct__bindgen_ty_1__bindgen_ty_2,
2047}
2048#[repr(C)]
2049#[derive(Debug, Copy, Clone)]
2050pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_1 {
2051 pub obj: VALUE,
2052 pub index: ::std::os::raw::c_int,
2053}
2054#[repr(C)]
2055#[derive(Debug, Copy, Clone)]
2056pub struct rb_iseq_struct__bindgen_ty_1__bindgen_ty_2 {
2057 pub local_hooks: *mut rb_hook_list_struct,
2058 pub global_trace_events: rb_event_flag_t,
2059}
2060impl ::std::fmt::Debug for rb_iseq_struct__bindgen_ty_1 {
2061 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2062 write!(f, "rb_iseq_struct__bindgen_ty_1 {{ union }}")
2063 }
2064}
2065impl ::std::fmt::Debug for rb_iseq_struct {
2066 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2067 write!(
2068 f,
2069 "rb_iseq_struct {{ flags: {:?}, wrapper: {:?}, body: {:?}, aux: {:?} }}",
2070 self.flags, self.wrapper, self.body, self.aux
2071 )
2072 }
2073}
2074pub type rb_vm_at_exit_func = ::std::option::Option<unsafe extern "C" fn(arg1: *mut rb_vm_struct)>;
2075#[repr(C)]
2076#[derive(Debug, Copy, Clone)]
2077pub struct rb_at_exit_list {
2078 pub func: rb_vm_at_exit_func,
2079 pub next: *mut rb_at_exit_list,
2080}
2081#[repr(C)]
2082#[derive(Debug)]
2083pub struct rb_objspace {
2084 _unused: [u8; 0],
2085}
2086#[repr(C)]
2087#[derive(Debug, Copy, Clone)]
2088pub struct rb_hook_list_struct {
2089 pub hooks: *mut rb_event_hook_struct,
2090 pub events: rb_event_flag_t,
2091 pub need_clean: ::std::os::raw::c_uint,
2092 pub running: ::std::os::raw::c_uint,
2093}
2094pub type rb_hook_list_t = rb_hook_list_struct;
2095#[repr(C)]
2096#[derive(Copy, Clone)]
2097pub struct rb_vm_struct {
2098 pub self_: VALUE,
2099 pub gvl: rb_global_vm_lock_t,
2100 pub main_thread: *mut rb_thread_struct,
2101 pub running_thread: *const rb_thread_struct,
2102 pub main_altstack: *mut ::std::os::raw::c_void,
2103 pub fork_gen: rb_serial_t,
2104 pub waitpid_lock: rb_nativethread_lock_t,
2105 pub waiting_pids: list_head,
2106 pub waiting_grps: list_head,
2107 pub waiting_fds: list_head,
2108 pub living_threads: list_head,
2109 pub thgroup_default: VALUE,
2110 pub living_thread_num: ::std::os::raw::c_int,
2111 pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
2112 pub sleeper: ::std::os::raw::c_int,
2113 pub mark_object_ary: VALUE,
2114 pub special_exceptions: [VALUE; 5usize],
2115 pub top_self: VALUE,
2116 pub load_path: VALUE,
2117 pub load_path_snapshot: VALUE,
2118 pub load_path_check_cache: VALUE,
2119 pub expanded_load_path: VALUE,
2120 pub loaded_features: VALUE,
2121 pub loaded_features_snapshot: VALUE,
2122 pub loaded_features_index: *mut st_table,
2123 pub loading_table: *mut st_table,
2124 pub trap_list: rb_vm_struct__bindgen_ty_1,
2125 pub global_hooks: rb_hook_list_t,
2126 pub ensure_rollback_table: *mut st_table,
2127 pub postponed_job_buffer: *mut rb_postponed_job_struct,
2128 pub postponed_job_index: ::std::os::raw::c_int,
2129 pub src_encoding_index: ::std::os::raw::c_int,
2130 pub workqueue: list_head,
2131 pub workqueue_lock: rb_nativethread_lock_t,
2132 pub verbose: VALUE,
2133 pub debug: VALUE,
2134 pub orig_progname: VALUE,
2135 pub progname: VALUE,
2136 pub coverages: VALUE,
2137 pub coverage_mode: ::std::os::raw::c_int,
2138 pub defined_module_hash: VALUE,
2139 pub objspace: *mut rb_objspace,
2140 pub at_exit: *mut rb_at_exit_list,
2141 pub defined_strings: *mut VALUE,
2142 pub frozen_strings: *mut st_table,
2143 pub default_params: rb_vm_struct__bindgen_ty_2,
2144 pub redefined_flag: [::std::os::raw::c_short; 28usize],
2145}
2146#[repr(C)]
2147#[derive(Debug, Copy, Clone)]
2148pub struct rb_vm_struct__bindgen_ty_1 {
2149 pub cmd: [VALUE; 65usize],
2150 pub safe: [::std::os::raw::c_uchar; 65usize],
2151}
2152#[repr(C)]
2153#[derive(Debug, Copy, Clone)]
2154pub struct rb_vm_struct__bindgen_ty_2 {
2155 pub thread_vm_stack_size: usize,
2156 pub thread_machine_stack_size: usize,
2157 pub fiber_vm_stack_size: usize,
2158 pub fiber_machine_stack_size: usize,
2159}
2160impl ::std::fmt::Debug for rb_vm_struct {
2161 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
2162 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)
2163 }
2164}
2165impl rb_vm_struct {
2166 #[inline]
2167 #[allow(unnecessary_transmutes)]
2168 pub fn running(&self) -> ::std::os::raw::c_uint {
2169 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<0usize, 1u8>() as u32) }
2170 }
2171 #[inline]
2172 #[allow(unnecessary_transmutes)]
2173 pub fn set_running(&mut self, val: ::std::os::raw::c_uint) {
2174 unsafe {
2175 let val: u32 = ::std::mem::transmute(val);
2176 self._bitfield_1.set_const::<0usize, 1u8>(val as u64)
2177 }
2178 }
2179 #[inline]
2180 #[allow(unnecessary_transmutes)]
2181 pub unsafe fn running_raw(this: *const Self) -> ::std::os::raw::c_uint {
2182 unsafe {
2183 ::std::mem::transmute(
2184 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<0usize, 1u8>(
2185 ::std::ptr::addr_of!((*this)._bitfield_1),
2186 ) as u32,
2187 )
2188 }
2189 }
2190 #[inline]
2191 #[allow(unnecessary_transmutes)]
2192 pub unsafe fn set_running_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2193 unsafe {
2194 let val: u32 = ::std::mem::transmute(val);
2195 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<0usize, 1u8>(
2196 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2197 val as u64,
2198 )
2199 }
2200 }
2201 #[inline]
2202 #[allow(unnecessary_transmutes)]
2203 pub fn thread_abort_on_exception(&self) -> ::std::os::raw::c_uint {
2204 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<1usize, 1u8>() as u32) }
2205 }
2206 #[inline]
2207 #[allow(unnecessary_transmutes)]
2208 pub fn set_thread_abort_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2209 unsafe {
2210 let val: u32 = ::std::mem::transmute(val);
2211 self._bitfield_1.set_const::<1usize, 1u8>(val as u64)
2212 }
2213 }
2214 #[inline]
2215 #[allow(unnecessary_transmutes)]
2216 pub unsafe fn thread_abort_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2217 unsafe {
2218 ::std::mem::transmute(
2219 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<1usize, 1u8>(
2220 ::std::ptr::addr_of!((*this)._bitfield_1),
2221 ) as u32,
2222 )
2223 }
2224 }
2225 #[inline]
2226 #[allow(unnecessary_transmutes)]
2227 pub unsafe fn set_thread_abort_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2228 unsafe {
2229 let val: u32 = ::std::mem::transmute(val);
2230 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<1usize, 1u8>(
2231 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2232 val as u64,
2233 )
2234 }
2235 }
2236 #[inline]
2237 #[allow(unnecessary_transmutes)]
2238 pub fn thread_report_on_exception(&self) -> ::std::os::raw::c_uint {
2239 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<2usize, 1u8>() as u32) }
2240 }
2241 #[inline]
2242 #[allow(unnecessary_transmutes)]
2243 pub fn set_thread_report_on_exception(&mut self, val: ::std::os::raw::c_uint) {
2244 unsafe {
2245 let val: u32 = ::std::mem::transmute(val);
2246 self._bitfield_1.set_const::<2usize, 1u8>(val as u64)
2247 }
2248 }
2249 #[inline]
2250 #[allow(unnecessary_transmutes)]
2251 pub unsafe fn thread_report_on_exception_raw(this: *const Self) -> ::std::os::raw::c_uint {
2252 unsafe {
2253 ::std::mem::transmute(
2254 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<2usize, 1u8>(
2255 ::std::ptr::addr_of!((*this)._bitfield_1),
2256 ) as u32,
2257 )
2258 }
2259 }
2260 #[inline]
2261 #[allow(unnecessary_transmutes)]
2262 pub unsafe fn set_thread_report_on_exception_raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2263 unsafe {
2264 let val: u32 = ::std::mem::transmute(val);
2265 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<2usize, 1u8>(
2266 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2267 val as u64,
2268 )
2269 }
2270 }
2271 #[inline]
2272 #[allow(unnecessary_transmutes)]
2273 pub fn safe_level_(&self) -> ::std::os::raw::c_uint {
2274 unsafe { ::std::mem::transmute(self._bitfield_1.get_const::<3usize, 1u8>() as u32) }
2275 }
2276 #[inline]
2277 #[allow(unnecessary_transmutes)]
2278 pub fn set_safe_level_(&mut self, val: ::std::os::raw::c_uint) {
2279 unsafe {
2280 let val: u32 = ::std::mem::transmute(val);
2281 self._bitfield_1.set_const::<3usize, 1u8>(val as u64)
2282 }
2283 }
2284 #[inline]
2285 #[allow(unnecessary_transmutes)]
2286 pub unsafe fn safe_level__raw(this: *const Self) -> ::std::os::raw::c_uint {
2287 unsafe {
2288 ::std::mem::transmute(
2289 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_get_const::<3usize, 1u8>(
2290 ::std::ptr::addr_of!((*this)._bitfield_1),
2291 ) as u32,
2292 )
2293 }
2294 }
2295 #[inline]
2296 #[allow(unnecessary_transmutes)]
2297 pub unsafe fn set_safe_level__raw(this: *mut Self, val: ::std::os::raw::c_uint) {
2298 unsafe {
2299 let val: u32 = ::std::mem::transmute(val);
2300 <__BindgenBitfieldUnit<[u8; 1usize]>>::raw_set_const::<3usize, 1u8>(
2301 ::std::ptr::addr_of_mut!((*this)._bitfield_1),
2302 val as u64,
2303 )
2304 }
2305 }
2306 #[inline]
2307 #[allow(unnecessary_transmutes)]
2308 pub fn new_bitfield_1(
2309 running: ::std::os::raw::c_uint,
2310 thread_abort_on_exception: ::std::os::raw::c_uint,
2311 thread_report_on_exception: ::std::os::raw::c_uint,
2312 safe_level_: ::std::os::raw::c_uint,
2313 ) -> __BindgenBitfieldUnit<[u8; 1usize]> {
2314 let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
2315 __bindgen_bitfield_unit.set_const::<0usize, 1u8>({
2316 let running: u32 = unsafe { ::std::mem::transmute(running) };
2317 running as u64
2318 });
2319 __bindgen_bitfield_unit.set_const::<1usize, 1u8>({
2320 let thread_abort_on_exception: u32 =
2321 unsafe { ::std::mem::transmute(thread_abort_on_exception) };
2322 thread_abort_on_exception as u64
2323 });
2324 __bindgen_bitfield_unit.set_const::<2usize, 1u8>({
2325 let thread_report_on_exception: u32 =
2326 unsafe { ::std::mem::transmute(thread_report_on_exception) };
2327 thread_report_on_exception as u64
2328 });
2329 __bindgen_bitfield_unit.set_const::<3usize, 1u8>({
2330 let safe_level_: u32 = unsafe { ::std::mem::transmute(safe_level_) };
2331 safe_level_ as u64
2332 });
2333 __bindgen_bitfield_unit
2334 }
2335}
2336pub type rb_vm_t = rb_vm_struct;
2337#[repr(C)]
2338#[derive(Debug, Copy, Clone)]
2339pub struct rb_control_frame_struct {
2340 pub pc: *const VALUE,
2341 pub sp: *mut VALUE,
2342 pub iseq: *const rb_iseq_t,
2343 pub self_: VALUE,
2344 pub ep: *const VALUE,
2345 pub block_code: *const ::std::os::raw::c_void,
2346 pub bp: *const VALUE,
2347}
2348pub type rb_control_frame_t = rb_control_frame_struct;
2349pub const rb_thread_status_THREAD_RUNNABLE: rb_thread_status = 0;
2350pub const rb_thread_status_THREAD_STOPPED: rb_thread_status = 1;
2351pub const rb_thread_status_THREAD_STOPPED_FOREVER: rb_thread_status = 2;
2352pub const rb_thread_status_THREAD_KILLED: rb_thread_status = 3;
2353pub type rb_thread_status = ::std::os::raw::c_uint;
2354pub type rb_jmpbuf_t = jmp_buf;
2355#[repr(C)]
2356#[derive(Debug, Copy, Clone)]
2357pub struct rb_vm_tag {
2358 pub tag: VALUE,
2359 pub retval: VALUE,
2360 pub buf: rb_jmpbuf_t,
2361 pub prev: *mut rb_vm_tag,
2362 pub state: ruby_tag_type,
2363}
2364#[repr(C)]
2365#[derive(Debug, Copy, Clone)]
2366pub struct rb_vm_protect_tag {
2367 pub prev: *mut rb_vm_protect_tag,
2368}
2369#[repr(C)]
2370#[derive(Debug, Copy, Clone)]
2371pub struct rb_unblock_callback {
2372 pub func: rb_unblock_function_t,
2373 pub arg: *mut ::std::os::raw::c_void,
2374}
2375#[repr(C)]
2376#[derive(Debug)]
2377pub struct rb_mutex_struct {
2378 _unused: [u8; 0],
2379}
2380#[repr(C)]
2381#[derive(Debug, Copy, Clone)]
2382pub struct rb_thread_list_struct {
2383 pub next: *mut rb_thread_list_struct,
2384 pub th: *mut rb_thread_struct,
2385}
2386pub type rb_thread_list_t = rb_thread_list_struct;
2387#[repr(C)]
2388#[derive(Debug, Copy, Clone)]
2389pub struct rb_ensure_entry {
2390 pub marker: VALUE,
2391 pub e_proc: ::std::option::Option<unsafe extern "C" fn() -> VALUE>,
2392 pub data2: VALUE,
2393}
2394#[repr(C)]
2395#[derive(Debug, Copy, Clone)]
2396pub struct rb_ensure_list {
2397 pub next: *mut rb_ensure_list,
2398 pub entry: rb_ensure_entry,
2399}
2400pub type rb_ensure_list_t = rb_ensure_list;
2401#[repr(C)]
2402#[derive(Debug)]
2403pub struct rb_fiber_struct {
2404 _unused: [u8; 0],
2405}
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}