diff --git a/bindings/bindings-linux-x86_64-R4.1.rs b/bindings/bindings-linux-x86_64-R4.1.rs index b84d5b42..3ccfce81 100644 --- a/bindings/bindings-linux-x86_64-R4.1.rs +++ b/bindings/bindings-linux-x86_64-R4.1.rs @@ -5993,6 +5993,355 @@ extern "C" { arg4: SEXP, ) -> SEXP; } +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct R_altrep_class_t { + pub ptr: SEXP, +} +#[test] +fn bindgen_test_layout_R_altrep_class_t() { + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(R_altrep_class_t)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(R_altrep_class_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).ptr as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(R_altrep_class_t), + "::", + stringify!(ptr) + ) + ); +} +extern "C" { + pub fn R_new_altrep(aclass: R_altrep_class_t, data1: SEXP, data2: SEXP) -> SEXP; +} +extern "C" { + pub fn R_make_altstring_class( + cname: *const ::std::os::raw::c_char, + pname: *const ::std::os::raw::c_char, + info: *mut DllInfo, + ) -> R_altrep_class_t; +} +extern "C" { + pub fn R_make_altinteger_class( + cname: *const ::std::os::raw::c_char, + pname: *const ::std::os::raw::c_char, + info: *mut DllInfo, + ) -> R_altrep_class_t; +} +extern "C" { + pub fn R_make_altreal_class( + cname: *const ::std::os::raw::c_char, + pname: *const ::std::os::raw::c_char, + info: *mut DllInfo, + ) -> R_altrep_class_t; +} +extern "C" { + pub fn R_make_altlogical_class( + cname: *const ::std::os::raw::c_char, + pname: *const ::std::os::raw::c_char, + info: *mut DllInfo, + ) -> R_altrep_class_t; +} +extern "C" { + pub fn R_make_altraw_class( + cname: *const ::std::os::raw::c_char, + pname: *const ::std::os::raw::c_char, + info: *mut DllInfo, + ) -> R_altrep_class_t; +} +extern "C" { + pub fn R_make_altcomplex_class( + cname: *const ::std::os::raw::c_char, + pname: *const ::std::os::raw::c_char, + info: *mut DllInfo, + ) -> R_altrep_class_t; +} +extern "C" { + pub fn R_altrep_inherits(x: SEXP, arg1: R_altrep_class_t) -> Rboolean; +} +pub type R_altrep_UnserializeEX_method_t = ::std::option::Option< + unsafe extern "C" fn( + arg1: SEXP, + arg2: SEXP, + arg3: SEXP, + arg4: ::std::os::raw::c_int, + arg5: ::std::os::raw::c_int, + ) -> SEXP, +>; +pub type R_altrep_Unserialize_method_t = + ::std::option::Option SEXP>; +pub type R_altrep_Serialized_state_method_t = + ::std::option::Option SEXP>; +pub type R_altrep_DuplicateEX_method_t = + ::std::option::Option SEXP>; +pub type R_altrep_Duplicate_method_t = + ::std::option::Option SEXP>; +pub type R_altrep_Coerce_method_t = + ::std::option::Option SEXP>; +pub type R_altrep_Inspect_method_t = ::std::option::Option< + unsafe extern "C" fn( + arg1: SEXP, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + arg4: ::std::os::raw::c_int, + arg5: ::std::option::Option< + unsafe extern "C" fn( + arg1: SEXP, + arg2: ::std::os::raw::c_int, + arg3: ::std::os::raw::c_int, + arg4: ::std::os::raw::c_int, + ), + >, + ) -> Rboolean, +>; +pub type R_altrep_Length_method_t = + ::std::option::Option R_xlen_t>; +pub type R_altvec_Dataptr_method_t = ::std::option::Option< + unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> *mut ::std::os::raw::c_void, +>; +pub type R_altvec_Dataptr_or_null_method_t = + ::std::option::Option *const ::std::os::raw::c_void>; +pub type R_altvec_Extract_subset_method_t = + ::std::option::Option SEXP>; +pub type R_altinteger_Elt_method_t = ::std::option::Option< + unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> ::std::os::raw::c_int, +>; +pub type R_altinteger_Get_region_method_t = ::std::option::Option< + unsafe extern "C" fn( + arg1: SEXP, + arg2: R_xlen_t, + arg3: R_xlen_t, + arg4: *mut ::std::os::raw::c_int, + ) -> R_xlen_t, +>; +pub type R_altinteger_Is_sorted_method_t = + ::std::option::Option ::std::os::raw::c_int>; +pub type R_altinteger_No_NA_method_t = + ::std::option::Option ::std::os::raw::c_int>; +pub type R_altinteger_Sum_method_t = + ::std::option::Option SEXP>; +pub type R_altinteger_Min_method_t = + ::std::option::Option SEXP>; +pub type R_altinteger_Max_method_t = + ::std::option::Option SEXP>; +pub type R_altreal_Elt_method_t = + ::std::option::Option f64>; +pub type R_altreal_Get_region_method_t = ::std::option::Option< + unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t, arg3: R_xlen_t, arg4: *mut f64) -> R_xlen_t, +>; +pub type R_altreal_Is_sorted_method_t = + ::std::option::Option ::std::os::raw::c_int>; +pub type R_altreal_No_NA_method_t = + ::std::option::Option ::std::os::raw::c_int>; +pub type R_altreal_Sum_method_t = + ::std::option::Option SEXP>; +pub type R_altreal_Min_method_t = + ::std::option::Option SEXP>; +pub type R_altreal_Max_method_t = + ::std::option::Option SEXP>; +pub type R_altlogical_Elt_method_t = ::std::option::Option< + unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> ::std::os::raw::c_int, +>; +pub type R_altlogical_Get_region_method_t = ::std::option::Option< + unsafe extern "C" fn( + arg1: SEXP, + arg2: R_xlen_t, + arg3: R_xlen_t, + arg4: *mut ::std::os::raw::c_int, + ) -> R_xlen_t, +>; +pub type R_altlogical_Is_sorted_method_t = + ::std::option::Option ::std::os::raw::c_int>; +pub type R_altlogical_No_NA_method_t = + ::std::option::Option ::std::os::raw::c_int>; +pub type R_altlogical_Sum_method_t = + ::std::option::Option SEXP>; +pub type R_altraw_Elt_method_t = + ::std::option::Option Rbyte>; +pub type R_altraw_Get_region_method_t = ::std::option::Option< + unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t, arg3: R_xlen_t, arg4: *mut Rbyte) -> R_xlen_t, +>; +pub type R_altcomplex_Elt_method_t = + ::std::option::Option Rcomplex>; +pub type R_altcomplex_Get_region_method_t = ::std::option::Option< + unsafe extern "C" fn( + arg1: SEXP, + arg2: R_xlen_t, + arg3: R_xlen_t, + arg4: *mut Rcomplex, + ) -> R_xlen_t, +>; +pub type R_altstring_Elt_method_t = + ::std::option::Option SEXP>; +pub type R_altstring_Set_elt_method_t = + ::std::option::Option; +pub type R_altstring_Is_sorted_method_t = + ::std::option::Option ::std::os::raw::c_int>; +pub type R_altstring_No_NA_method_t = + ::std::option::Option ::std::os::raw::c_int>; +extern "C" { + pub fn R_set_altrep_UnserializeEX_method( + cls: R_altrep_class_t, + fun: R_altrep_UnserializeEX_method_t, + ); +} +extern "C" { + pub fn R_set_altrep_Unserialize_method( + cls: R_altrep_class_t, + fun: R_altrep_Unserialize_method_t, + ); +} +extern "C" { + pub fn R_set_altrep_Serialized_state_method( + cls: R_altrep_class_t, + fun: R_altrep_Serialized_state_method_t, + ); +} +extern "C" { + pub fn R_set_altrep_DuplicateEX_method( + cls: R_altrep_class_t, + fun: R_altrep_DuplicateEX_method_t, + ); +} +extern "C" { + pub fn R_set_altrep_Duplicate_method(cls: R_altrep_class_t, fun: R_altrep_Duplicate_method_t); +} +extern "C" { + pub fn R_set_altrep_Coerce_method(cls: R_altrep_class_t, fun: R_altrep_Coerce_method_t); +} +extern "C" { + pub fn R_set_altrep_Inspect_method(cls: R_altrep_class_t, fun: R_altrep_Inspect_method_t); +} +extern "C" { + pub fn R_set_altrep_Length_method(cls: R_altrep_class_t, fun: R_altrep_Length_method_t); +} +extern "C" { + pub fn R_set_altvec_Dataptr_method(cls: R_altrep_class_t, fun: R_altvec_Dataptr_method_t); +} +extern "C" { + pub fn R_set_altvec_Dataptr_or_null_method( + cls: R_altrep_class_t, + fun: R_altvec_Dataptr_or_null_method_t, + ); +} +extern "C" { + pub fn R_set_altvec_Extract_subset_method( + cls: R_altrep_class_t, + fun: R_altvec_Extract_subset_method_t, + ); +} +extern "C" { + pub fn R_set_altinteger_Elt_method(cls: R_altrep_class_t, fun: R_altinteger_Elt_method_t); +} +extern "C" { + pub fn R_set_altinteger_Get_region_method( + cls: R_altrep_class_t, + fun: R_altinteger_Get_region_method_t, + ); +} +extern "C" { + pub fn R_set_altinteger_Is_sorted_method( + cls: R_altrep_class_t, + fun: R_altinteger_Is_sorted_method_t, + ); +} +extern "C" { + pub fn R_set_altinteger_No_NA_method(cls: R_altrep_class_t, fun: R_altinteger_No_NA_method_t); +} +extern "C" { + pub fn R_set_altinteger_Sum_method(cls: R_altrep_class_t, fun: R_altinteger_Sum_method_t); +} +extern "C" { + pub fn R_set_altinteger_Min_method(cls: R_altrep_class_t, fun: R_altinteger_Min_method_t); +} +extern "C" { + pub fn R_set_altinteger_Max_method(cls: R_altrep_class_t, fun: R_altinteger_Max_method_t); +} +extern "C" { + pub fn R_set_altreal_Elt_method(cls: R_altrep_class_t, fun: R_altreal_Elt_method_t); +} +extern "C" { + pub fn R_set_altreal_Get_region_method( + cls: R_altrep_class_t, + fun: R_altreal_Get_region_method_t, + ); +} +extern "C" { + pub fn R_set_altreal_Is_sorted_method(cls: R_altrep_class_t, fun: R_altreal_Is_sorted_method_t); +} +extern "C" { + pub fn R_set_altreal_No_NA_method(cls: R_altrep_class_t, fun: R_altreal_No_NA_method_t); +} +extern "C" { + pub fn R_set_altreal_Sum_method(cls: R_altrep_class_t, fun: R_altreal_Sum_method_t); +} +extern "C" { + pub fn R_set_altreal_Min_method(cls: R_altrep_class_t, fun: R_altreal_Min_method_t); +} +extern "C" { + pub fn R_set_altreal_Max_method(cls: R_altrep_class_t, fun: R_altreal_Max_method_t); +} +extern "C" { + pub fn R_set_altlogical_Elt_method(cls: R_altrep_class_t, fun: R_altlogical_Elt_method_t); +} +extern "C" { + pub fn R_set_altlogical_Get_region_method( + cls: R_altrep_class_t, + fun: R_altlogical_Get_region_method_t, + ); +} +extern "C" { + pub fn R_set_altlogical_Is_sorted_method( + cls: R_altrep_class_t, + fun: R_altlogical_Is_sorted_method_t, + ); +} +extern "C" { + pub fn R_set_altlogical_No_NA_method(cls: R_altrep_class_t, fun: R_altlogical_No_NA_method_t); +} +extern "C" { + pub fn R_set_altlogical_Sum_method(cls: R_altrep_class_t, fun: R_altlogical_Sum_method_t); +} +extern "C" { + pub fn R_set_altraw_Elt_method(cls: R_altrep_class_t, fun: R_altraw_Elt_method_t); +} +extern "C" { + pub fn R_set_altraw_Get_region_method(cls: R_altrep_class_t, fun: R_altraw_Get_region_method_t); +} +extern "C" { + pub fn R_set_altcomplex_Elt_method(cls: R_altrep_class_t, fun: R_altcomplex_Elt_method_t); +} +extern "C" { + pub fn R_set_altcomplex_Get_region_method( + cls: R_altrep_class_t, + fun: R_altcomplex_Get_region_method_t, + ); +} +extern "C" { + pub fn R_set_altstring_Elt_method(cls: R_altrep_class_t, fun: R_altstring_Elt_method_t); +} +extern "C" { + pub fn R_set_altstring_Set_elt_method(cls: R_altrep_class_t, fun: R_altstring_Set_elt_method_t); +} +extern "C" { + pub fn R_set_altstring_Is_sorted_method( + cls: R_altrep_class_t, + fun: R_altstring_Is_sorted_method_t, + ); +} +extern "C" { + pub fn R_set_altstring_No_NA_method(cls: R_altrep_class_t, fun: R_altstring_No_NA_method_t); +} extern "C" { pub fn R_GE_getVersion() -> ::std::os::raw::c_int; } diff --git a/wrapper.h b/wrapper.h index 42c96c67..e9d1ba7c 100644 --- a/wrapper.h +++ b/wrapper.h @@ -26,4 +26,6 @@ typedef ptrdiff_t R_xlen_t_rust; #include #include +#include +#include #include