Skip to content
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

ADDED SEXPTYPE in the altrep api #233

Merged
merged 10 commits into from
Apr 27, 2024
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
19 changes: 0 additions & 19 deletions bindings/bindings-linux-aarch64-R4.3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ pub struct _IO_FILE {
pub _unused2: [::std::os::raw::c_char; 20usize],
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum Rboolean {
#[doc = ", MAYBE"]
Expand Down Expand Up @@ -307,7 +306,6 @@ pub struct Rf_RegisteredNativeSymbol {
}
pub type R_RegisteredNativeSymbol = Rf_RegisteredNativeSymbol;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum NativeSymbolType {
R_ANY_SYM = 0,
Expand All @@ -320,7 +318,6 @@ pub type Rbyte = ::std::os::raw::c_uchar;
#[doc = "type for length of (standard, not long) vectors etc"]
pub type R_len_t = ::std::os::raw::c_int;
#[repr(u32)]
#[non_exhaustive]
#[doc = "------ enum_SEXPTYPE -----"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum SEXPTYPE {
Expand Down Expand Up @@ -389,7 +386,6 @@ pub struct R_allocator {
}
pub type R_allocator_t = R_allocator;
#[repr(u32)]
#[non_exhaustive]
#[doc = "../main/character.c :"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum nchar_type {
Expand All @@ -398,7 +394,6 @@ pub enum nchar_type {
Width = 2,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "cetype_t is an identifier reseved by POSIX, but it is\nwell established as public. Could remap by a #define though"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum cetype_t {
Expand All @@ -413,7 +408,6 @@ pub enum cetype_t {
pub type R_CFinalizer_t = ::std::option::Option<unsafe extern "C" fn(arg1: SEXP)>;
pub type R_pstream_data_t = *mut ::std::os::raw::c_void;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum R_pstream_format_t {
R_pstream_any_format = 0,
Expand Down Expand Up @@ -472,7 +466,6 @@ pub struct R_hashtab_type {
pub cell: SEXP,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "Startup Actions"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum SA_TYPE {
Expand Down Expand Up @@ -549,7 +542,6 @@ impl structRstart {
}
pub type Rstart = *mut structRstart;
#[repr(u32)]
#[non_exhaustive]
#[doc = "PARSE_NULL will not be returned by R_ParseVector"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ParseStatus {
Expand Down Expand Up @@ -581,8 +573,6 @@ 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,
Expand Down Expand Up @@ -689,7 +679,6 @@ pub type R_altlist_Elt_method_t =
pub type R_altlist_Set_elt_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t, arg3: SEXP)>;
#[repr(u32)]
#[non_exhaustive]
#[doc = "The graphics engine will only accept locations and dimensions\n in native device coordinates, but it provides the following functions\n for converting between a couple of simple alternative coordinate\n systems and device coordinates:\n DEVICE = native units of the device\n NDC = Normalised device coordinates\n INCHES = inches (!)\n CM = centimetres (!!)"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum GEUnit {
Expand All @@ -701,7 +690,6 @@ pub enum GEUnit {
GE_CM = 3,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum GEevent {
#[doc = "In response to this event, the registered graphics system\n should allocate and initialise the systemSpecific structure\n\n Should return R_NilValue on failure so that engine\n can tidy up memory allocation"]
Expand All @@ -724,7 +712,6 @@ pub enum GEevent {
GE_ScalePS = 8,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "Some line end/join constants"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum R_GE_lineend {
Expand All @@ -733,7 +720,6 @@ pub enum R_GE_lineend {
GE_SQUARE_CAP = 3,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum R_GE_linejoin {
GE_ROUND_JOIN = 1,
Expand Down Expand Up @@ -1035,7 +1021,6 @@ pub struct _DevDesc {
pub reserved: [::std::os::raw::c_char; 64usize],
}
#[repr(i32)]
#[non_exhaustive]
#[doc = "These give the indices of some known keys"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum R_KeyName {
Expand Down Expand Up @@ -1064,7 +1049,6 @@ pub enum R_KeyName {
knDEL = 21,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "These are the three possible mouse events"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum R_MouseEvent {
Expand Down Expand Up @@ -1151,7 +1135,6 @@ pub type d2fcn_p = ::std::option::Option<
),
>;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum RNGtype {
WICHMANN_HILL = 0,
Expand All @@ -1164,7 +1147,6 @@ pub enum RNGtype {
LECUYER_CMRG = 7,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "Different kinds of \"N(0,1)\" generators :"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum N01type {
Expand All @@ -1176,7 +1158,6 @@ pub enum N01type {
KINDERMAN_RAMAGE = 5,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "Different ways to generate discrete uniform samples"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum Sampletype {
Expand Down
19 changes: 0 additions & 19 deletions bindings/bindings-linux-aarch64-R4.4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,6 @@ pub struct _IO_FILE {
pub _unused2: [::std::os::raw::c_char; 20usize],
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum Rboolean {
#[doc = ", MAYBE"]
Expand Down Expand Up @@ -308,7 +307,6 @@ pub struct Rf_RegisteredNativeSymbol {
}
pub type R_RegisteredNativeSymbol = Rf_RegisteredNativeSymbol;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum NativeSymbolType {
R_ANY_SYM = 0,
Expand All @@ -321,7 +319,6 @@ pub type Rbyte = ::std::os::raw::c_uchar;
#[doc = "type for length of (standard, not long) vectors etc"]
pub type R_len_t = ::std::os::raw::c_int;
#[repr(u32)]
#[non_exhaustive]
#[doc = "------ enum_SEXPTYPE -----"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum SEXPTYPE {
Expand Down Expand Up @@ -390,7 +387,6 @@ pub struct R_allocator {
}
pub type R_allocator_t = R_allocator;
#[repr(u32)]
#[non_exhaustive]
#[doc = "../main/character.c :"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum nchar_type {
Expand All @@ -399,7 +395,6 @@ pub enum nchar_type {
Width = 2,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "cetype_t is an identifier reseved by POSIX, but it is\nwell established as public. Could remap by a #define though"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum cetype_t {
Expand All @@ -414,7 +409,6 @@ pub enum cetype_t {
pub type R_CFinalizer_t = ::std::option::Option<unsafe extern "C" fn(arg1: SEXP)>;
pub type R_pstream_data_t = *mut ::std::os::raw::c_void;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum R_pstream_format_t {
R_pstream_any_format = 0,
Expand Down Expand Up @@ -473,7 +467,6 @@ pub struct R_hashtab_type {
pub cell: SEXP,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "Startup Actions"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum SA_TYPE {
Expand Down Expand Up @@ -550,7 +543,6 @@ impl structRstart {
}
pub type Rstart = *mut structRstart;
#[repr(u32)]
#[non_exhaustive]
#[doc = "PARSE_NULL will not be returned by R_ParseVector"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum ParseStatus {
Expand Down Expand Up @@ -582,8 +574,6 @@ 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,
Expand Down Expand Up @@ -690,7 +680,6 @@ pub type R_altlist_Elt_method_t =
pub type R_altlist_Set_elt_method_t =
::std::option::Option<unsafe extern "C" fn(arg1: SEXP, arg2: R_xlen_t, arg3: SEXP)>;
#[repr(u32)]
#[non_exhaustive]
#[doc = "The graphics engine will only accept locations and dimensions\n in native device coordinates, but it provides the following functions\n for converting between a couple of simple alternative coordinate\n systems and device coordinates:\n DEVICE = native units of the device\n NDC = Normalised device coordinates\n INCHES = inches (!)\n CM = centimetres (!!)"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum GEUnit {
Expand All @@ -702,7 +691,6 @@ pub enum GEUnit {
GE_CM = 3,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum GEevent {
#[doc = "In response to this event, the registered graphics system\n should allocate and initialise the systemSpecific structure\n\n Should return R_NilValue on failure so that engine\n can tidy up memory allocation"]
Expand All @@ -725,7 +713,6 @@ pub enum GEevent {
GE_ScalePS = 8,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "Some line end/join constants"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum R_GE_lineend {
Expand All @@ -734,7 +721,6 @@ pub enum R_GE_lineend {
GE_SQUARE_CAP = 3,
}
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum R_GE_linejoin {
GE_ROUND_JOIN = 1,
Expand Down Expand Up @@ -1036,7 +1022,6 @@ pub struct _DevDesc {
pub reserved: [::std::os::raw::c_char; 64usize],
}
#[repr(i32)]
#[non_exhaustive]
#[doc = "These give the indices of some known keys"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum R_KeyName {
Expand Down Expand Up @@ -1065,7 +1050,6 @@ pub enum R_KeyName {
knDEL = 21,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "These are the three possible mouse events"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum R_MouseEvent {
Expand Down Expand Up @@ -1152,7 +1136,6 @@ pub type d2fcn_p = ::std::option::Option<
),
>;
#[repr(u32)]
#[non_exhaustive]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum RNGtype {
WICHMANN_HILL = 0,
Expand All @@ -1165,7 +1148,6 @@ pub enum RNGtype {
LECUYER_CMRG = 7,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "Different kinds of \"N(0,1)\" generators :"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum N01type {
Expand All @@ -1177,7 +1159,6 @@ pub enum N01type {
KINDERMAN_RAMAGE = 5,
}
#[repr(u32)]
#[non_exhaustive]
#[doc = "Different ways to generate discrete uniform samples"]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub enum Sampletype {
Expand Down
Loading