ruby_sys/
types.rs

1use libc::{intptr_t, uintptr_t};
2
3pub use libc::{c_char, c_double, c_int, c_long, c_void, size_t};
4
5#[cfg(unix)]
6pub use std::os::unix::io::RawFd;
7
8pub use typed_data::{RbDataType, RbDataTypeFunction};
9pub use value::{Value, ValueType};
10
11pub type Id = uintptr_t;
12pub type InternalValue = uintptr_t;
13pub type SignedValue = intptr_t;
14
15pub type Argc = c_int;
16pub type CallbackPtr = *const c_void;
17pub type CallbackMutPtr = *mut c_void;
18
19#[repr(C)]
20pub struct RBasic {
21    pub flags: InternalValue,
22    pub klass: InternalValue,
23}