pub const __MINGW64_VERSION_MAJOR: u32 = 12;
pub const __MINGW64_VERSION_MINOR: u32 = 0;
pub const __MINGW64_VERSION_BUGFIX: u32 = 0;
pub const __MINGW64_VERSION_RC: u32 = 0;
pub const __MINGW64_VERSION_STATE: &[u8; 6] = b"alpha\0";
pub const __MINGW32_MAJOR_VERSION: u32 = 3;
pub const __MINGW32_MINOR_VERSION: u32 = 11;
pub const _M_AMD64: u32 = 100;
pub const _M_X64: u32 = 100;
pub const __: u32 = 1;
pub const __MINGW_USE_UNDERSCORE_PREFIX: u32 = 0;
pub const __MINGW_HAVE_ANSI_C99_PRINTF: u32 = 1;
pub const __MINGW_HAVE_WIDE_C99_PRINTF: u32 = 1;
pub const __MINGW_HAVE_ANSI_C99_SCANF: u32 = 1;
pub const __MINGW_HAVE_WIDE_C99_SCANF: u32 = 1;
pub const __MINGW_SEC_WARN_STR : & [u8 ; 92] = b"This function or variable may be unsafe, use _CRT_SECURE_NO_WARNINGS to disable deprecation\0" ;
pub const __MINGW_MSVC2005_DEPREC_STR : & [u8 ; 117] = b"This POSIX function is deprecated beginning in Visual C++ 2005, use _CRT_NONSTDC_NO_DEPRECATE to disable deprecation\0" ;
pub const __MINGW_FORTIFY_LEVEL: u32 = 0;
pub const __MINGW_FORTIFY_VA_ARG: u32 = 0;
pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES: u32 = 0;
pub const _CRT_SECURE_CPP_OVERLOAD_SECURE_NAMES_MEMORY: u32 = 0;
pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES: u32 = 0;
pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT: u32 = 0;
pub const _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_MEMORY: u32 = 0;
pub const __USE_CRTIMP: u32 = 1;
pub const USE___UUIDOF: u32 = 0;
pub const __CRT__NO_INLINE: u32 = 1;
pub const __MSVCRT_VERSION__: u32 = 1792;
pub const _WIN32_WINNT: u32 = 1537;
pub const MINGW_HAS_SECURE_API: u32 = 1;
pub const __STDC_SECURE_LIB__: u32 = 200411;
pub const __GOT_SECURE_LIB__: u32 = 200411;
pub const MINGW_HAS_DDK_H: u32 = 1;
pub const _CRT_PACKING: u32 = 8;
pub const _SECURECRT_FILL_BUFFER_PATTERN: u32 = 253;
pub const _ARGMAX: u32 = 100;
pub const __USE_MINGW_ANSI_STDIO: u32 = 1;
pub const _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION: u32 = 1;
pub const _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR: u32 = 2;
pub const _CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS: u32 = 4;
pub const _CRT_INTERNAL_PRINTF_LEGACY_MSVCRT_COMPATIBILITY: u32 = 8;
pub const _CRT_INTERNAL_PRINTF_LEGACY_THREE_DIGIT_EXPONENTS: u32 = 16;
pub const _CRT_INTERNAL_SCANF_SECURECRT: u32 = 1;
pub const _CRT_INTERNAL_SCANF_LEGACY_WIDE_SPECIFIERS: u32 = 2;
pub const _CRT_INTERNAL_SCANF_LEGACY_MSVCRT_COMPATIBILITY: u32 = 4;
pub const _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS: u32 = 4;
pub const _CRT_INTERNAL_LOCAL_SCANF_OPTIONS: u32 = 2;
pub const BUFSIZ: u32 = 512;
pub const _NSTREAM_: u32 = 512;
pub const _IOB_ENTRIES: u32 = 20;
pub const EOF: i32 = -1;
pub const _P_tmpdir: &[u8; 2] = b"\\\0";
pub const _wP_tmpdir: &[u8; 2] = b"\\\0";
pub const SEEK_CUR: u32 = 1;
pub const SEEK_END: u32 = 2;
pub const SEEK_SET: u32 = 0;
pub const STDIN_FILENO: u32 = 0;
pub const STDOUT_FILENO: u32 = 1;
pub const STDERR_FILENO: u32 = 2;
pub const FILENAME_MAX: u32 = 260;
pub const FOPEN_MAX: u32 = 20;
pub const _SYS_OPEN: u32 = 20;
pub const TMP_MAX: u32 = 32767;
pub const _IOFBF: u32 = 0;
pub const _IOLBF: u32 = 64;
pub const _IONBF: u32 = 4;
pub const _IOREAD: u32 = 1;
pub const _IOWRT: u32 = 2;
pub const _IOMYBUF: u32 = 8;
pub const _IOEOF: u32 = 16;
pub const _IOERR: u32 = 32;
pub const _IOSTRG: u32 = 64;
pub const _IORW: u32 = 128;
pub const _TWO_DIGIT_EXPONENT: u32 = 1;
pub const P_tmpdir: &[u8; 2] = b"\\\0";
pub const SYS_OPEN: u32 = 20;
pub const _P_WAIT: u32 = 0;
pub const _P_NOWAIT: u32 = 1;
pub const _OLD_P_OVERLAY: u32 = 2;
pub const _P_NOWAITO: u32 = 3;
pub const _P_DETACH: u32 = 4;
pub const _P_OVERLAY: u32 = 2;
pub const _WAIT_CHILD: u32 = 0;
pub const _WAIT_GRANDCHILD: u32 = 1;
pub const TMP_MAX_S: u32 = 32767;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT64_MIN: i64 = -9223372036854775808;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const INT64_MAX: u64 = 9223372036854775807;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const UINT64_MAX: i32 = -1;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const UINT_LEAST64_MAX: i32 = -1;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i32 = -32768;
pub const INT_FAST32_MIN: i32 = -2147483648;
pub const INT_FAST64_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u32 = 32767;
pub const INT_FAST32_MAX: u32 = 2147483647;
pub const INT_FAST64_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: u32 = 65535;
pub const UINT_FAST32_MAX: u32 = 4294967295;
pub const UINT_FAST64_MAX: i32 = -1;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const UINTPTR_MAX: i32 = -1;
pub const INTMAX_MIN: i64 = -9223372036854775808;
pub const INTMAX_MAX: u64 = 9223372036854775807;
pub const UINTMAX_MAX: i32 = -1;
pub const PTRDIFF_MIN: i64 = -9223372036854775808;
pub const PTRDIFF_MAX: u64 = 9223372036854775807;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const SIZE_MAX: i32 = -1;
pub const WCHAR_MIN: u32 = 0;
pub const WCHAR_MAX: u32 = 65535;
pub const WINT_MIN: u32 = 0;
pub const WINT_MAX: u32 = 65535;
pub const JS_PROP_CONFIGURABLE: u32 = 1;
pub const JS_PROP_WRITABLE: u32 = 2;
pub const JS_PROP_ENUMERABLE: u32 = 4;
pub const JS_PROP_C_W_E: u32 = 7;
pub const JS_PROP_LENGTH: u32 = 8;
pub const JS_PROP_TMASK: u32 = 48;
pub const JS_PROP_NORMAL: u32 = 0;
pub const JS_PROP_GETSET: u32 = 16;
pub const JS_PROP_VARREF: u32 = 32;
pub const JS_PROP_AUTOINIT: u32 = 48;
pub const JS_PROP_HAS_SHIFT: u32 = 8;
pub const JS_PROP_HAS_CONFIGURABLE: u32 = 256;
pub const JS_PROP_HAS_WRITABLE: u32 = 512;
pub const JS_PROP_HAS_ENUMERABLE: u32 = 1024;
pub const JS_PROP_HAS_GET: u32 = 2048;
pub const JS_PROP_HAS_SET: u32 = 4096;
pub const JS_PROP_HAS_VALUE: u32 = 8192;
pub const JS_PROP_THROW: u32 = 16384;
pub const JS_PROP_THROW_STRICT: u32 = 32768;
pub const JS_PROP_NO_ADD: u32 = 65536;
pub const JS_PROP_NO_EXOTIC: u32 = 131072;
pub const JS_PROP_DEFINE_PROPERTY: u32 = 262144;
pub const JS_PROP_REFLECT_DEFINE_PROPERTY: u32 = 524288;
pub const JS_DEFAULT_STACK_SIZE: u32 = 262144;
pub const JS_EVAL_TYPE_GLOBAL: u32 = 0;
pub const JS_EVAL_TYPE_MODULE: u32 = 1;
pub const JS_EVAL_TYPE_DIRECT: u32 = 2;
pub const JS_EVAL_TYPE_INDIRECT: u32 = 3;
pub const JS_EVAL_TYPE_MASK: u32 = 3;
pub const JS_EVAL_FLAG_STRICT: u32 = 8;
pub const JS_EVAL_FLAG_UNUSED: u32 = 16;
pub const JS_EVAL_FLAG_COMPILE_ONLY: u32 = 32;
pub const JS_EVAL_FLAG_BACKTRACE_BARRIER: u32 = 64;
pub const JS_ATOM_NULL: u32 = 0;
pub const JS_CALL_FLAG_CONSTRUCTOR: u32 = 1;
pub const JS_INVALID_CLASS_ID: u32 = 0;
pub const JS_GPN_STRING_MASK: u32 = 1;
pub const JS_GPN_SYMBOL_MASK: u32 = 2;
pub const JS_GPN_PRIVATE_MASK: u32 = 4;
pub const JS_GPN_ENUM_ONLY: u32 = 16;
pub const JS_GPN_SET_ENUM: u32 = 32;
pub const JS_WRITE_OBJ_BYTECODE: u32 = 1;
pub const JS_WRITE_OBJ_BSWAP: u32 = 0;
pub const JS_WRITE_OBJ_SAB: u32 = 4;
pub const JS_WRITE_OBJ_REFERENCE: u32 = 8;
pub const JS_READ_OBJ_BYTECODE: u32 = 1;
pub const JS_READ_OBJ_ROM_DATA: u32 = 0;
pub const JS_READ_OBJ_SAB: u32 = 4;
pub const JS_READ_OBJ_REFERENCE: u32 = 8;
pub const JS_DEF_CFUNC: u32 = 0;
pub const JS_DEF_CGETSET: u32 = 1;
pub const JS_DEF_CGETSET_MAGIC: u32 = 2;
pub const JS_DEF_PROP_STRING: u32 = 3;
pub const JS_DEF_PROP_INT32: u32 = 4;
pub const JS_DEF_PROP_INT64: u32 = 5;
pub const JS_DEF_PROP_DOUBLE: u32 = 6;
pub const JS_DEF_PROP_UNDEFINED: u32 = 7;
pub const JS_DEF_OBJECT: u32 = 8;
pub const JS_DEF_ALIAS: u32 = 9;
pub const QJS_VERSION_MAJOR: u32 = 0;
pub const QJS_VERSION_MINOR: u32 = 4;
pub const QJS_VERSION_PATCH: u32 = 0;
pub const QJS_VERSION_SUFFIX: &[u8; 4] = b"dev\0";
pub type __gnuc_va_list = __builtin_va_list;
pub type va_list = __gnuc_va_list;
extern "C" {
pub fn __mingw_get_crt_info() -> *const ::std::os::raw::c_char;
}
pub type rsize_t = usize;
pub type wchar_t = ::std::os::raw::c_ushort;
pub type wint_t = ::std::os::raw::c_ushort;
pub type wctype_t = ::std::os::raw::c_ushort;
pub type errno_t = ::std::os::raw::c_int;
pub type __time32_t = ::std::os::raw::c_long;
pub type __time64_t = ::std::os::raw::c_longlong;
pub type time_t = __time64_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct threadmbcinfostruct {
_unused: [u8; 0],
}
pub type pthreadlocinfo = *mut threadlocaleinfostruct;
pub type pthreadmbcinfo = *mut threadmbcinfostruct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __lc_time_data {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct localeinfo_struct {
pub locinfo: pthreadlocinfo,
pub mbcinfo: pthreadmbcinfo,
}
#[test]
fn bindgen_test_layout_localeinfo_struct() {
const UNINIT: ::std::mem::MaybeUninit<localeinfo_struct> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<localeinfo_struct>(),
16usize,
concat!("Size of: ", stringify!(localeinfo_struct))
);
assert_eq!(
::std::mem::align_of::<localeinfo_struct>(),
8usize,
concat!("Alignment of ", stringify!(localeinfo_struct))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).locinfo) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(localeinfo_struct),
"::",
stringify!(locinfo)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mbcinfo) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(localeinfo_struct),
"::",
stringify!(mbcinfo)
)
);
}
pub type _locale_tstruct = localeinfo_struct;
pub type _locale_t = *mut localeinfo_struct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct tagLC_ID {
pub wLanguage: ::std::os::raw::c_ushort,
pub wCountry: ::std::os::raw::c_ushort,
pub wCodePage: ::std::os::raw::c_ushort,
}
#[test]
fn bindgen_test_layout_tagLC_ID() {
const UNINIT: ::std::mem::MaybeUninit<tagLC_ID> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<tagLC_ID>(),
6usize,
concat!("Size of: ", stringify!(tagLC_ID))
);
assert_eq!(
::std::mem::align_of::<tagLC_ID>(),
2usize,
concat!("Alignment of ", stringify!(tagLC_ID))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wLanguage) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(tagLC_ID),
"::",
stringify!(wLanguage)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wCountry) as usize - ptr as usize },
2usize,
concat!(
"Offset of field: ",
stringify!(tagLC_ID),
"::",
stringify!(wCountry)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wCodePage) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(tagLC_ID),
"::",
stringify!(wCodePage)
)
);
}
pub type LC_ID = tagLC_ID;
pub type LPLC_ID = *mut tagLC_ID;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct threadlocaleinfostruct {
pub refcount: ::std::os::raw::c_int,
pub lc_codepage: ::std::os::raw::c_uint,
pub lc_collate_cp: ::std::os::raw::c_uint,
pub lc_handle: [::std::os::raw::c_ulong; 6usize],
pub lc_id: [LC_ID; 6usize],
pub lc_category: [threadlocaleinfostruct__bindgen_ty_1; 6usize],
pub lc_clike: ::std::os::raw::c_int,
pub mb_cur_max: ::std::os::raw::c_int,
pub lconv_intl_refcount: *mut ::std::os::raw::c_int,
pub lconv_num_refcount: *mut ::std::os::raw::c_int,
pub lconv_mon_refcount: *mut ::std::os::raw::c_int,
pub lconv: *mut lconv,
pub ctype1_refcount: *mut ::std::os::raw::c_int,
pub ctype1: *mut ::std::os::raw::c_ushort,
pub pctype: *const ::std::os::raw::c_ushort,
pub pclmap: *const ::std::os::raw::c_uchar,
pub pcumap: *const ::std::os::raw::c_uchar,
pub lc_time_curr: *mut __lc_time_data,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct threadlocaleinfostruct__bindgen_ty_1 {
pub locale: *mut ::std::os::raw::c_char,
pub wlocale: *mut wchar_t,
pub refcount: *mut ::std::os::raw::c_int,
pub wrefcount: *mut ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_threadlocaleinfostruct__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<threadlocaleinfostruct__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<threadlocaleinfostruct__bindgen_ty_1>(),
32usize,
concat!(
"Size of: ",
stringify!(threadlocaleinfostruct__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<threadlocaleinfostruct__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(threadlocaleinfostruct__bindgen_ty_1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).locale) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct__bindgen_ty_1),
"::",
stringify!(locale)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wlocale) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct__bindgen_ty_1),
"::",
stringify!(wlocale)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).refcount) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct__bindgen_ty_1),
"::",
stringify!(refcount)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).wrefcount) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct__bindgen_ty_1),
"::",
stringify!(wrefcount)
)
);
}
#[test]
fn bindgen_test_layout_threadlocaleinfostruct() {
const UNINIT: ::std::mem::MaybeUninit<threadlocaleinfostruct> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<threadlocaleinfostruct>(),
352usize,
concat!("Size of: ", stringify!(threadlocaleinfostruct))
);
assert_eq!(
::std::mem::align_of::<threadlocaleinfostruct>(),
8usize,
concat!("Alignment of ", stringify!(threadlocaleinfostruct))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).refcount) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(refcount)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lc_codepage) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lc_codepage)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lc_collate_cp) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lc_collate_cp)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lc_handle) as usize - ptr as usize },
12usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lc_handle)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lc_id) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lc_id)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lc_category) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lc_category)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lc_clike) as usize - ptr as usize },
264usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lc_clike)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).mb_cur_max) as usize - ptr as usize },
268usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(mb_cur_max)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lconv_intl_refcount) as usize - ptr as usize },
272usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lconv_intl_refcount)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lconv_num_refcount) as usize - ptr as usize },
280usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lconv_num_refcount)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lconv_mon_refcount) as usize - ptr as usize },
288usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lconv_mon_refcount)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lconv) as usize - ptr as usize },
296usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lconv)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ctype1_refcount) as usize - ptr as usize },
304usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(ctype1_refcount)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ctype1) as usize - ptr as usize },
312usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(ctype1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pctype) as usize - ptr as usize },
320usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(pctype)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pclmap) as usize - ptr as usize },
328usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(pclmap)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).pcumap) as usize - ptr as usize },
336usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(pcumap)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).lc_time_curr) as usize - ptr as usize },
344usize,
concat!(
"Offset of field: ",
stringify!(threadlocaleinfostruct),
"::",
stringify!(lc_time_curr)
)
);
}
pub type threadlocinfo = threadlocaleinfostruct;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _iobuf {
pub _ptr: *mut ::std::os::raw::c_char,
pub _cnt: ::std::os::raw::c_int,
pub _base: *mut ::std::os::raw::c_char,
pub _flag: ::std::os::raw::c_int,
pub _file: ::std::os::raw::c_int,
pub _charbuf: ::std::os::raw::c_int,
pub _bufsiz: ::std::os::raw::c_int,
pub _tmpfname: *mut ::std::os::raw::c_char,
}
#[test]
fn bindgen_test_layout__iobuf() {
const UNINIT: ::std::mem::MaybeUninit<_iobuf> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<_iobuf>(),
48usize,
concat!("Size of: ", stringify!(_iobuf))
);
assert_eq!(
::std::mem::align_of::<_iobuf>(),
8usize,
concat!("Alignment of ", stringify!(_iobuf))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._ptr) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(_iobuf),
"::",
stringify!(_ptr)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._cnt) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(_iobuf),
"::",
stringify!(_cnt)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._base) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(_iobuf),
"::",
stringify!(_base)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._flag) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(_iobuf),
"::",
stringify!(_flag)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._file) as usize - ptr as usize },
28usize,
concat!(
"Offset of field: ",
stringify!(_iobuf),
"::",
stringify!(_file)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._charbuf) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(_iobuf),
"::",
stringify!(_charbuf)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._bufsiz) as usize - ptr as usize },
36usize,
concat!(
"Offset of field: ",
stringify!(_iobuf),
"::",
stringify!(_bufsiz)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr)._tmpfname) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(_iobuf),
"::",
stringify!(_tmpfname)
)
);
}
pub type FILE = _iobuf;
pub type _off_t = ::std::os::raw::c_long;
pub type off32_t = ::std::os::raw::c_long;
pub type _off64_t = ::std::os::raw::c_longlong;
pub type off64_t = ::std::os::raw::c_longlong;
pub type off_t = off32_t;
extern "C" {
pub fn __acrt_iob_func(index: ::std::os::raw::c_uint) -> *mut FILE;
}
extern "C" {
pub fn __iob_func() -> *mut FILE;
}
pub type fpos_t = ::std::os::raw::c_longlong;
extern "C" {
pub fn __mingw_sscanf(
_Src: *const ::std::os::raw::c_char,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vsscanf(
_Str: *const ::std::os::raw::c_char,
Format: *const ::std::os::raw::c_char,
argp: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_scanf(_Format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vscanf(
Format: *const ::std::os::raw::c_char,
argp: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_fscanf(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vfscanf(
fp: *mut FILE,
Format: *const ::std::os::raw::c_char,
argp: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vsnprintf(
_DstBuf: *mut ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_snprintf(
s: *mut ::std::os::raw::c_char,
n: usize,
format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vprintf(
arg1: *const ::std::os::raw::c_char,
arg2: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_fprintf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vfprintf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
arg3: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_sprintf(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vsprintf(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_asprintf(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vasprintf(
arg1: *mut *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_sscanf(
_Src: *const ::std::os::raw::c_char,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_scanf(_Format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_fscanf(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_printf(arg1: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_vprintf(
arg1: *const ::std::os::raw::c_char,
arg2: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_fprintf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_vfprintf(
arg1: *mut FILE,
arg2: *const ::std::os::raw::c_char,
arg3: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_sprintf(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_vsprintf(
arg1: *mut ::std::os::raw::c_char,
arg2: *const ::std::os::raw::c_char,
arg3: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _filbuf(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _flsbuf(_Ch: ::std::os::raw::c_int, _File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fsopen(
_Filename: *const ::std::os::raw::c_char,
_Mode: *const ::std::os::raw::c_char,
_ShFlag: ::std::os::raw::c_int,
) -> *mut FILE;
}
extern "C" {
pub fn clearerr(_File: *mut FILE);
}
extern "C" {
pub fn fclose(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fcloseall() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fdopen(
_FileHandle: ::std::os::raw::c_int,
_Mode: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn feof(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ferror(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fflush(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgetc(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fgetchar() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgetpos(_File: *mut FILE, _Pos: *mut fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgetpos64(_File: *mut FILE, _Pos: *mut fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fgets(
_Buf: *mut ::std::os::raw::c_char,
_MaxCount: ::std::os::raw::c_int,
_File: *mut FILE,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn _fileno(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _tempnam(
_DirName: *const ::std::os::raw::c_char,
_FilePrefix: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn _flushall() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fopen(
_Filename: *const ::std::os::raw::c_char,
_Mode: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn fopen64(
filename: *const ::std::os::raw::c_char,
mode: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn fputc(_Ch: ::std::os::raw::c_int, _File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fputchar(_Ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fputs(_Str: *const ::std::os::raw::c_char, _File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fread(
_DstBuf: *mut ::std::os::raw::c_void,
_ElementSize: ::std::os::raw::c_ulonglong,
_Count: ::std::os::raw::c_ulonglong,
_File: *mut FILE,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub fn freopen(
_Filename: *const ::std::os::raw::c_char,
_Mode: *const ::std::os::raw::c_char,
_File: *mut FILE,
) -> *mut FILE;
}
extern "C" {
pub fn fsetpos(_File: *mut FILE, _Pos: *const fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fsetpos64(_File: *mut FILE, _Pos: *const fpos_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fseek(
_File: *mut FILE,
_Offset: ::std::os::raw::c_long,
_Origin: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ftell(_File: *mut FILE) -> ::std::os::raw::c_long;
}
extern "C" {
pub fn _fseeki64(
_File: *mut FILE,
_Offset: ::std::os::raw::c_longlong,
_Origin: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _ftelli64(_File: *mut FILE) -> ::std::os::raw::c_longlong;
}
extern "C" {
pub fn fseeko64(
stream: *mut FILE,
offset: _off64_t,
whence: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fseeko(
stream: *mut FILE,
offset: _off_t,
whence: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn ftello(stream: *mut FILE) -> _off_t;
}
extern "C" {
pub fn ftello64(stream: *mut FILE) -> _off64_t;
}
extern "C" {
pub fn fwrite(
_Str: *const ::std::os::raw::c_void,
_Size: ::std::os::raw::c_ulonglong,
_Count: ::std::os::raw::c_ulonglong,
_File: *mut FILE,
) -> ::std::os::raw::c_ulonglong;
}
extern "C" {
pub fn getc(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getchar() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _getmaxstdio() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn gets(_Buffer: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn _getw(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn perror(_ErrMsg: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn _pclose(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _popen(
_Command: *const ::std::os::raw::c_char,
_Mode: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn putc(_Ch: ::std::os::raw::c_int, _File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putchar(_Ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn puts(_Str: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _putw(_Word: ::std::os::raw::c_int, _File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn remove(_Filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rename(
_OldFilename: *const ::std::os::raw::c_char,
_NewFilename: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _unlink(_Filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn unlink(_Filename: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rewind(_File: *mut FILE);
}
extern "C" {
pub fn _rmtmp() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn setbuf(_File: *mut FILE, _Buffer: *mut ::std::os::raw::c_char);
}
extern "C" {
pub fn _setmaxstdio(_Max: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _set_output_format(_Format: ::std::os::raw::c_uint) -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn _get_output_format() -> ::std::os::raw::c_uint;
}
extern "C" {
pub fn setvbuf(
_File: *mut FILE,
_Buf: *mut ::std::os::raw::c_char,
_Mode: ::std::os::raw::c_int,
_Size: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _scprintf(_Format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snscanf(
_Src: *const ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vscprintf(
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn tmpfile() -> *mut FILE;
}
extern "C" {
pub fn tmpnam(_Buffer: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn ungetc(_Ch: ::std::os::raw::c_int, _File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snprintf(
_Dest: *mut ::std::os::raw::c_char,
_Count: usize,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsnprintf(
_Dest: *mut ::std::os::raw::c_char,
_Count: usize,
_Format: *const ::std::os::raw::c_char,
_Args: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _set_printf_count_output(_Value: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _get_printf_count_output() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_swscanf(
_Src: *const wchar_t,
_Format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vswscanf(
_Str: *const wchar_t,
Format: *const wchar_t,
argp: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_wscanf(_Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vwscanf(Format: *const wchar_t, argp: va_list) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_fwscanf(_File: *mut FILE, _Format: *const wchar_t, ...)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vfwscanf(
fp: *mut FILE,
Format: *const wchar_t,
argp: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_fwprintf(
_File: *mut FILE,
_Format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_wprintf(_Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vfwprintf(
_File: *mut FILE,
_Format: *const wchar_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vwprintf(_Format: *const wchar_t, _ArgList: va_list) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_snwprintf(
s: *mut wchar_t,
n: usize,
format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vsnwprintf(
arg1: *mut wchar_t,
arg2: usize,
arg3: *const wchar_t,
arg4: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_swprintf(arg1: *mut wchar_t, arg2: *const wchar_t, ...)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_vswprintf(
arg1: *mut wchar_t,
arg2: *const wchar_t,
arg3: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_swscanf(
_Src: *const wchar_t,
_Format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_wscanf(_Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_fwscanf(_File: *mut FILE, _Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_fwprintf(_File: *mut FILE, _Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_wprintf(_Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_vfwprintf(
_File: *mut FILE,
_Format: *const wchar_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_vwprintf(_Format: *const wchar_t, _ArgList: va_list) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_swprintf(arg1: *mut wchar_t, arg2: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __ms_vswprintf(
arg1: *mut wchar_t,
arg2: *const wchar_t,
arg3: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wfsopen(
_Filename: *const wchar_t,
_Mode: *const wchar_t,
_ShFlag: ::std::os::raw::c_int,
) -> *mut FILE;
}
extern "C" {
pub fn fgetwc(_File: *mut FILE) -> wint_t;
}
extern "C" {
pub fn _fgetwchar() -> wint_t;
}
extern "C" {
pub fn fputwc(_Ch: wchar_t, _File: *mut FILE) -> wint_t;
}
extern "C" {
pub fn _fputwchar(_Ch: wchar_t) -> wint_t;
}
extern "C" {
pub fn getwc(_File: *mut FILE) -> wint_t;
}
extern "C" {
pub fn getwchar() -> wint_t;
}
extern "C" {
pub fn putwc(_Ch: wchar_t, _File: *mut FILE) -> wint_t;
}
extern "C" {
pub fn putwchar(_Ch: wchar_t) -> wint_t;
}
extern "C" {
pub fn ungetwc(_Ch: wint_t, _File: *mut FILE) -> wint_t;
}
extern "C" {
pub fn fgetws(
_Dst: *mut wchar_t,
_SizeInWords: ::std::os::raw::c_int,
_File: *mut FILE,
) -> *mut wchar_t;
}
extern "C" {
pub fn fputws(_Str: *const wchar_t, _File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _getws(_String: *mut wchar_t) -> *mut wchar_t;
}
extern "C" {
pub fn _putws(_Str: *const wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _scwprintf(_Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _swprintf_c(
_DstBuf: *mut wchar_t,
_SizeInWords: usize,
_Format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vswprintf_c(
_DstBuf: *mut wchar_t,
_SizeInWords: usize,
_Format: *const wchar_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snwprintf(
_Dest: *mut wchar_t,
_Count: usize,
_Format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsnwprintf(
_Dest: *mut wchar_t,
_Count: usize,
_Format: *const wchar_t,
_Args: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vscwprintf(_Format: *const wchar_t, _ArgList: va_list) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _swprintf(_Dest: *mut wchar_t, _Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vswprintf(
_Dest: *mut wchar_t,
_Format: *const wchar_t,
_Args: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wtempnam(_Directory: *const wchar_t, _FilePrefix: *const wchar_t) -> *mut wchar_t;
}
extern "C" {
pub fn _snwscanf(
_Src: *const wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wfdopen(_FileHandle: ::std::os::raw::c_int, _Mode: *const wchar_t) -> *mut FILE;
}
extern "C" {
pub fn _wfopen(_Filename: *const wchar_t, _Mode: *const wchar_t) -> *mut FILE;
}
extern "C" {
pub fn _wfreopen(
_Filename: *const wchar_t,
_Mode: *const wchar_t,
_OldFile: *mut FILE,
) -> *mut FILE;
}
extern "C" {
pub fn _wperror(_ErrMsg: *const wchar_t);
}
extern "C" {
pub fn _wpopen(_Command: *const wchar_t, _Mode: *const wchar_t) -> *mut FILE;
}
extern "C" {
pub fn _wremove(_Filename: *const wchar_t) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wtmpnam(_Buffer: *mut wchar_t) -> *mut wchar_t;
}
extern "C" {
pub fn _lock_file(_File: *mut FILE);
}
extern "C" {
pub fn _unlock_file(_File: *mut FILE);
}
extern "C" {
pub fn tempnam(
_Directory: *const ::std::os::raw::c_char,
_FilePrefix: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn fcloseall() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fdopen(
_FileHandle: ::std::os::raw::c_int,
_Format: *const ::std::os::raw::c_char,
) -> *mut FILE;
}
extern "C" {
pub fn fgetchar() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fileno(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn flushall() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fputchar(_Ch: ::std::os::raw::c_int) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn getw(_File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn putw(_Ch: ::std::os::raw::c_int, _File: *mut FILE) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rmtmp() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_str_wide_utf8(
wptr: *const wchar_t,
mbptr: *mut *mut ::std::os::raw::c_char,
buflen: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_str_utf8_wide(
mbptr: *const ::std::os::raw::c_char,
wptr: *mut *mut wchar_t,
buflen: *mut usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __mingw_str_free(ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn _wspawnl(
_Mode: ::std::os::raw::c_int,
_Filename: *const wchar_t,
_ArgList: *const wchar_t,
...
) -> isize;
}
extern "C" {
pub fn _wspawnle(
_Mode: ::std::os::raw::c_int,
_Filename: *const wchar_t,
_ArgList: *const wchar_t,
...
) -> isize;
}
extern "C" {
pub fn _wspawnlp(
_Mode: ::std::os::raw::c_int,
_Filename: *const wchar_t,
_ArgList: *const wchar_t,
...
) -> isize;
}
extern "C" {
pub fn _wspawnlpe(
_Mode: ::std::os::raw::c_int,
_Filename: *const wchar_t,
_ArgList: *const wchar_t,
...
) -> isize;
}
extern "C" {
pub fn _wspawnv(
_Mode: ::std::os::raw::c_int,
_Filename: *const wchar_t,
_ArgList: *const *const wchar_t,
) -> isize;
}
extern "C" {
pub fn _wspawnve(
_Mode: ::std::os::raw::c_int,
_Filename: *const wchar_t,
_ArgList: *const *const wchar_t,
_Env: *const *const wchar_t,
) -> isize;
}
extern "C" {
pub fn _wspawnvp(
_Mode: ::std::os::raw::c_int,
_Filename: *const wchar_t,
_ArgList: *const *const wchar_t,
) -> isize;
}
extern "C" {
pub fn _wspawnvpe(
_Mode: ::std::os::raw::c_int,
_Filename: *const wchar_t,
_ArgList: *const *const wchar_t,
_Env: *const *const wchar_t,
) -> isize;
}
extern "C" {
pub fn _spawnv(
_Mode: ::std::os::raw::c_int,
_Filename: *const ::std::os::raw::c_char,
_ArgList: *const *const ::std::os::raw::c_char,
) -> isize;
}
extern "C" {
pub fn _spawnve(
_Mode: ::std::os::raw::c_int,
_Filename: *const ::std::os::raw::c_char,
_ArgList: *const *const ::std::os::raw::c_char,
_Env: *const *const ::std::os::raw::c_char,
) -> isize;
}
extern "C" {
pub fn _spawnvp(
_Mode: ::std::os::raw::c_int,
_Filename: *const ::std::os::raw::c_char,
_ArgList: *const *const ::std::os::raw::c_char,
) -> isize;
}
extern "C" {
pub fn _spawnvpe(
_Mode: ::std::os::raw::c_int,
_Filename: *const ::std::os::raw::c_char,
_ArgList: *const *const ::std::os::raw::c_char,
_Env: *const *const ::std::os::raw::c_char,
) -> isize;
}
extern "C" {
pub fn clearerr_s(_File: *mut FILE) -> errno_t;
}
extern "C" {
pub fn fread_s(
_DstBuf: *mut ::std::os::raw::c_void,
_DstSize: usize,
_ElementSize: usize,
_Count: usize,
_File: *mut FILE,
) -> usize;
}
extern "C" {
pub fn fprintf_s(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fscanf_s_l(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fscanf_s(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn printf_s(_Format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _scanf_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _scanf_s_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn scanf_s(_Format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snprintf_c(
_DstBuf: *mut ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsnprintf_c(
_DstBuf: *mut ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fscanf_l(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _sscanf_l(
_Src: *const ::std::os::raw::c_char,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _sscanf_s_l(
_Src: *const ::std::os::raw::c_char,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sscanf_s(
_Src: *const ::std::os::raw::c_char,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snscanf_s(
_Src: *const ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snscanf_l(
_Src: *const ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snscanf_s_l(
_Src: *const ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vfprintf_s(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vprintf_s(
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsnprintf_s(
_DstBuf: *mut ::std::os::raw::c_char,
_DstSize: usize,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsnprintf_s(
_DstBuf: *mut ::std::os::raw::c_char,
_DstSize: usize,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vsprintf_s(
_DstBuf: *mut ::std::os::raw::c_char,
_Size: usize,
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn sprintf_s(
_DstBuf: *mut ::std::os::raw::c_char,
_DstSize: usize,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snprintf_s(
_DstBuf: *mut ::std::os::raw::c_char,
_DstSize: usize,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fprintf_p(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _printf_p(_Format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _sprintf_p(
_Dst: *mut ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vfprintf_p(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vprintf_p(
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsprintf_p(
_Dst: *mut ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _scprintf_p(_Format: *const ::std::os::raw::c_char, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vscprintf_p(
_Format: *const ::std::os::raw::c_char,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _printf_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _printf_p_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vprintf_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vprintf_p_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fprintf_l(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fprintf_p_l(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vfprintf_l(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vfprintf_p_l(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _sprintf_l(
_DstBuf: *mut ::std::os::raw::c_char,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _sprintf_p_l(
_DstBuf: *mut ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsprintf_l(
_DstBuf: *mut ::std::os::raw::c_char,
_Format: *const ::std::os::raw::c_char,
arg1: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsprintf_p_l(
_DstBuf: *mut ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _scprintf_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _scprintf_p_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vscprintf_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vscprintf_p_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _printf_s_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vprintf_s_l(
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fprintf_s_l(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vfprintf_s_l(
_File: *mut FILE,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _sprintf_s_l(
_DstBuf: *mut ::std::os::raw::c_char,
_DstSize: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsprintf_s_l(
_DstBuf: *mut ::std::os::raw::c_char,
_DstSize: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snprintf_s_l(
_DstBuf: *mut ::std::os::raw::c_char,
_DstSize: usize,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsnprintf_s_l(
_DstBuf: *mut ::std::os::raw::c_char,
_DstSize: usize,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snprintf_l(
_DstBuf: *mut ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snprintf_c_l(
_DstBuf: *mut ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsnprintf_l(
_DstBuf: *mut ::std::os::raw::c_char,
_MaxCount: usize,
_Format: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsnprintf_c_l(
_DstBuf: *mut ::std::os::raw::c_char,
_MaxCount: usize,
arg1: *const ::std::os::raw::c_char,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fopen_s(
_File: *mut *mut FILE,
_Filename: *const ::std::os::raw::c_char,
_Mode: *const ::std::os::raw::c_char,
) -> errno_t;
}
extern "C" {
pub fn freopen_s(
_File: *mut *mut FILE,
_Filename: *const ::std::os::raw::c_char,
_Mode: *const ::std::os::raw::c_char,
_Stream: *mut FILE,
) -> errno_t;
}
extern "C" {
pub fn gets_s(arg1: *mut ::std::os::raw::c_char, arg2: rsize_t) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn tmpfile_s(_File: *mut *mut FILE) -> errno_t;
}
extern "C" {
pub fn tmpnam_s(arg1: *mut ::std::os::raw::c_char, arg2: rsize_t) -> errno_t;
}
extern "C" {
pub fn _getws_s(_Str: *mut wchar_t, _SizeInWords: usize) -> *mut wchar_t;
}
extern "C" {
pub fn fwprintf_s(_File: *mut FILE, _Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn wprintf_s(_Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vfwprintf_s(
_File: *mut FILE,
_Format: *const wchar_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vwprintf_s(_Format: *const wchar_t, _ArgList: va_list) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn vswprintf_s(
_Dst: *mut wchar_t,
_SizeInWords: usize,
_Format: *const wchar_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn swprintf_s(
_Dst: *mut wchar_t,
_SizeInWords: usize,
_Format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsnwprintf_s(
_DstBuf: *mut wchar_t,
_DstSizeInWords: usize,
_MaxCount: usize,
_Format: *const wchar_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snwprintf_s(
_DstBuf: *mut wchar_t,
_DstSizeInWords: usize,
_MaxCount: usize,
_Format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wprintf_s_l(_Format: *const wchar_t, _Locale: _locale_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vwprintf_s_l(
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fwprintf_s_l(
_File: *mut FILE,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vfwprintf_s_l(
_File: *mut FILE,
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _swprintf_s_l(
_DstBuf: *mut wchar_t,
_DstSize: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vswprintf_s_l(
_DstBuf: *mut wchar_t,
_DstSize: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snwprintf_s_l(
_DstBuf: *mut wchar_t,
_DstSize: usize,
_MaxCount: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsnwprintf_s_l(
_DstBuf: *mut wchar_t,
_DstSize: usize,
_MaxCount: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fwscanf_s_l(
_File: *mut FILE,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn fwscanf_s(_File: *mut FILE, _Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _swscanf_s_l(
_Src: *const wchar_t,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn swscanf_s(_Src: *const wchar_t, _Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snwscanf_s(
_Src: *const wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snwscanf_s_l(
_Src: *const wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wscanf_s_l(_Format: *const wchar_t, _Locale: _locale_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn wscanf_s(_Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wfopen_s(
_File: *mut *mut FILE,
_Filename: *const wchar_t,
_Mode: *const wchar_t,
) -> errno_t;
}
extern "C" {
pub fn _wfreopen_s(
_File: *mut *mut FILE,
_Filename: *const wchar_t,
_Mode: *const wchar_t,
_OldFile: *mut FILE,
) -> errno_t;
}
extern "C" {
pub fn _wtmpnam_s(_DstBuf: *mut wchar_t, _SizeInWords: usize) -> errno_t;
}
extern "C" {
pub fn _fwprintf_p(_File: *mut FILE, _Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wprintf_p(_Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vfwprintf_p(
_File: *mut FILE,
_Format: *const wchar_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vwprintf_p(_Format: *const wchar_t, _ArgList: va_list) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _swprintf_p(
_DstBuf: *mut wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vswprintf_p(
_DstBuf: *mut wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _scwprintf_p(_Format: *const wchar_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vscwprintf_p(_Format: *const wchar_t, _ArgList: va_list) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wprintf_l(_Format: *const wchar_t, _Locale: _locale_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wprintf_p_l(_Format: *const wchar_t, _Locale: _locale_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vwprintf_l(
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vwprintf_p_l(
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fwprintf_l(
_File: *mut FILE,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fwprintf_p_l(
_File: *mut FILE,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vfwprintf_l(
_File: *mut FILE,
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vfwprintf_p_l(
_File: *mut FILE,
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _swprintf_c_l(
_DstBuf: *mut wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _swprintf_p_l(
_DstBuf: *mut wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vswprintf_c_l(
_DstBuf: *mut wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vswprintf_p_l(
_DstBuf: *mut wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _scwprintf_l(_Format: *const wchar_t, _Locale: _locale_t, ...) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _scwprintf_p_l(
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vscwprintf_p_l(
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snwprintf_l(
_DstBuf: *mut wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vsnwprintf_l(
_DstBuf: *mut wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __swprintf_l(
_Dest: *mut wchar_t,
_Format: *const wchar_t,
_Plocinfo: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn __vswprintf_l(
_Dest: *mut wchar_t,
_Format: *const wchar_t,
_Plocinfo: _locale_t,
_Args: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _vscwprintf_l(
_Format: *const wchar_t,
_Locale: _locale_t,
_ArgList: va_list,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _fwscanf_l(
_File: *mut FILE,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _swscanf_l(
_Src: *const wchar_t,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _snwscanf_l(
_Src: *const wchar_t,
_MaxCount: usize,
_Format: *const wchar_t,
_Locale: _locale_t,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn _wscanf_l(_Format: *const wchar_t, _Locale: _locale_t, ...) -> ::std::os::raw::c_int;
}
pub type int_least8_t = ::std::os::raw::c_schar;
pub type uint_least8_t = ::std::os::raw::c_uchar;
pub type int_least16_t = ::std::os::raw::c_short;
pub type uint_least16_t = ::std::os::raw::c_ushort;
pub type int_least32_t = ::std::os::raw::c_int;
pub type uint_least32_t = ::std::os::raw::c_uint;
pub type int_least64_t = ::std::os::raw::c_longlong;
pub type uint_least64_t = ::std::os::raw::c_ulonglong;
pub type int_fast8_t = ::std::os::raw::c_schar;
pub type uint_fast8_t = ::std::os::raw::c_uchar;
pub type int_fast16_t = ::std::os::raw::c_short;
pub type uint_fast16_t = ::std::os::raw::c_ushort;
pub type int_fast32_t = ::std::os::raw::c_int;
pub type uint_fast32_t = ::std::os::raw::c_uint;
pub type int_fast64_t = ::std::os::raw::c_longlong;
pub type uint_fast64_t = ::std::os::raw::c_ulonglong;
pub type intmax_t = ::std::os::raw::c_longlong;
pub type uintmax_t = ::std::os::raw::c_ulonglong;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSRuntime {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSContext {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSObject {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSClass {
_unused: [u8; 0],
}
pub type JSClassID = u32;
pub type JSAtom = u32;
pub const JS_TAG_FIRST: _bindgen_ty_1 = -9;
pub const JS_TAG_BIG_INT: _bindgen_ty_1 = -9;
pub const JS_TAG_SYMBOL: _bindgen_ty_1 = -8;
pub const JS_TAG_STRING: _bindgen_ty_1 = -7;
pub const JS_TAG_MODULE: _bindgen_ty_1 = -3;
pub const JS_TAG_FUNCTION_BYTECODE: _bindgen_ty_1 = -2;
pub const JS_TAG_OBJECT: _bindgen_ty_1 = -1;
pub const JS_TAG_INT: _bindgen_ty_1 = 0;
pub const JS_TAG_BOOL: _bindgen_ty_1 = 1;
pub const JS_TAG_NULL: _bindgen_ty_1 = 2;
pub const JS_TAG_UNDEFINED: _bindgen_ty_1 = 3;
pub const JS_TAG_UNINITIALIZED: _bindgen_ty_1 = 4;
pub const JS_TAG_CATCH_OFFSET: _bindgen_ty_1 = 5;
pub const JS_TAG_EXCEPTION: _bindgen_ty_1 = 6;
pub const JS_TAG_FLOAT64: _bindgen_ty_1 = 7;
pub type _bindgen_ty_1 = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSRefCountHeader {
pub ref_count: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_JSRefCountHeader() {
const UNINIT: ::std::mem::MaybeUninit<JSRefCountHeader> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSRefCountHeader>(),
4usize,
concat!("Size of: ", stringify!(JSRefCountHeader))
);
assert_eq!(
::std::mem::align_of::<JSRefCountHeader>(),
4usize,
concat!("Alignment of ", stringify!(JSRefCountHeader))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ref_count) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSRefCountHeader),
"::",
stringify!(ref_count)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union JSValueUnion {
pub int32: i32,
pub float64: f64,
pub ptr: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_JSValueUnion() {
const UNINIT: ::std::mem::MaybeUninit<JSValueUnion> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSValueUnion>(),
8usize,
concat!("Size of: ", stringify!(JSValueUnion))
);
assert_eq!(
::std::mem::align_of::<JSValueUnion>(),
8usize,
concat!("Alignment of ", stringify!(JSValueUnion))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).int32) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSValueUnion),
"::",
stringify!(int32)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).float64) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSValueUnion),
"::",
stringify!(float64)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).ptr) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSValueUnion),
"::",
stringify!(ptr)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct JSValue {
pub u: JSValueUnion,
pub tag: i64,
}
#[test]
fn bindgen_test_layout_JSValue() {
const UNINIT: ::std::mem::MaybeUninit<JSValue> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSValue>(),
16usize,
concat!("Size of: ", stringify!(JSValue))
);
assert_eq!(
::std::mem::align_of::<JSValue>(),
8usize,
concat!("Alignment of ", stringify!(JSValue))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSValue),
"::",
stringify!(u)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tag) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSValue),
"::",
stringify!(tag)
)
);
}
pub type JSCFunction = ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
this_val: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
) -> JSValue,
>;
pub type JSCFunctionMagic = ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
this_val: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
magic: ::std::os::raw::c_int,
) -> JSValue,
>;
pub type JSCFunctionData = ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
this_val: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
magic: ::std::os::raw::c_int,
func_data: *mut JSValue,
) -> JSValue,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSMallocState {
pub malloc_count: usize,
pub malloc_size: usize,
pub malloc_limit: usize,
pub opaque: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_JSMallocState() {
const UNINIT: ::std::mem::MaybeUninit<JSMallocState> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSMallocState>(),
32usize,
concat!("Size of: ", stringify!(JSMallocState))
);
assert_eq!(
::std::mem::align_of::<JSMallocState>(),
8usize,
concat!("Alignment of ", stringify!(JSMallocState))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).malloc_count) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSMallocState),
"::",
stringify!(malloc_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).malloc_size) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSMallocState),
"::",
stringify!(malloc_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).malloc_limit) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(JSMallocState),
"::",
stringify!(malloc_limit)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).opaque) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(JSMallocState),
"::",
stringify!(opaque)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSMallocFunctions {
pub js_malloc: ::std::option::Option<
unsafe extern "C" fn(s: *mut JSMallocState, size: usize) -> *mut ::std::os::raw::c_void,
>,
pub js_free: ::std::option::Option<
unsafe extern "C" fn(s: *mut JSMallocState, ptr: *mut ::std::os::raw::c_void),
>,
pub js_realloc: ::std::option::Option<
unsafe extern "C" fn(
s: *mut JSMallocState,
ptr: *mut ::std::os::raw::c_void,
size: usize,
) -> *mut ::std::os::raw::c_void,
>,
pub js_malloc_usable_size:
::std::option::Option<unsafe extern "C" fn(ptr: *const ::std::os::raw::c_void) -> usize>,
}
#[test]
fn bindgen_test_layout_JSMallocFunctions() {
const UNINIT: ::std::mem::MaybeUninit<JSMallocFunctions> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSMallocFunctions>(),
32usize,
concat!("Size of: ", stringify!(JSMallocFunctions))
);
assert_eq!(
::std::mem::align_of::<JSMallocFunctions>(),
8usize,
concat!("Alignment of ", stringify!(JSMallocFunctions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).js_malloc) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSMallocFunctions),
"::",
stringify!(js_malloc)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).js_free) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSMallocFunctions),
"::",
stringify!(js_free)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).js_realloc) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(JSMallocFunctions),
"::",
stringify!(js_realloc)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).js_malloc_usable_size) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(JSMallocFunctions),
"::",
stringify!(js_malloc_usable_size)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSGCObjectHeader {
_unused: [u8; 0],
}
extern "C" {
pub fn JS_NewRuntime() -> *mut JSRuntime;
}
extern "C" {
pub fn JS_SetRuntimeInfo(rt: *mut JSRuntime, info: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn JS_SetMemoryLimit(rt: *mut JSRuntime, limit: usize);
}
extern "C" {
pub fn JS_SetGCThreshold(rt: *mut JSRuntime, gc_threshold: usize);
}
extern "C" {
pub fn JS_SetMaxStackSize(rt: *mut JSRuntime, stack_size: usize);
}
extern "C" {
pub fn JS_UpdateStackTop(rt: *mut JSRuntime);
}
extern "C" {
pub fn JS_NewRuntime2(
mf: *const JSMallocFunctions,
opaque: *mut ::std::os::raw::c_void,
) -> *mut JSRuntime;
}
extern "C" {
pub fn JS_FreeRuntime(rt: *mut JSRuntime);
}
extern "C" {
pub fn JS_GetRuntimeOpaque(rt: *mut JSRuntime) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn JS_SetRuntimeOpaque(rt: *mut JSRuntime, opaque: *mut ::std::os::raw::c_void);
}
pub type JS_MarkFunc =
::std::option::Option<unsafe extern "C" fn(rt: *mut JSRuntime, gp: *mut JSGCObjectHeader)>;
extern "C" {
pub fn JS_MarkValue(rt: *mut JSRuntime, val: JSValue, mark_func: JS_MarkFunc);
}
extern "C" {
pub fn JS_RunGC(rt: *mut JSRuntime);
}
extern "C" {
pub fn JS_IsLiveObject(rt: *mut JSRuntime, obj: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_NewContext(rt: *mut JSRuntime) -> *mut JSContext;
}
extern "C" {
pub fn JS_FreeContext(s: *mut JSContext);
}
extern "C" {
pub fn JS_DupContext(ctx: *mut JSContext) -> *mut JSContext;
}
extern "C" {
pub fn JS_GetContextOpaque(ctx: *mut JSContext) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn JS_SetContextOpaque(ctx: *mut JSContext, opaque: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn JS_GetRuntime(ctx: *mut JSContext) -> *mut JSRuntime;
}
extern "C" {
pub fn JS_SetClassProto(ctx: *mut JSContext, class_id: JSClassID, obj: JSValue);
}
extern "C" {
pub fn JS_GetClassProto(ctx: *mut JSContext, class_id: JSClassID) -> JSValue;
}
extern "C" {
pub fn JS_NewContextRaw(rt: *mut JSRuntime) -> *mut JSContext;
}
extern "C" {
pub fn JS_AddIntrinsicBaseObjects(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicDate(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicEval(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicRegExpCompiler(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicRegExp(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicJSON(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicProxy(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicMapSet(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicTypedArrays(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicPromise(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicBigInt(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddIntrinsicWeakRef(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_AddPerformance(ctx: *mut JSContext);
}
extern "C" {
pub fn js_string_codePointRange(
ctx: *mut JSContext,
this_val: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
) -> JSValue;
}
extern "C" {
pub fn js_malloc_rt(rt: *mut JSRuntime, size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn js_free_rt(rt: *mut JSRuntime, ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn js_realloc_rt(
rt: *mut JSRuntime,
ptr: *mut ::std::os::raw::c_void,
size: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn js_malloc_usable_size_rt(
rt: *mut JSRuntime,
ptr: *const ::std::os::raw::c_void,
) -> usize;
}
extern "C" {
pub fn js_mallocz_rt(rt: *mut JSRuntime, size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn js_malloc(ctx: *mut JSContext, size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn js_free(ctx: *mut JSContext, ptr: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn js_realloc(
ctx: *mut JSContext,
ptr: *mut ::std::os::raw::c_void,
size: usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn js_malloc_usable_size(ctx: *mut JSContext, ptr: *const ::std::os::raw::c_void) -> usize;
}
extern "C" {
pub fn js_realloc2(
ctx: *mut JSContext,
ptr: *mut ::std::os::raw::c_void,
size: usize,
pslack: *mut usize,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn js_mallocz(ctx: *mut JSContext, size: usize) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn js_strdup(
ctx: *mut JSContext,
str_: *const ::std::os::raw::c_char,
) -> *mut ::std::os::raw::c_char;
}
extern "C" {
pub fn js_strndup(
ctx: *mut JSContext,
s: *const ::std::os::raw::c_char,
n: usize,
) -> *mut ::std::os::raw::c_char;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSMemoryUsage {
pub malloc_size: i64,
pub malloc_limit: i64,
pub memory_used_size: i64,
pub malloc_count: i64,
pub memory_used_count: i64,
pub atom_count: i64,
pub atom_size: i64,
pub str_count: i64,
pub str_size: i64,
pub obj_count: i64,
pub obj_size: i64,
pub prop_count: i64,
pub prop_size: i64,
pub shape_count: i64,
pub shape_size: i64,
pub js_func_count: i64,
pub js_func_size: i64,
pub js_func_code_size: i64,
pub js_func_pc2line_count: i64,
pub js_func_pc2line_size: i64,
pub c_func_count: i64,
pub array_count: i64,
pub fast_array_count: i64,
pub fast_array_elements: i64,
pub binary_object_count: i64,
pub binary_object_size: i64,
}
#[test]
fn bindgen_test_layout_JSMemoryUsage() {
const UNINIT: ::std::mem::MaybeUninit<JSMemoryUsage> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSMemoryUsage>(),
208usize,
concat!("Size of: ", stringify!(JSMemoryUsage))
);
assert_eq!(
::std::mem::align_of::<JSMemoryUsage>(),
8usize,
concat!("Alignment of ", stringify!(JSMemoryUsage))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).malloc_size) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(malloc_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).malloc_limit) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(malloc_limit)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).memory_used_size) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(memory_used_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).malloc_count) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(malloc_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).memory_used_count) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(memory_used_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).atom_count) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(atom_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).atom_size) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(atom_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).str_count) as usize - ptr as usize },
56usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(str_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).str_size) as usize - ptr as usize },
64usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(str_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).obj_count) as usize - ptr as usize },
72usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(obj_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).obj_size) as usize - ptr as usize },
80usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(obj_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).prop_count) as usize - ptr as usize },
88usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(prop_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).prop_size) as usize - ptr as usize },
96usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(prop_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).shape_count) as usize - ptr as usize },
104usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(shape_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).shape_size) as usize - ptr as usize },
112usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(shape_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).js_func_count) as usize - ptr as usize },
120usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(js_func_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).js_func_size) as usize - ptr as usize },
128usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(js_func_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).js_func_code_size) as usize - ptr as usize },
136usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(js_func_code_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).js_func_pc2line_count) as usize - ptr as usize },
144usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(js_func_pc2line_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).js_func_pc2line_size) as usize - ptr as usize },
152usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(js_func_pc2line_size)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).c_func_count) as usize - ptr as usize },
160usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(c_func_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).array_count) as usize - ptr as usize },
168usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(array_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fast_array_count) as usize - ptr as usize },
176usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(fast_array_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).fast_array_elements) as usize - ptr as usize },
184usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(fast_array_elements)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).binary_object_count) as usize - ptr as usize },
192usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(binary_object_count)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).binary_object_size) as usize - ptr as usize },
200usize,
concat!(
"Offset of field: ",
stringify!(JSMemoryUsage),
"::",
stringify!(binary_object_size)
)
);
}
extern "C" {
pub fn JS_ComputeMemoryUsage(rt: *mut JSRuntime, s: *mut JSMemoryUsage);
}
extern "C" {
pub fn JS_DumpMemoryUsage(fp: *mut FILE, s: *const JSMemoryUsage, rt: *mut JSRuntime);
}
extern "C" {
pub fn JS_NewAtomLen(
ctx: *mut JSContext,
str_: *const ::std::os::raw::c_char,
len: usize,
) -> JSAtom;
}
extern "C" {
pub fn JS_NewAtom(ctx: *mut JSContext, str_: *const ::std::os::raw::c_char) -> JSAtom;
}
extern "C" {
pub fn JS_NewAtomUInt32(ctx: *mut JSContext, n: u32) -> JSAtom;
}
extern "C" {
pub fn JS_DupAtom(ctx: *mut JSContext, v: JSAtom) -> JSAtom;
}
extern "C" {
pub fn JS_FreeAtom(ctx: *mut JSContext, v: JSAtom);
}
extern "C" {
pub fn JS_FreeAtomRT(rt: *mut JSRuntime, v: JSAtom);
}
extern "C" {
pub fn JS_AtomToValue(ctx: *mut JSContext, atom: JSAtom) -> JSValue;
}
extern "C" {
pub fn JS_AtomToString(ctx: *mut JSContext, atom: JSAtom) -> JSValue;
}
extern "C" {
pub fn JS_AtomToCString(ctx: *mut JSContext, atom: JSAtom) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn JS_ValueToAtom(ctx: *mut JSContext, val: JSValue) -> JSAtom;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSPropertyEnum {
pub is_enumerable: ::std::os::raw::c_int,
pub atom: JSAtom,
}
#[test]
fn bindgen_test_layout_JSPropertyEnum() {
const UNINIT: ::std::mem::MaybeUninit<JSPropertyEnum> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSPropertyEnum>(),
8usize,
concat!("Size of: ", stringify!(JSPropertyEnum))
);
assert_eq!(
::std::mem::align_of::<JSPropertyEnum>(),
4usize,
concat!("Alignment of ", stringify!(JSPropertyEnum))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).is_enumerable) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSPropertyEnum),
"::",
stringify!(is_enumerable)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).atom) as usize - ptr as usize },
4usize,
concat!(
"Offset of field: ",
stringify!(JSPropertyEnum),
"::",
stringify!(atom)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct JSPropertyDescriptor {
pub flags: ::std::os::raw::c_int,
pub value: JSValue,
pub getter: JSValue,
pub setter: JSValue,
}
#[test]
fn bindgen_test_layout_JSPropertyDescriptor() {
const UNINIT: ::std::mem::MaybeUninit<JSPropertyDescriptor> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSPropertyDescriptor>(),
56usize,
concat!("Size of: ", stringify!(JSPropertyDescriptor))
);
assert_eq!(
::std::mem::align_of::<JSPropertyDescriptor>(),
8usize,
concat!("Alignment of ", stringify!(JSPropertyDescriptor))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSPropertyDescriptor),
"::",
stringify!(flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).value) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSPropertyDescriptor),
"::",
stringify!(value)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).getter) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(JSPropertyDescriptor),
"::",
stringify!(getter)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).setter) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(JSPropertyDescriptor),
"::",
stringify!(setter)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSClassExoticMethods {
pub get_own_property: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
desc: *mut JSPropertyDescriptor,
obj: JSValue,
prop: JSAtom,
) -> ::std::os::raw::c_int,
>,
pub get_own_property_names: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
ptab: *mut *mut JSPropertyEnum,
plen: *mut u32,
obj: JSValue,
) -> ::std::os::raw::c_int,
>,
pub delete_property: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
obj: JSValue,
prop: JSAtom,
) -> ::std::os::raw::c_int,
>,
pub define_own_property: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
this_obj: JSValue,
prop: JSAtom,
val: JSValue,
getter: JSValue,
setter: JSValue,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
pub has_property: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
obj: JSValue,
atom: JSAtom,
) -> ::std::os::raw::c_int,
>,
pub get_property: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
obj: JSValue,
atom: JSAtom,
receiver: JSValue,
) -> JSValue,
>,
pub set_property: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
obj: JSValue,
atom: JSAtom,
value: JSValue,
receiver: JSValue,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int,
>,
}
#[test]
fn bindgen_test_layout_JSClassExoticMethods() {
const UNINIT: ::std::mem::MaybeUninit<JSClassExoticMethods> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSClassExoticMethods>(),
56usize,
concat!("Size of: ", stringify!(JSClassExoticMethods))
);
assert_eq!(
::std::mem::align_of::<JSClassExoticMethods>(),
8usize,
concat!("Alignment of ", stringify!(JSClassExoticMethods))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_own_property) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSClassExoticMethods),
"::",
stringify!(get_own_property)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_own_property_names) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSClassExoticMethods),
"::",
stringify!(get_own_property_names)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).delete_property) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(JSClassExoticMethods),
"::",
stringify!(delete_property)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).define_own_property) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(JSClassExoticMethods),
"::",
stringify!(define_own_property)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).has_property) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(JSClassExoticMethods),
"::",
stringify!(has_property)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get_property) as usize - ptr as usize },
40usize,
concat!(
"Offset of field: ",
stringify!(JSClassExoticMethods),
"::",
stringify!(get_property)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).set_property) as usize - ptr as usize },
48usize,
concat!(
"Offset of field: ",
stringify!(JSClassExoticMethods),
"::",
stringify!(set_property)
)
);
}
pub type JSClassFinalizer =
::std::option::Option<unsafe extern "C" fn(rt: *mut JSRuntime, val: JSValue)>;
pub type JSClassGCMark = ::std::option::Option<
unsafe extern "C" fn(rt: *mut JSRuntime, val: JSValue, mark_func: JS_MarkFunc),
>;
pub type JSClassCall = ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
func_obj: JSValue,
this_val: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
flags: ::std::os::raw::c_int,
) -> JSValue,
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSClassDef {
pub class_name: *const ::std::os::raw::c_char,
pub finalizer: JSClassFinalizer,
pub gc_mark: JSClassGCMark,
pub call: JSClassCall,
pub exotic: *mut JSClassExoticMethods,
}
#[test]
fn bindgen_test_layout_JSClassDef() {
const UNINIT: ::std::mem::MaybeUninit<JSClassDef> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSClassDef>(),
40usize,
concat!("Size of: ", stringify!(JSClassDef))
);
assert_eq!(
::std::mem::align_of::<JSClassDef>(),
8usize,
concat!("Alignment of ", stringify!(JSClassDef))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).class_name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSClassDef),
"::",
stringify!(class_name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).finalizer) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSClassDef),
"::",
stringify!(finalizer)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).gc_mark) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(JSClassDef),
"::",
stringify!(gc_mark)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).call) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(JSClassDef),
"::",
stringify!(call)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).exotic) as usize - ptr as usize },
32usize,
concat!(
"Offset of field: ",
stringify!(JSClassDef),
"::",
stringify!(exotic)
)
);
}
extern "C" {
pub fn JS_NewClassID(rt: *mut JSRuntime, pclass_id: *mut JSClassID) -> JSClassID;
}
extern "C" {
pub fn JS_GetClassID(v: JSValue) -> JSClassID;
}
extern "C" {
pub fn JS_NewClass(
rt: *mut JSRuntime,
class_id: JSClassID,
class_def: *const JSClassDef,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_IsRegisteredClass(rt: *mut JSRuntime, class_id: JSClassID) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_NewFloat64(ctx: *mut JSContext, d: f64) -> JSValue;
}
extern "C" {
pub fn JS_NewBigInt64(ctx: *mut JSContext, v: i64) -> JSValue;
}
extern "C" {
pub fn JS_NewBigUint64(ctx: *mut JSContext, v: u64) -> JSValue;
}
extern "C" {
pub fn JS_Throw(ctx: *mut JSContext, obj: JSValue) -> JSValue;
}
extern "C" {
pub fn JS_GetException(ctx: *mut JSContext) -> JSValue;
}
extern "C" {
pub fn JS_IsError(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_ResetUncatchableError(ctx: *mut JSContext);
}
extern "C" {
pub fn JS_NewError(ctx: *mut JSContext) -> JSValue;
}
extern "C" {
pub fn JS_ThrowSyntaxError(
ctx: *mut JSContext,
fmt: *const ::std::os::raw::c_char,
...
) -> JSValue;
}
extern "C" {
pub fn JS_ThrowTypeError(
ctx: *mut JSContext,
fmt: *const ::std::os::raw::c_char,
...
) -> JSValue;
}
extern "C" {
pub fn JS_ThrowReferenceError(
ctx: *mut JSContext,
fmt: *const ::std::os::raw::c_char,
...
) -> JSValue;
}
extern "C" {
pub fn JS_ThrowRangeError(
ctx: *mut JSContext,
fmt: *const ::std::os::raw::c_char,
...
) -> JSValue;
}
extern "C" {
pub fn JS_ThrowInternalError(
ctx: *mut JSContext,
fmt: *const ::std::os::raw::c_char,
...
) -> JSValue;
}
extern "C" {
pub fn JS_ThrowOutOfMemory(ctx: *mut JSContext) -> JSValue;
}
extern "C" {
pub fn __JS_FreeValue(ctx: *mut JSContext, v: JSValue);
}
extern "C" {
pub fn __JS_FreeValueRT(rt: *mut JSRuntime, v: JSValue);
}
extern "C" {
pub fn JS_ToBool(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_ToInt32(ctx: *mut JSContext, pres: *mut i32, val: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_ToInt64(ctx: *mut JSContext, pres: *mut i64, val: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_ToIndex(ctx: *mut JSContext, plen: *mut u64, val: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_ToFloat64(ctx: *mut JSContext, pres: *mut f64, val: JSValue)
-> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_ToBigInt64(
ctx: *mut JSContext,
pres: *mut i64,
val: JSValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_ToInt64Ext(
ctx: *mut JSContext,
pres: *mut i64,
val: JSValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_NewStringLen(
ctx: *mut JSContext,
str1: *const ::std::os::raw::c_char,
len1: usize,
) -> JSValue;
}
extern "C" {
pub fn JS_NewString(ctx: *mut JSContext, str_: *const ::std::os::raw::c_char) -> JSValue;
}
extern "C" {
pub fn JS_NewAtomString(ctx: *mut JSContext, str_: *const ::std::os::raw::c_char) -> JSValue;
}
extern "C" {
pub fn JS_ToString(ctx: *mut JSContext, val: JSValue) -> JSValue;
}
extern "C" {
pub fn JS_ToPropertyKey(ctx: *mut JSContext, val: JSValue) -> JSValue;
}
extern "C" {
pub fn JS_ToCStringLen2(
ctx: *mut JSContext,
plen: *mut usize,
val1: JSValue,
cesu8: ::std::os::raw::c_int,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn JS_FreeCString(ctx: *mut JSContext, ptr: *const ::std::os::raw::c_char);
}
extern "C" {
pub fn JS_NewObjectProtoClass(
ctx: *mut JSContext,
proto: JSValue,
class_id: JSClassID,
) -> JSValue;
}
extern "C" {
pub fn JS_NewObjectClass(ctx: *mut JSContext, class_id: ::std::os::raw::c_int) -> JSValue;
}
extern "C" {
pub fn JS_NewObjectProto(ctx: *mut JSContext, proto: JSValue) -> JSValue;
}
extern "C" {
pub fn JS_NewObject(ctx: *mut JSContext) -> JSValue;
}
extern "C" {
pub fn JS_IsFunction(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_IsConstructor(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_SetConstructorBit(
ctx: *mut JSContext,
func_obj: JSValue,
val: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_NewArray(ctx: *mut JSContext) -> JSValue;
}
extern "C" {
pub fn JS_IsArray(ctx: *mut JSContext, val: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_NewDate(ctx: *mut JSContext, epoch_ms: f64) -> JSValue;
}
extern "C" {
pub fn JS_GetPropertyInternal(
ctx: *mut JSContext,
obj: JSValue,
prop: JSAtom,
receiver: JSValue,
throw_ref_error: ::std::os::raw::c_int,
) -> JSValue;
}
extern "C" {
pub fn JS_GetPropertyStr(
ctx: *mut JSContext,
this_obj: JSValue,
prop: *const ::std::os::raw::c_char,
) -> JSValue;
}
extern "C" {
pub fn JS_GetPropertyUint32(ctx: *mut JSContext, this_obj: JSValue, idx: u32) -> JSValue;
}
extern "C" {
pub fn JS_SetPropertyInternal(
ctx: *mut JSContext,
this_obj: JSValue,
prop: JSAtom,
val: JSValue,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_SetPropertyUint32(
ctx: *mut JSContext,
this_obj: JSValue,
idx: u32,
val: JSValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_SetPropertyInt64(
ctx: *mut JSContext,
this_obj: JSValue,
idx: i64,
val: JSValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_SetPropertyStr(
ctx: *mut JSContext,
this_obj: JSValue,
prop: *const ::std::os::raw::c_char,
val: JSValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_HasProperty(
ctx: *mut JSContext,
this_obj: JSValue,
prop: JSAtom,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_IsExtensible(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_PreventExtensions(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_DeleteProperty(
ctx: *mut JSContext,
obj: JSValue,
prop: JSAtom,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_SetPrototype(
ctx: *mut JSContext,
obj: JSValue,
proto_val: JSValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_GetPrototype(ctx: *mut JSContext, val: JSValue) -> JSValue;
}
extern "C" {
pub fn JS_GetOwnPropertyNames(
ctx: *mut JSContext,
ptab: *mut *mut JSPropertyEnum,
plen: *mut u32,
obj: JSValue,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_GetOwnProperty(
ctx: *mut JSContext,
desc: *mut JSPropertyDescriptor,
obj: JSValue,
prop: JSAtom,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_Call(
ctx: *mut JSContext,
func_obj: JSValue,
this_obj: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
) -> JSValue;
}
extern "C" {
pub fn JS_Invoke(
ctx: *mut JSContext,
this_val: JSValue,
atom: JSAtom,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
) -> JSValue;
}
extern "C" {
pub fn JS_CallConstructor(
ctx: *mut JSContext,
func_obj: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
) -> JSValue;
}
extern "C" {
pub fn JS_CallConstructor2(
ctx: *mut JSContext,
func_obj: JSValue,
new_target: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
) -> JSValue;
}
extern "C" {
pub fn JS_DetectModule(
input: *const ::std::os::raw::c_char,
input_len: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_Eval(
ctx: *mut JSContext,
input: *const ::std::os::raw::c_char,
input_len: usize,
filename: *const ::std::os::raw::c_char,
eval_flags: ::std::os::raw::c_int,
) -> JSValue;
}
extern "C" {
pub fn JS_EvalThis(
ctx: *mut JSContext,
this_obj: JSValue,
input: *const ::std::os::raw::c_char,
input_len: usize,
filename: *const ::std::os::raw::c_char,
eval_flags: ::std::os::raw::c_int,
) -> JSValue;
}
extern "C" {
pub fn JS_GetGlobalObject(ctx: *mut JSContext) -> JSValue;
}
extern "C" {
pub fn JS_IsInstanceOf(
ctx: *mut JSContext,
val: JSValue,
obj: JSValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_DefineProperty(
ctx: *mut JSContext,
this_obj: JSValue,
prop: JSAtom,
val: JSValue,
getter: JSValue,
setter: JSValue,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_DefinePropertyValue(
ctx: *mut JSContext,
this_obj: JSValue,
prop: JSAtom,
val: JSValue,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_DefinePropertyValueUint32(
ctx: *mut JSContext,
this_obj: JSValue,
idx: u32,
val: JSValue,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_DefinePropertyValueStr(
ctx: *mut JSContext,
this_obj: JSValue,
prop: *const ::std::os::raw::c_char,
val: JSValue,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_DefinePropertyGetSet(
ctx: *mut JSContext,
this_obj: JSValue,
prop: JSAtom,
getter: JSValue,
setter: JSValue,
flags: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_SetOpaque(obj: JSValue, opaque: *mut ::std::os::raw::c_void);
}
extern "C" {
pub fn JS_GetOpaque(obj: JSValue, class_id: JSClassID) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn JS_GetOpaque2(
ctx: *mut JSContext,
obj: JSValue,
class_id: JSClassID,
) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn JS_GetAnyOpaque(obj: JSValue, class_id: *mut JSClassID) -> *mut ::std::os::raw::c_void;
}
extern "C" {
pub fn JS_ParseJSON(
ctx: *mut JSContext,
buf: *const ::std::os::raw::c_char,
buf_len: usize,
filename: *const ::std::os::raw::c_char,
) -> JSValue;
}
extern "C" {
pub fn JS_JSONStringify(
ctx: *mut JSContext,
obj: JSValue,
replacer: JSValue,
space0: JSValue,
) -> JSValue;
}
pub type JSFreeArrayBufferDataFunc = ::std::option::Option<
unsafe extern "C" fn(
rt: *mut JSRuntime,
opaque: *mut ::std::os::raw::c_void,
ptr: *mut ::std::os::raw::c_void,
),
>;
extern "C" {
pub fn JS_NewArrayBuffer(
ctx: *mut JSContext,
buf: *mut u8,
len: usize,
free_func: JSFreeArrayBufferDataFunc,
opaque: *mut ::std::os::raw::c_void,
is_shared: ::std::os::raw::c_int,
) -> JSValue;
}
extern "C" {
pub fn JS_NewArrayBufferCopy(ctx: *mut JSContext, buf: *const u8, len: usize) -> JSValue;
}
extern "C" {
pub fn JS_DetachArrayBuffer(ctx: *mut JSContext, obj: JSValue);
}
extern "C" {
pub fn JS_GetArrayBuffer(ctx: *mut JSContext, psize: *mut usize, obj: JSValue) -> *mut u8;
}
extern "C" {
pub fn JS_GetUint8Array(ctx: *mut JSContext, psize: *mut usize, obj: JSValue) -> *mut u8;
}
extern "C" {
pub fn JS_GetTypedArrayBuffer(
ctx: *mut JSContext,
obj: JSValue,
pbyte_offset: *mut usize,
pbyte_length: *mut usize,
pbytes_per_element: *mut usize,
) -> JSValue;
}
extern "C" {
pub fn JS_NewUint8Array(
ctx: *mut JSContext,
buf: *mut u8,
len: usize,
free_func: JSFreeArrayBufferDataFunc,
opaque: *mut ::std::os::raw::c_void,
is_shared: ::std::os::raw::c_int,
) -> JSValue;
}
extern "C" {
pub fn JS_NewUint8ArrayCopy(ctx: *mut JSContext, buf: *const u8, len: usize) -> JSValue;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSSharedArrayBufferFunctions {
pub sab_alloc: ::std::option::Option<
unsafe extern "C" fn(
opaque: *mut ::std::os::raw::c_void,
size: usize,
) -> *mut ::std::os::raw::c_void,
>,
pub sab_free: ::std::option::Option<
unsafe extern "C" fn(opaque: *mut ::std::os::raw::c_void, ptr: *mut ::std::os::raw::c_void),
>,
pub sab_dup: ::std::option::Option<
unsafe extern "C" fn(opaque: *mut ::std::os::raw::c_void, ptr: *mut ::std::os::raw::c_void),
>,
pub sab_opaque: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_JSSharedArrayBufferFunctions() {
const UNINIT: ::std::mem::MaybeUninit<JSSharedArrayBufferFunctions> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSSharedArrayBufferFunctions>(),
32usize,
concat!("Size of: ", stringify!(JSSharedArrayBufferFunctions))
);
assert_eq!(
::std::mem::align_of::<JSSharedArrayBufferFunctions>(),
8usize,
concat!("Alignment of ", stringify!(JSSharedArrayBufferFunctions))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sab_alloc) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSSharedArrayBufferFunctions),
"::",
stringify!(sab_alloc)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sab_free) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSSharedArrayBufferFunctions),
"::",
stringify!(sab_free)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sab_dup) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(JSSharedArrayBufferFunctions),
"::",
stringify!(sab_dup)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).sab_opaque) as usize - ptr as usize },
24usize,
concat!(
"Offset of field: ",
stringify!(JSSharedArrayBufferFunctions),
"::",
stringify!(sab_opaque)
)
);
}
extern "C" {
pub fn JS_SetSharedArrayBufferFunctions(
rt: *mut JSRuntime,
sf: *const JSSharedArrayBufferFunctions,
);
}
extern "C" {
pub fn JS_NewPromiseCapability(ctx: *mut JSContext, resolving_funcs: *mut JSValue) -> JSValue;
}
pub type JSHostPromiseRejectionTracker = ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
promise: JSValue,
reason: JSValue,
is_handled: ::std::os::raw::c_int,
opaque: *mut ::std::os::raw::c_void,
),
>;
extern "C" {
pub fn JS_SetHostPromiseRejectionTracker(
rt: *mut JSRuntime,
cb: JSHostPromiseRejectionTracker,
opaque: *mut ::std::os::raw::c_void,
);
}
pub type JSInterruptHandler = ::std::option::Option<
unsafe extern "C" fn(
rt: *mut JSRuntime,
opaque: *mut ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn JS_SetInterruptHandler(
rt: *mut JSRuntime,
cb: JSInterruptHandler,
opaque: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn JS_SetCanBlock(rt: *mut JSRuntime, can_block: ::std::os::raw::c_int);
}
extern "C" {
pub fn JS_SetIsHTMLDDA(ctx: *mut JSContext, obj: JSValue);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSModuleDef {
_unused: [u8; 0],
}
pub type JSModuleNormalizeFunc = ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
module_base_name: *const ::std::os::raw::c_char,
module_name: *const ::std::os::raw::c_char,
opaque: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_char,
>;
pub type JSModuleLoaderFunc = ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
module_name: *const ::std::os::raw::c_char,
opaque: *mut ::std::os::raw::c_void,
) -> *mut JSModuleDef,
>;
extern "C" {
pub fn JS_SetModuleLoaderFunc(
rt: *mut JSRuntime,
module_normalize: JSModuleNormalizeFunc,
module_loader: JSModuleLoaderFunc,
opaque: *mut ::std::os::raw::c_void,
);
}
extern "C" {
pub fn JS_GetImportMeta(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSValue;
}
extern "C" {
pub fn JS_GetModuleName(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSAtom;
}
extern "C" {
pub fn JS_GetModuleNamespace(ctx: *mut JSContext, m: *mut JSModuleDef) -> JSValue;
}
pub type JSJobFunc = ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
) -> JSValue,
>;
extern "C" {
pub fn JS_EnqueueJob(
ctx: *mut JSContext,
job_func: JSJobFunc,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_IsJobPending(rt: *mut JSRuntime) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_ExecutePendingJob(
rt: *mut JSRuntime,
pctx: *mut *mut JSContext,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_WriteObject(
ctx: *mut JSContext,
psize: *mut usize,
obj: JSValue,
flags: ::std::os::raw::c_int,
) -> *mut u8;
}
extern "C" {
pub fn JS_WriteObject2(
ctx: *mut JSContext,
psize: *mut usize,
obj: JSValue,
flags: ::std::os::raw::c_int,
psab_tab: *mut *mut *mut u8,
psab_tab_len: *mut usize,
) -> *mut u8;
}
extern "C" {
pub fn JS_ReadObject(
ctx: *mut JSContext,
buf: *const u8,
buf_len: usize,
flags: ::std::os::raw::c_int,
) -> JSValue;
}
extern "C" {
pub fn JS_EvalFunction(ctx: *mut JSContext, fun_obj: JSValue) -> JSValue;
}
extern "C" {
pub fn JS_ResolveModule(ctx: *mut JSContext, obj: JSValue) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_GetScriptOrModuleName(
ctx: *mut JSContext,
n_stack_levels: ::std::os::raw::c_int,
) -> JSAtom;
}
extern "C" {
pub fn JS_RunModule(
ctx: *mut JSContext,
basename: *const ::std::os::raw::c_char,
filename: *const ::std::os::raw::c_char,
) -> *mut JSModuleDef;
}
pub const JSCFunctionEnum_JS_CFUNC_generic: JSCFunctionEnum = 0;
pub const JSCFunctionEnum_JS_CFUNC_generic_magic: JSCFunctionEnum = 1;
pub const JSCFunctionEnum_JS_CFUNC_constructor: JSCFunctionEnum = 2;
pub const JSCFunctionEnum_JS_CFUNC_constructor_magic: JSCFunctionEnum = 3;
pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func: JSCFunctionEnum = 4;
pub const JSCFunctionEnum_JS_CFUNC_constructor_or_func_magic: JSCFunctionEnum = 5;
pub const JSCFunctionEnum_JS_CFUNC_f_f: JSCFunctionEnum = 6;
pub const JSCFunctionEnum_JS_CFUNC_f_f_f: JSCFunctionEnum = 7;
pub const JSCFunctionEnum_JS_CFUNC_getter: JSCFunctionEnum = 8;
pub const JSCFunctionEnum_JS_CFUNC_setter: JSCFunctionEnum = 9;
pub const JSCFunctionEnum_JS_CFUNC_getter_magic: JSCFunctionEnum = 10;
pub const JSCFunctionEnum_JS_CFUNC_setter_magic: JSCFunctionEnum = 11;
pub const JSCFunctionEnum_JS_CFUNC_iterator_next: JSCFunctionEnum = 12;
pub type JSCFunctionEnum = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub union JSCFunctionType {
pub generic: JSCFunction,
pub generic_magic: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
this_val: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
magic: ::std::os::raw::c_int,
) -> JSValue,
>,
pub constructor: JSCFunction,
pub constructor_magic: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
new_target: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
magic: ::std::os::raw::c_int,
) -> JSValue,
>,
pub constructor_or_func: JSCFunction,
pub f_f: ::std::option::Option<unsafe extern "C" fn(arg1: f64) -> f64>,
pub f_f_f: ::std::option::Option<unsafe extern "C" fn(arg1: f64, arg2: f64) -> f64>,
pub getter: ::std::option::Option<
unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue) -> JSValue,
>,
pub setter: ::std::option::Option<
unsafe extern "C" fn(ctx: *mut JSContext, this_val: JSValue, val: JSValue) -> JSValue,
>,
pub getter_magic: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
this_val: JSValue,
magic: ::std::os::raw::c_int,
) -> JSValue,
>,
pub setter_magic: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
this_val: JSValue,
val: JSValue,
magic: ::std::os::raw::c_int,
) -> JSValue,
>,
pub iterator_next: ::std::option::Option<
unsafe extern "C" fn(
ctx: *mut JSContext,
this_val: JSValue,
argc: ::std::os::raw::c_int,
argv: *mut JSValue,
pdone: *mut ::std::os::raw::c_int,
magic: ::std::os::raw::c_int,
) -> JSValue,
>,
}
#[test]
fn bindgen_test_layout_JSCFunctionType() {
const UNINIT: ::std::mem::MaybeUninit<JSCFunctionType> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSCFunctionType>(),
8usize,
concat!("Size of: ", stringify!(JSCFunctionType))
);
assert_eq!(
::std::mem::align_of::<JSCFunctionType>(),
8usize,
concat!("Alignment of ", stringify!(JSCFunctionType))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).generic) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(generic)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).generic_magic) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(generic_magic)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).constructor) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(constructor)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).constructor_magic) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(constructor_magic)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).constructor_or_func) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(constructor_or_func)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).f_f) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(f_f)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).f_f_f) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(f_f_f)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).getter) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(getter)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).setter) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(setter)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).getter_magic) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(getter_magic)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).setter_magic) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(setter_magic)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).iterator_next) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionType),
"::",
stringify!(iterator_next)
)
);
}
extern "C" {
pub fn JS_NewCFunction2(
ctx: *mut JSContext,
func: JSCFunction,
name: *const ::std::os::raw::c_char,
length: ::std::os::raw::c_int,
cproto: JSCFunctionEnum,
magic: ::std::os::raw::c_int,
) -> JSValue;
}
extern "C" {
pub fn JS_NewCFunctionData(
ctx: *mut JSContext,
func: JSCFunctionData,
length: ::std::os::raw::c_int,
magic: ::std::os::raw::c_int,
data_len: ::std::os::raw::c_int,
data: *mut JSValue,
) -> JSValue;
}
extern "C" {
pub fn JS_SetConstructor(ctx: *mut JSContext, func_obj: JSValue, proto: JSValue);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct JSCFunctionListEntry {
pub name: *const ::std::os::raw::c_char,
pub prop_flags: u8,
pub def_type: u8,
pub magic: i16,
pub u: JSCFunctionListEntry__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union JSCFunctionListEntry__bindgen_ty_1 {
pub func: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1,
pub getset: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2,
pub alias: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3,
pub prop_list: JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4,
pub str_: *const ::std::os::raw::c_char,
pub i32_: i32,
pub i64_: i64,
pub f64_: f64,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1 {
pub length: u8,
pub cproto: u8,
pub cfunc: JSCFunctionType,
}
#[test]
fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1>(),
16usize,
concat!(
"Size of: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
::std::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).length) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(length)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cproto) as usize - ptr as usize },
1usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(cproto)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).cfunc) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_1),
"::",
stringify!(cfunc)
)
);
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2 {
pub get: JSCFunctionType,
pub set: JSCFunctionType,
}
#[test]
fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2() {
const UNINIT: ::std::mem::MaybeUninit<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2>(),
16usize,
concat!(
"Size of: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2)
)
);
assert_eq!(
::std::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2>(),
8usize,
concat!(
"Alignment of ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).get) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(get)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).set) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_2),
"::",
stringify!(set)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3 {
pub name: *const ::std::os::raw::c_char,
pub base: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3() {
const UNINIT: ::std::mem::MaybeUninit<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3>(),
16usize,
concat!(
"Size of: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3)
)
);
assert_eq!(
::std::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3>(),
8usize,
concat!(
"Alignment of ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).base) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_3),
"::",
stringify!(base)
)
);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4 {
pub tab: *const JSCFunctionListEntry,
pub len: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4() {
const UNINIT: ::std::mem::MaybeUninit<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4>(),
16usize,
concat!(
"Size of: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4)
)
);
assert_eq!(
::std::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4>(),
8usize,
concat!(
"Alignment of ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).tab) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(tab)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).len) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1__bindgen_ty_4),
"::",
stringify!(len)
)
);
}
#[test]
fn bindgen_test_layout_JSCFunctionListEntry__bindgen_ty_1() {
const UNINIT: ::std::mem::MaybeUninit<JSCFunctionListEntry__bindgen_ty_1> =
::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSCFunctionListEntry__bindgen_ty_1>(),
16usize,
concat!("Size of: ", stringify!(JSCFunctionListEntry__bindgen_ty_1))
);
assert_eq!(
::std::mem::align_of::<JSCFunctionListEntry__bindgen_ty_1>(),
8usize,
concat!(
"Alignment of ",
stringify!(JSCFunctionListEntry__bindgen_ty_1)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).func) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1),
"::",
stringify!(func)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).getset) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1),
"::",
stringify!(getset)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).alias) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1),
"::",
stringify!(alias)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).prop_list) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1),
"::",
stringify!(prop_list)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).str_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1),
"::",
stringify!(str_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).i32_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1),
"::",
stringify!(i32_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).i64_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1),
"::",
stringify!(i64_)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).f64_) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry__bindgen_ty_1),
"::",
stringify!(f64_)
)
);
}
#[test]
fn bindgen_test_layout_JSCFunctionListEntry() {
const UNINIT: ::std::mem::MaybeUninit<JSCFunctionListEntry> = ::std::mem::MaybeUninit::uninit();
let ptr = UNINIT.as_ptr();
assert_eq!(
::std::mem::size_of::<JSCFunctionListEntry>(),
32usize,
concat!("Size of: ", stringify!(JSCFunctionListEntry))
);
assert_eq!(
::std::mem::align_of::<JSCFunctionListEntry>(),
8usize,
concat!("Alignment of ", stringify!(JSCFunctionListEntry))
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize },
0usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry),
"::",
stringify!(name)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).prop_flags) as usize - ptr as usize },
8usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry),
"::",
stringify!(prop_flags)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).def_type) as usize - ptr as usize },
9usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry),
"::",
stringify!(def_type)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).magic) as usize - ptr as usize },
10usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry),
"::",
stringify!(magic)
)
);
assert_eq!(
unsafe { ::std::ptr::addr_of!((*ptr).u) as usize - ptr as usize },
16usize,
concat!(
"Offset of field: ",
stringify!(JSCFunctionListEntry),
"::",
stringify!(u)
)
);
}
extern "C" {
pub fn JS_SetPropertyFunctionList(
ctx: *mut JSContext,
obj: JSValue,
tab: *const JSCFunctionListEntry,
len: ::std::os::raw::c_int,
);
}
pub type JSModuleInitFunc = ::std::option::Option<
unsafe extern "C" fn(ctx: *mut JSContext, m: *mut JSModuleDef) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn JS_NewCModule(
ctx: *mut JSContext,
name_str: *const ::std::os::raw::c_char,
func: JSModuleInitFunc,
) -> *mut JSModuleDef;
}
extern "C" {
pub fn JS_AddModuleExport(
ctx: *mut JSContext,
m: *mut JSModuleDef,
name_str: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_AddModuleExportList(
ctx: *mut JSContext,
m: *mut JSModuleDef,
tab: *const JSCFunctionListEntry,
len: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_SetModuleExport(
ctx: *mut JSContext,
m: *mut JSModuleDef,
export_name: *const ::std::os::raw::c_char,
val: JSValue,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn JS_SetModuleExportList(
ctx: *mut JSContext,
m: *mut JSModuleDef,
tab: *const JSCFunctionListEntry,
len: ::std::os::raw::c_int,
) -> ::std::os::raw::c_int;
}
pub const JSPromiseStateEnum_JS_PROMISE_PENDING: JSPromiseStateEnum = 0;
pub const JSPromiseStateEnum_JS_PROMISE_FULFILLED: JSPromiseStateEnum = 1;
pub const JSPromiseStateEnum_JS_PROMISE_REJECTED: JSPromiseStateEnum = 2;
pub type JSPromiseStateEnum = ::std::os::raw::c_uint;
extern "C" {
pub fn JS_PromiseState(ctx: *mut JSContext, promise: JSValue) -> JSPromiseStateEnum;
}
extern "C" {
pub fn JS_PromiseResult(ctx: *mut JSContext, promise: JSValue) -> JSValue;
}
extern "C" {
pub fn JS_GetVersion() -> *const ::std::os::raw::c_char;
}
pub type __builtin_va_list = *mut ::std::os::raw::c_char;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lconv {
pub _address: u8,
}