Skip to content

Include R_ext/Altrep.h #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
349 changes: 349 additions & 0 deletions bindings/bindings-linux-x86_64-R4.1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<R_altrep_class_t>(),
8usize,
concat!("Size of: ", stringify!(R_altrep_class_t))
);
assert_eq!(
::std::mem::align_of::<R_altrep_class_t>(),
8usize,
concat!("Alignment of ", stringify!(R_altrep_class_t))
);
assert_eq!(
unsafe { &(*(::std::ptr::null::<R_altrep_class_t>())).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<unsafe extern "C" fn(arg1: SEXP, arg2: SEXP) -> SEXP>;
pub type R_altrep_Serialized_state_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> SEXP>;
pub type R_altrep_DuplicateEX_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
pub type R_altrep_Duplicate_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
pub type R_altrep_Coerce_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: ::std::os::raw::c_int) -> 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<unsafe extern "C" fn(arg1: SEXP) -> 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<unsafe extern "C" fn(arg1: SEXP) -> *const ::std::os::raw::c_void>;
pub type R_altvec_Extract_subset_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: SEXP, arg3: SEXP) -> 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<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
pub type R_altinteger_No_NA_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
pub type R_altinteger_Sum_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
pub type R_altinteger_Min_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
pub type R_altinteger_Max_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
pub type R_altreal_Elt_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> 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<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
pub type R_altreal_No_NA_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
pub type R_altreal_Sum_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
pub type R_altreal_Min_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
pub type R_altreal_Max_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> 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<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
pub type R_altlogical_No_NA_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
pub type R_altlogical_Sum_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: Rboolean) -> SEXP>;
pub type R_altraw_Elt_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> 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<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> 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<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t) -> SEXP>;
pub type R_altstring_Set_elt_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t, arg3: SEXP)>;
pub type R_altstring_Is_sorted_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::std::os::raw::c_int>;
pub type R_altstring_No_NA_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP) -> ::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;
}
Expand Down
2 changes: 2 additions & 0 deletions wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ typedef ptrdiff_t R_xlen_t_rust;
#include <R_ext/Parse.h>
#include <R_ext/Error.h>

#include <R_ext/Rdynload.h>
#include <R_ext/Altrep.h>
#include <R_ext/GraphicsEngine.h>