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