From f8b5dabbc60c72ff288dd61471801caeda3153fe Mon Sep 17 00:00:00 2001 From: Mossa Date: Sat, 27 Apr 2024 09:38:06 +0200 Subject: [PATCH 01/10] added SEXPTYPE in the altrep api --- build.rs | 4 ++++ src/lib.rs | 3 +++ 2 files changed, 7 insertions(+) diff --git a/build.rs b/build.rs index 25992a0a..ed275c14 100644 --- a/build.rs +++ b/build.rs @@ -545,8 +545,12 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) { // Replace `TYPEOF` definition with one that gives same type as `SEXPTYPE`. let bindgen_builder = bindgen_builder.blocklist_item("TYPEOF"); + // Replace this with a function that handles enum-version of SEXPTYPE correctly let bindgen_builder = bindgen_builder.blocklist_item("Rf_isS4"); + // Replace second arg with SEXPTYPE, see lib.rs + let bindgen_builder = bindgen_builder.blocklist_type("R_altrep_Coerce_method_t"); + // Finish the builder and generate the bindings. let bindings = bindgen_builder .raw_line(format!( diff --git a/src/lib.rs b/src/lib.rs index bbd78034..f09effdf 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -76,6 +76,9 @@ extern "C" { pub fn TYPEOF(x: SEXP) -> SEXPTYPE; } +pub type R_altrep_Coerce_method_t = +::std::option::Option SEXP>; + pub unsafe fn Rf_isS4(arg1: SEXP) -> Rboolean { unsafe { if secret::Rf_isS4_original(arg1) == 0 { From 57c92bfd631c59d0a568b499b96cc48f1b1edca7 Mon Sep 17 00:00:00 2001 From: Mossa Date: Sat, 27 Apr 2024 09:39:22 +0200 Subject: [PATCH 02/10] [generate bindings] From b5c0ac9745ffbf2a50ac44d0264583ce497f8639 Mon Sep 17 00:00:00 2001 From: CGMossa Date: Sat, 27 Apr 2024 07:49:20 +0000 Subject: [PATCH 03/10] Update bindings [skip ci] --- bindings/bindings-linux-aarch64-R4.3.rs | 2 -- bindings/bindings-linux-aarch64-R4.4.rs | 2 -- bindings/bindings-linux-aarch64-R4.5-devel.rs | 4 +--- bindings/bindings-linux-x86_64-R4.3.rs | 2 -- bindings/bindings-linux-x86_64-R4.4.rs | 2 -- bindings/bindings-linux-x86_64-R4.5-devel.rs | 6 ++---- bindings/bindings-macos-aarch64-R4.3.rs | 2 -- bindings/bindings-macos-aarch64-R4.4.rs | 2 -- bindings/bindings-macos-aarch64-R4.5-devel.rs | 4 +--- bindings/bindings-macos-x86_64-R4.4.rs | 2 -- bindings/bindings-windows-x86_64-R4.3.rs | 2 -- bindings/bindings-windows-x86_64-R4.4.rs | 2 -- bindings/bindings-windows-x86_64-R4.5-devel.rs | 4 +--- 13 files changed, 5 insertions(+), 31 deletions(-) diff --git a/bindings/bindings-linux-aarch64-R4.3.rs b/bindings/bindings-linux-aarch64-R4.3.rs index 8047d8a8..0c8cc7bd 100644 --- a/bindings/bindings-linux-aarch64-R4.3.rs +++ b/bindings/bindings-linux-aarch64-R4.3.rs @@ -581,8 +581,6 @@ 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, diff --git a/bindings/bindings-linux-aarch64-R4.4.rs b/bindings/bindings-linux-aarch64-R4.4.rs index 8bbbc221..32d09ffe 100644 --- a/bindings/bindings-linux-aarch64-R4.4.rs +++ b/bindings/bindings-linux-aarch64-R4.4.rs @@ -582,8 +582,6 @@ 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, diff --git a/bindings/bindings-linux-aarch64-R4.5-devel.rs b/bindings/bindings-linux-aarch64-R4.5-devel.rs index f5dd8fb6..edc0323b 100644 --- a/bindings/bindings-linux-aarch64-R4.5-devel.rs +++ b/bindings/bindings-linux-aarch64-R4.5-devel.rs @@ -138,7 +138,7 @@ pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2024\0"; pub const R_MONTH: &[u8; 3] = b"04\0"; pub const R_DAY: &[u8; 3] = b"24\0"; -pub const R_SVN_REVISION: u32 = 86483; +pub const R_SVN_REVISION: u32 = 86484; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -582,8 +582,6 @@ 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, diff --git a/bindings/bindings-linux-x86_64-R4.3.rs b/bindings/bindings-linux-x86_64-R4.3.rs index 115e02b5..cecc7d70 100644 --- a/bindings/bindings-linux-x86_64-R4.3.rs +++ b/bindings/bindings-linux-x86_64-R4.3.rs @@ -581,8 +581,6 @@ 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, diff --git a/bindings/bindings-linux-x86_64-R4.4.rs b/bindings/bindings-linux-x86_64-R4.4.rs index f08d6d69..720b38b7 100644 --- a/bindings/bindings-linux-x86_64-R4.4.rs +++ b/bindings/bindings-linux-x86_64-R4.4.rs @@ -582,8 +582,6 @@ 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, diff --git a/bindings/bindings-linux-x86_64-R4.5-devel.rs b/bindings/bindings-linux-x86_64-R4.5-devel.rs index b5a5b6b2..cf53533e 100644 --- a/bindings/bindings-linux-x86_64-R4.5-devel.rs +++ b/bindings/bindings-linux-x86_64-R4.5-devel.rs @@ -137,8 +137,8 @@ pub const R_MINOR: &[u8; 4] = b"5.0\0"; pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2024\0"; pub const R_MONTH: &[u8; 3] = b"04\0"; -pub const R_DAY: &[u8; 3] = b"23\0"; -pub const R_SVN_REVISION: u32 = 86473; +pub const R_DAY: &[u8; 3] = b"24\0"; +pub const R_SVN_REVISION: u32 = 86484; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -582,8 +582,6 @@ 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, diff --git a/bindings/bindings-macos-aarch64-R4.3.rs b/bindings/bindings-macos-aarch64-R4.3.rs index 530ec541..d53c61ad 100644 --- a/bindings/bindings-macos-aarch64-R4.3.rs +++ b/bindings/bindings-macos-aarch64-R4.3.rs @@ -591,8 +591,6 @@ 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, diff --git a/bindings/bindings-macos-aarch64-R4.4.rs b/bindings/bindings-macos-aarch64-R4.4.rs index 9185ffbf..94ffcc89 100644 --- a/bindings/bindings-macos-aarch64-R4.4.rs +++ b/bindings/bindings-macos-aarch64-R4.4.rs @@ -592,8 +592,6 @@ 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, diff --git a/bindings/bindings-macos-aarch64-R4.5-devel.rs b/bindings/bindings-macos-aarch64-R4.5-devel.rs index 2382c4b6..cf821917 100644 --- a/bindings/bindings-macos-aarch64-R4.5-devel.rs +++ b/bindings/bindings-macos-aarch64-R4.5-devel.rs @@ -140,7 +140,7 @@ pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2024\0"; pub const R_MONTH: &[u8; 3] = b"04\0"; pub const R_DAY: &[u8; 3] = b"24\0"; -pub const R_SVN_REVISION: u32 = 86482; +pub const R_SVN_REVISION: u32 = 86484; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -592,8 +592,6 @@ 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, diff --git a/bindings/bindings-macos-x86_64-R4.4.rs b/bindings/bindings-macos-x86_64-R4.4.rs index 586d26dd..84e2940f 100644 --- a/bindings/bindings-macos-x86_64-R4.4.rs +++ b/bindings/bindings-macos-x86_64-R4.4.rs @@ -592,8 +592,6 @@ 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, diff --git a/bindings/bindings-windows-x86_64-R4.3.rs b/bindings/bindings-windows-x86_64-R4.3.rs index 252e58af..2e973bae 100644 --- a/bindings/bindings-windows-x86_64-R4.3.rs +++ b/bindings/bindings-windows-x86_64-R4.3.rs @@ -378,8 +378,6 @@ 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, diff --git a/bindings/bindings-windows-x86_64-R4.4.rs b/bindings/bindings-windows-x86_64-R4.4.rs index ba9b66a6..8c8590fe 100644 --- a/bindings/bindings-windows-x86_64-R4.4.rs +++ b/bindings/bindings-windows-x86_64-R4.4.rs @@ -379,8 +379,6 @@ 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, diff --git a/bindings/bindings-windows-x86_64-R4.5-devel.rs b/bindings/bindings-windows-x86_64-R4.5-devel.rs index 62001ceb..f4b4655b 100644 --- a/bindings/bindings-windows-x86_64-R4.5-devel.rs +++ b/bindings/bindings-windows-x86_64-R4.5-devel.rs @@ -57,7 +57,7 @@ pub const R_STATUS: &[u8; 29] = b"Under development (unstable)\0"; pub const R_YEAR: &[u8; 5] = b"2024\0"; pub const R_MONTH: &[u8; 3] = b"04\0"; pub const R_DAY: &[u8; 3] = b"24\0"; -pub const R_SVN_REVISION: u32 = 86483; +pub const R_SVN_REVISION: u32 = 86484; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -379,8 +379,6 @@ 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, From 63501191f1ff7a8639ad496309472638ba076b77 Mon Sep 17 00:00:00 2001 From: Mossa Date: Sat, 27 Apr 2024 10:43:07 +0200 Subject: [PATCH 04/10] silence warning --- build.rs | 6 ++++- src/lib.rs | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 75 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index ed275c14..5b517e80 100644 --- a/build.rs +++ b/build.rs @@ -484,6 +484,10 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) { non_exhaustive: true, }); + bindgen_builder = bindgen_builder + .blocklist_type("Rboolean") + .blocklist_type("SEXPTYPE"); + if cfg!(feature = "layout_tests") { bindgen_builder = bindgen_builder.layout_tests(true); } else { @@ -549,7 +553,7 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) { let bindgen_builder = bindgen_builder.blocklist_item("Rf_isS4"); // Replace second arg with SEXPTYPE, see lib.rs - let bindgen_builder = bindgen_builder.blocklist_type("R_altrep_Coerce_method_t"); + let bindgen_builder = bindgen_builder.blocklist_type("R_altrep_Coerce_method_t"); // Finish the builder and generate the bindings. let bindings = bindgen_builder diff --git a/src/lib.rs b/src/lib.rs index f09effdf..2878738c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,13 +71,82 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs")); #[derive(Debug)] pub struct SEXPREC(std::ffi::c_void); +#[repr(C)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + FALSE = 0, + TRUE = 1, +} + +#[repr(C)] +#[non_exhaustive] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + S4SXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} + extern "C" { // Return type should match `SEXPTYPE` pub fn TYPEOF(x: SEXP) -> SEXPTYPE; } +#[allow(non_camel_case_types)] pub type R_altrep_Coerce_method_t = -::std::option::Option SEXP>; + ::std::option::Option SEXP>; pub unsafe fn Rf_isS4(arg1: SEXP) -> Rboolean { unsafe { From 7cb277ef8b92b4706f68070eed42cdfd13d0726a Mon Sep 17 00:00:00 2001 From: Mossa Date: Sat, 27 Apr 2024 10:43:27 +0200 Subject: [PATCH 05/10] [generate bindings] From 6d196d87ca7f9144b7131dd465e21d0b03174835 Mon Sep 17 00:00:00 2001 From: CGMossa Date: Sat, 27 Apr 2024 08:52:38 +0000 Subject: [PATCH 06/10] Update bindings [skip ci] --- bindings/bindings-linux-aarch64-R4.3.rs | 72 ------------------- bindings/bindings-linux-aarch64-R4.4.rs | 72 ------------------- bindings/bindings-linux-aarch64-R4.5-devel.rs | 72 ------------------- bindings/bindings-linux-x86_64-R4.3.rs | 72 ------------------- bindings/bindings-linux-x86_64-R4.4.rs | 72 ------------------- bindings/bindings-linux-x86_64-R4.5-devel.rs | 72 ------------------- bindings/bindings-macos-aarch64-R4.3.rs | 72 ------------------- bindings/bindings-macos-aarch64-R4.4.rs | 72 ------------------- bindings/bindings-macos-aarch64-R4.5-devel.rs | 72 ------------------- bindings/bindings-macos-x86_64-R4.4.rs | 72 ------------------- bindings/bindings-windows-x86_64-R4.3.rs | 71 ------------------ bindings/bindings-windows-x86_64-R4.4.rs | 71 ------------------ .../bindings-windows-x86_64-R4.5-devel.rs | 71 ------------------ 13 files changed, 933 deletions(-) diff --git a/bindings/bindings-linux-aarch64-R4.3.rs b/bindings/bindings-linux-aarch64-R4.3.rs index 0c8cc7bd..3cbc0795 100644 --- a/bindings/bindings-linux-aarch64-R4.3.rs +++ b/bindings/bindings-linux-aarch64-R4.3.rs @@ -263,15 +263,6 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -319,66 +310,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - S4SXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -487,7 +418,6 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -776,7 +706,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1083,7 +1012,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-linux-aarch64-R4.4.rs b/bindings/bindings-linux-aarch64-R4.4.rs index 32d09ffe..0c8aac4f 100644 --- a/bindings/bindings-linux-aarch64-R4.4.rs +++ b/bindings/bindings-linux-aarch64-R4.4.rs @@ -264,15 +264,6 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -320,66 +311,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - OBJSXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -488,7 +419,6 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -777,7 +707,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1084,7 +1013,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-linux-aarch64-R4.5-devel.rs b/bindings/bindings-linux-aarch64-R4.5-devel.rs index edc0323b..f22b210c 100644 --- a/bindings/bindings-linux-aarch64-R4.5-devel.rs +++ b/bindings/bindings-linux-aarch64-R4.5-devel.rs @@ -264,15 +264,6 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -320,66 +311,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - OBJSXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -488,7 +419,6 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -777,7 +707,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1084,7 +1013,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-linux-x86_64-R4.3.rs b/bindings/bindings-linux-x86_64-R4.3.rs index cecc7d70..34834e4d 100644 --- a/bindings/bindings-linux-x86_64-R4.3.rs +++ b/bindings/bindings-linux-x86_64-R4.3.rs @@ -263,15 +263,6 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -319,66 +310,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - S4SXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -487,7 +418,6 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -776,7 +706,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1083,7 +1012,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-linux-x86_64-R4.4.rs b/bindings/bindings-linux-x86_64-R4.4.rs index 720b38b7..5309aa96 100644 --- a/bindings/bindings-linux-x86_64-R4.4.rs +++ b/bindings/bindings-linux-x86_64-R4.4.rs @@ -264,15 +264,6 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -320,66 +311,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - OBJSXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -488,7 +419,6 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -777,7 +707,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1084,7 +1013,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-linux-x86_64-R4.5-devel.rs b/bindings/bindings-linux-x86_64-R4.5-devel.rs index cf53533e..5a9108fc 100644 --- a/bindings/bindings-linux-x86_64-R4.5-devel.rs +++ b/bindings/bindings-linux-x86_64-R4.5-devel.rs @@ -264,15 +264,6 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -320,66 +311,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - OBJSXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -488,7 +419,6 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -777,7 +707,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1084,7 +1013,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-macos-aarch64-R4.3.rs b/bindings/bindings-macos-aarch64-R4.3.rs index d53c61ad..698d674f 100644 --- a/bindings/bindings-macos-aarch64-R4.3.rs +++ b/bindings/bindings-macos-aarch64-R4.3.rs @@ -273,15 +273,6 @@ pub struct __sFILE { pub _offset: fpos_t, } pub type FILE = __sFILE; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -329,66 +320,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - S4SXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -497,7 +428,6 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -786,7 +716,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1093,7 +1022,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-macos-aarch64-R4.4.rs b/bindings/bindings-macos-aarch64-R4.4.rs index 94ffcc89..11c77c34 100644 --- a/bindings/bindings-macos-aarch64-R4.4.rs +++ b/bindings/bindings-macos-aarch64-R4.4.rs @@ -274,15 +274,6 @@ pub struct __sFILE { pub _offset: fpos_t, } pub type FILE = __sFILE; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -330,66 +321,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - OBJSXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -498,7 +429,6 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -787,7 +717,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1094,7 +1023,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-macos-aarch64-R4.5-devel.rs b/bindings/bindings-macos-aarch64-R4.5-devel.rs index cf821917..7f8065ec 100644 --- a/bindings/bindings-macos-aarch64-R4.5-devel.rs +++ b/bindings/bindings-macos-aarch64-R4.5-devel.rs @@ -274,15 +274,6 @@ pub struct __sFILE { pub _offset: fpos_t, } pub type FILE = __sFILE; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -330,66 +321,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - OBJSXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -498,7 +429,6 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -787,7 +717,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1094,7 +1023,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-macos-x86_64-R4.4.rs b/bindings/bindings-macos-x86_64-R4.4.rs index 84e2940f..e5b24965 100644 --- a/bindings/bindings-macos-x86_64-R4.4.rs +++ b/bindings/bindings-macos-x86_64-R4.4.rs @@ -274,15 +274,6 @@ pub struct __sFILE { pub _offset: fpos_t, } pub type FILE = __sFILE; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -330,66 +321,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - OBJSXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -498,7 +429,6 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -787,7 +717,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1094,7 +1023,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-windows-x86_64-R4.3.rs b/bindings/bindings-windows-x86_64-R4.3.rs index 2e973bae..696ebd0b 100644 --- a/bindings/bindings-windows-x86_64-R4.3.rs +++ b/bindings/bindings-windows-x86_64-R4.3.rs @@ -137,15 +137,6 @@ pub struct _iobuf { pub _Placeholder: *mut ::std::os::raw::c_void, } pub type FILE = _iobuf; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -193,66 +184,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - S4SXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -573,7 +504,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -880,7 +810,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-windows-x86_64-R4.4.rs b/bindings/bindings-windows-x86_64-R4.4.rs index 8c8590fe..aebcc2f5 100644 --- a/bindings/bindings-windows-x86_64-R4.4.rs +++ b/bindings/bindings-windows-x86_64-R4.4.rs @@ -138,15 +138,6 @@ pub struct _iobuf { pub _Placeholder: *mut ::std::os::raw::c_void, } pub type FILE = _iobuf; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -194,66 +185,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - OBJSXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -574,7 +505,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -881,7 +811,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-windows-x86_64-R4.5-devel.rs b/bindings/bindings-windows-x86_64-R4.5-devel.rs index f4b4655b..25fe54fa 100644 --- a/bindings/bindings-windows-x86_64-R4.5-devel.rs +++ b/bindings/bindings-windows-x86_64-R4.5-devel.rs @@ -138,15 +138,6 @@ pub struct _iobuf { pub _Placeholder: *mut ::std::os::raw::c_void, } pub type FILE = _iobuf; -#[repr(u32)] -#[non_exhaustive] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - #[doc = ", MAYBE"] - FALSE = 0, - #[doc = ", MAYBE"] - TRUE = 1, -} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -194,66 +185,6 @@ pub enum NativeSymbolType { 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 { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - OBJSXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -574,7 +505,6 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -881,7 +811,6 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] -#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, From 0dc15576e873f0bc3ba33f727855855a0efb72e1 Mon Sep 17 00:00:00 2001 From: Mossa Date: Sat, 27 Apr 2024 10:58:49 +0200 Subject: [PATCH 07/10] try without non_exhaustive [generate bindings] --- build.rs | 2 +- src/lib.rs | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/build.rs b/build.rs index 5b517e80..00220e59 100644 --- a/build.rs +++ b/build.rs @@ -481,7 +481,7 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) { // Collect C-enums into idiomatic Rust-style enums bindgen_builder = bindgen_builder.default_enum_style(bindgen::EnumVariation::Rust { - non_exhaustive: true, + non_exhaustive: false, }); bindgen_builder = bindgen_builder diff --git a/src/lib.rs b/src/lib.rs index 2878738c..ed66e00e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -72,7 +72,6 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs")); pub struct SEXPREC(std::ffi::c_void); #[repr(C)] -#[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum Rboolean { FALSE = 0, @@ -80,7 +79,6 @@ pub enum Rboolean { } #[repr(C)] -#[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum SEXPTYPE { #[doc = "nil = NULL"] From 3147102764cdf5dc4c667434721f2e6a1b6dae97 Mon Sep 17 00:00:00 2001 From: CGMossa Date: Sat, 27 Apr 2024 09:07:05 +0000 Subject: [PATCH 08/10] Update bindings [skip ci] --- bindings/bindings-linux-aarch64-R4.3.rs | 15 --------------- bindings/bindings-linux-aarch64-R4.4.rs | 15 --------------- bindings/bindings-linux-aarch64-R4.5-devel.rs | 15 --------------- bindings/bindings-linux-x86_64-R4.3.rs | 15 --------------- bindings/bindings-linux-x86_64-R4.4.rs | 15 --------------- bindings/bindings-linux-x86_64-R4.5-devel.rs | 15 --------------- bindings/bindings-macos-aarch64-R4.3.rs | 15 --------------- bindings/bindings-macos-aarch64-R4.4.rs | 15 --------------- bindings/bindings-macos-aarch64-R4.5-devel.rs | 15 --------------- bindings/bindings-macos-x86_64-R4.4.rs | 15 --------------- bindings/bindings-windows-x86_64-R4.3.rs | 14 -------------- bindings/bindings-windows-x86_64-R4.4.rs | 14 -------------- bindings/bindings-windows-x86_64-R4.5-devel.rs | 14 -------------- 13 files changed, 192 deletions(-) diff --git a/bindings/bindings-linux-aarch64-R4.3.rs b/bindings/bindings-linux-aarch64-R4.3.rs index 3cbc0795..5b2f221a 100644 --- a/bindings/bindings-linux-aarch64-R4.3.rs +++ b/bindings/bindings-linux-aarch64-R4.3.rs @@ -298,7 +298,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, @@ -320,7 +319,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 { @@ -329,7 +327,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 { @@ -344,7 +341,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -403,7 +399,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 { @@ -479,7 +474,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 { @@ -617,7 +611,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -629,7 +622,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"] @@ -652,7 +644,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 { @@ -661,7 +652,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, @@ -962,7 +952,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 { @@ -991,7 +980,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 { @@ -1077,7 +1065,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, @@ -1090,7 +1077,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 { @@ -1102,7 +1088,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 { diff --git a/bindings/bindings-linux-aarch64-R4.4.rs b/bindings/bindings-linux-aarch64-R4.4.rs index 0c8aac4f..7103f550 100644 --- a/bindings/bindings-linux-aarch64-R4.4.rs +++ b/bindings/bindings-linux-aarch64-R4.4.rs @@ -299,7 +299,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, @@ -321,7 +320,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 { @@ -330,7 +328,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 { @@ -345,7 +342,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -404,7 +400,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 { @@ -480,7 +475,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 { @@ -618,7 +612,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -630,7 +623,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"] @@ -653,7 +645,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 { @@ -662,7 +653,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, @@ -963,7 +953,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 { @@ -992,7 +981,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 { @@ -1078,7 +1066,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, @@ -1091,7 +1078,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 { @@ -1103,7 +1089,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 { diff --git a/bindings/bindings-linux-aarch64-R4.5-devel.rs b/bindings/bindings-linux-aarch64-R4.5-devel.rs index f22b210c..3bc03962 100644 --- a/bindings/bindings-linux-aarch64-R4.5-devel.rs +++ b/bindings/bindings-linux-aarch64-R4.5-devel.rs @@ -299,7 +299,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, @@ -321,7 +320,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 { @@ -330,7 +328,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 { @@ -345,7 +342,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -404,7 +400,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 { @@ -480,7 +475,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 { @@ -618,7 +612,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -630,7 +623,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"] @@ -653,7 +645,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 { @@ -662,7 +653,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, @@ -963,7 +953,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 { @@ -992,7 +981,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 { @@ -1078,7 +1066,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, @@ -1091,7 +1078,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 { @@ -1103,7 +1089,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 { diff --git a/bindings/bindings-linux-x86_64-R4.3.rs b/bindings/bindings-linux-x86_64-R4.3.rs index 34834e4d..1f64c42c 100644 --- a/bindings/bindings-linux-x86_64-R4.3.rs +++ b/bindings/bindings-linux-x86_64-R4.3.rs @@ -298,7 +298,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, @@ -320,7 +319,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 { @@ -329,7 +327,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 { @@ -344,7 +341,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -403,7 +399,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 { @@ -479,7 +474,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 { @@ -617,7 +611,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -629,7 +622,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"] @@ -652,7 +644,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 { @@ -661,7 +652,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, @@ -962,7 +952,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 { @@ -991,7 +980,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 { @@ -1077,7 +1065,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, @@ -1090,7 +1077,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 { @@ -1102,7 +1088,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 { diff --git a/bindings/bindings-linux-x86_64-R4.4.rs b/bindings/bindings-linux-x86_64-R4.4.rs index 5309aa96..f736d227 100644 --- a/bindings/bindings-linux-x86_64-R4.4.rs +++ b/bindings/bindings-linux-x86_64-R4.4.rs @@ -299,7 +299,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, @@ -321,7 +320,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 { @@ -330,7 +328,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 { @@ -345,7 +342,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -404,7 +400,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 { @@ -480,7 +475,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 { @@ -618,7 +612,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -630,7 +623,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"] @@ -653,7 +645,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 { @@ -662,7 +653,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, @@ -963,7 +953,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 { @@ -992,7 +981,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 { @@ -1078,7 +1066,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, @@ -1091,7 +1078,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 { @@ -1103,7 +1089,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 { diff --git a/bindings/bindings-linux-x86_64-R4.5-devel.rs b/bindings/bindings-linux-x86_64-R4.5-devel.rs index 5a9108fc..3d37221f 100644 --- a/bindings/bindings-linux-x86_64-R4.5-devel.rs +++ b/bindings/bindings-linux-x86_64-R4.5-devel.rs @@ -299,7 +299,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, @@ -321,7 +320,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 { @@ -330,7 +328,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 { @@ -345,7 +342,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -404,7 +400,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 { @@ -480,7 +475,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 { @@ -618,7 +612,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -630,7 +623,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"] @@ -653,7 +645,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 { @@ -662,7 +653,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, @@ -963,7 +953,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 { @@ -992,7 +981,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 { @@ -1078,7 +1066,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, @@ -1091,7 +1078,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 { @@ -1103,7 +1089,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 { diff --git a/bindings/bindings-macos-aarch64-R4.3.rs b/bindings/bindings-macos-aarch64-R4.3.rs index 698d674f..59f4b64b 100644 --- a/bindings/bindings-macos-aarch64-R4.3.rs +++ b/bindings/bindings-macos-aarch64-R4.3.rs @@ -308,7 +308,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, @@ -330,7 +329,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 { @@ -339,7 +337,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 { @@ -354,7 +351,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -413,7 +409,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 { @@ -489,7 +484,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 { @@ -627,7 +621,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -639,7 +632,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"] @@ -662,7 +654,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 { @@ -671,7 +662,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, @@ -972,7 +962,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 { @@ -1001,7 +990,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 { @@ -1087,7 +1075,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, @@ -1100,7 +1087,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 { @@ -1112,7 +1098,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 { diff --git a/bindings/bindings-macos-aarch64-R4.4.rs b/bindings/bindings-macos-aarch64-R4.4.rs index 11c77c34..7353adf7 100644 --- a/bindings/bindings-macos-aarch64-R4.4.rs +++ b/bindings/bindings-macos-aarch64-R4.4.rs @@ -309,7 +309,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, @@ -331,7 +330,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 { @@ -340,7 +338,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 { @@ -355,7 +352,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -414,7 +410,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 { @@ -490,7 +485,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 { @@ -628,7 +622,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -640,7 +633,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"] @@ -663,7 +655,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 { @@ -672,7 +663,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, @@ -973,7 +963,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 { @@ -1002,7 +991,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 { @@ -1088,7 +1076,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, @@ -1101,7 +1088,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 { @@ -1113,7 +1099,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 { diff --git a/bindings/bindings-macos-aarch64-R4.5-devel.rs b/bindings/bindings-macos-aarch64-R4.5-devel.rs index 7f8065ec..7fa3dc85 100644 --- a/bindings/bindings-macos-aarch64-R4.5-devel.rs +++ b/bindings/bindings-macos-aarch64-R4.5-devel.rs @@ -309,7 +309,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, @@ -331,7 +330,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 { @@ -340,7 +338,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 { @@ -355,7 +352,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -414,7 +410,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 { @@ -490,7 +485,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 { @@ -628,7 +622,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -640,7 +633,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"] @@ -663,7 +655,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 { @@ -672,7 +663,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, @@ -973,7 +963,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 { @@ -1002,7 +991,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 { @@ -1088,7 +1076,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, @@ -1101,7 +1088,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 { @@ -1113,7 +1099,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 { diff --git a/bindings/bindings-macos-x86_64-R4.4.rs b/bindings/bindings-macos-x86_64-R4.4.rs index e5b24965..7d86e2ec 100644 --- a/bindings/bindings-macos-x86_64-R4.4.rs +++ b/bindings/bindings-macos-x86_64-R4.4.rs @@ -309,7 +309,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, @@ -331,7 +330,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 { @@ -340,7 +338,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 { @@ -355,7 +352,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -414,7 +410,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 { @@ -490,7 +485,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 { @@ -628,7 +622,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -640,7 +633,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"] @@ -663,7 +655,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 { @@ -672,7 +663,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, @@ -973,7 +963,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 { @@ -1002,7 +991,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 { @@ -1088,7 +1076,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, @@ -1101,7 +1088,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 { @@ -1113,7 +1099,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 { diff --git a/bindings/bindings-windows-x86_64-R4.3.rs b/bindings/bindings-windows-x86_64-R4.3.rs index 696ebd0b..0c06210f 100644 --- a/bindings/bindings-windows-x86_64-R4.3.rs +++ b/bindings/bindings-windows-x86_64-R4.3.rs @@ -172,7 +172,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, @@ -194,7 +193,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 { @@ -203,7 +201,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 { @@ -218,7 +215,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -277,7 +273,6 @@ pub struct R_hashtab_type { pub cell: SEXP, } #[repr(u32)] -#[non_exhaustive] #[doc = "PARSE_NULL will not be returned by R_ParseVector"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum ParseStatus { @@ -415,7 +410,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -427,7 +421,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"] @@ -450,7 +443,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 { @@ -459,7 +451,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, @@ -760,7 +751,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 { @@ -789,7 +779,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 { @@ -875,7 +864,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, @@ -888,7 +876,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 { @@ -900,7 +887,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 { diff --git a/bindings/bindings-windows-x86_64-R4.4.rs b/bindings/bindings-windows-x86_64-R4.4.rs index aebcc2f5..844d72b8 100644 --- a/bindings/bindings-windows-x86_64-R4.4.rs +++ b/bindings/bindings-windows-x86_64-R4.4.rs @@ -173,7 +173,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, @@ -195,7 +194,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 { @@ -204,7 +202,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 { @@ -219,7 +216,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -278,7 +274,6 @@ pub struct R_hashtab_type { pub cell: SEXP, } #[repr(u32)] -#[non_exhaustive] #[doc = "PARSE_NULL will not be returned by R_ParseVector"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum ParseStatus { @@ -416,7 +411,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -428,7 +422,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"] @@ -451,7 +444,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 { @@ -460,7 +452,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, @@ -761,7 +752,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 { @@ -790,7 +780,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 { @@ -876,7 +865,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, @@ -889,7 +877,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 { @@ -901,7 +888,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 { diff --git a/bindings/bindings-windows-x86_64-R4.5-devel.rs b/bindings/bindings-windows-x86_64-R4.5-devel.rs index 25fe54fa..c0f48d93 100644 --- a/bindings/bindings-windows-x86_64-R4.5-devel.rs +++ b/bindings/bindings-windows-x86_64-R4.5-devel.rs @@ -173,7 +173,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, @@ -195,7 +194,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 { @@ -204,7 +202,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 { @@ -219,7 +216,6 @@ pub enum cetype_t { pub type R_CFinalizer_t = ::std::option::Option; 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, @@ -278,7 +274,6 @@ pub struct R_hashtab_type { pub cell: SEXP, } #[repr(u32)] -#[non_exhaustive] #[doc = "PARSE_NULL will not be returned by R_ParseVector"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum ParseStatus { @@ -416,7 +411,6 @@ pub type R_altlist_Elt_method_t = pub type R_altlist_Set_elt_method_t = ::std::option::Option; #[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 { @@ -428,7 +422,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"] @@ -451,7 +444,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 { @@ -460,7 +452,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, @@ -761,7 +752,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 { @@ -790,7 +780,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 { @@ -876,7 +865,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, @@ -889,7 +877,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 { @@ -901,7 +888,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 { From 8e33549053e7aaf5490a670ebe49faf3debcb8a2 Mon Sep 17 00:00:00 2001 From: Mossa Date: Sat, 27 Apr 2024 11:25:28 +0200 Subject: [PATCH 09/10] we can revert [generate bindings] --- build.rs | 4 ---- src/lib.rs | 66 ------------------------------------------------------ 2 files changed, 70 deletions(-) diff --git a/build.rs b/build.rs index 00220e59..2654fef6 100644 --- a/build.rs +++ b/build.rs @@ -484,10 +484,6 @@ fn generate_bindings(r_paths: &InstallationPaths, version_info: &RVersionInfo) { non_exhaustive: false, }); - bindgen_builder = bindgen_builder - .blocklist_type("Rboolean") - .blocklist_type("SEXPTYPE"); - if cfg!(feature = "layout_tests") { bindgen_builder = bindgen_builder.layout_tests(true); } else { diff --git a/src/lib.rs b/src/lib.rs index ed66e00e..273f76e4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -71,72 +71,6 @@ include!(concat!(env!("OUT_DIR"), "/bindings.rs")); #[derive(Debug)] pub struct SEXPREC(std::ffi::c_void); -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum Rboolean { - FALSE = 0, - TRUE = 1, -} - -#[repr(C)] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub enum SEXPTYPE { - #[doc = "nil = NULL"] - NILSXP = 0, - #[doc = "symbols"] - SYMSXP = 1, - #[doc = "lists of dotted pairs"] - LISTSXP = 2, - #[doc = "closures"] - CLOSXP = 3, - #[doc = "environments"] - ENVSXP = 4, - #[doc = "promises: \\[un\\]evaluated closure arguments"] - PROMSXP = 5, - #[doc = "language constructs (special lists)"] - LANGSXP = 6, - #[doc = "special forms"] - SPECIALSXP = 7, - #[doc = "builtin non-special forms"] - BUILTINSXP = 8, - #[doc = "\"scalar\" string type (internal only)"] - CHARSXP = 9, - #[doc = "logical vectors"] - LGLSXP = 10, - #[doc = "integer vectors"] - INTSXP = 13, - #[doc = "real variables"] - REALSXP = 14, - #[doc = "complex variables"] - CPLXSXP = 15, - #[doc = "string vectors"] - STRSXP = 16, - #[doc = "dot-dot-dot object"] - DOTSXP = 17, - #[doc = "make \"any\" args work"] - ANYSXP = 18, - #[doc = "generic vectors"] - VECSXP = 19, - #[doc = "expressions vectors"] - EXPRSXP = 20, - #[doc = "byte code"] - BCODESXP = 21, - #[doc = "external pointer"] - EXTPTRSXP = 22, - #[doc = "weak reference"] - WEAKREFSXP = 23, - #[doc = "raw bytes"] - RAWSXP = 24, - #[doc = "S4 non-vector"] - S4SXP = 25, - #[doc = "fresh node created in new page"] - NEWSXP = 30, - #[doc = "node released by GC"] - FREESXP = 31, - #[doc = "Closure or Builtin"] - FUNSXP = 99, -} - extern "C" { // Return type should match `SEXPTYPE` pub fn TYPEOF(x: SEXP) -> SEXPTYPE; From 95a059c84d51ab3893063ede57ef37e1dbba7979 Mon Sep 17 00:00:00 2001 From: CGMossa Date: Sat, 27 Apr 2024 09:33:27 +0000 Subject: [PATCH 10/10] Update bindings [skip ci] --- bindings/bindings-linux-aarch64-R4.3.rs | 70 +++++++++++++++++++ bindings/bindings-linux-aarch64-R4.4.rs | 70 +++++++++++++++++++ bindings/bindings-linux-aarch64-R4.5-devel.rs | 70 +++++++++++++++++++ bindings/bindings-linux-x86_64-R4.3.rs | 70 +++++++++++++++++++ bindings/bindings-linux-x86_64-R4.4.rs | 70 +++++++++++++++++++ bindings/bindings-linux-x86_64-R4.5-devel.rs | 70 +++++++++++++++++++ bindings/bindings-macos-aarch64-R4.3.rs | 70 +++++++++++++++++++ bindings/bindings-macos-aarch64-R4.4.rs | 70 +++++++++++++++++++ bindings/bindings-macos-aarch64-R4.5-devel.rs | 70 +++++++++++++++++++ bindings/bindings-macos-x86_64-R4.4.rs | 70 +++++++++++++++++++ bindings/bindings-windows-x86_64-R4.3.rs | 69 ++++++++++++++++++ bindings/bindings-windows-x86_64-R4.4.rs | 69 ++++++++++++++++++ .../bindings-windows-x86_64-R4.5-devel.rs | 69 ++++++++++++++++++ 13 files changed, 907 insertions(+) diff --git a/bindings/bindings-linux-aarch64-R4.3.rs b/bindings/bindings-linux-aarch64-R4.3.rs index 5b2f221a..34fe3977 100644 --- a/bindings/bindings-linux-aarch64-R4.3.rs +++ b/bindings/bindings-linux-aarch64-R4.3.rs @@ -263,6 +263,14 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -309,6 +317,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + S4SXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -413,6 +480,7 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -696,6 +764,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1000,6 +1069,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-linux-aarch64-R4.4.rs b/bindings/bindings-linux-aarch64-R4.4.rs index 7103f550..c4ac481f 100644 --- a/bindings/bindings-linux-aarch64-R4.4.rs +++ b/bindings/bindings-linux-aarch64-R4.4.rs @@ -264,6 +264,14 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -310,6 +318,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + OBJSXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -414,6 +481,7 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -697,6 +765,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1001,6 +1070,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-linux-aarch64-R4.5-devel.rs b/bindings/bindings-linux-aarch64-R4.5-devel.rs index 3bc03962..909e783b 100644 --- a/bindings/bindings-linux-aarch64-R4.5-devel.rs +++ b/bindings/bindings-linux-aarch64-R4.5-devel.rs @@ -264,6 +264,14 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -310,6 +318,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + OBJSXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -414,6 +481,7 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -697,6 +765,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1001,6 +1070,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-linux-x86_64-R4.3.rs b/bindings/bindings-linux-x86_64-R4.3.rs index 1f64c42c..05c7bc85 100644 --- a/bindings/bindings-linux-x86_64-R4.3.rs +++ b/bindings/bindings-linux-x86_64-R4.3.rs @@ -263,6 +263,14 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -309,6 +317,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + S4SXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -413,6 +480,7 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -696,6 +764,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1000,6 +1069,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-linux-x86_64-R4.4.rs b/bindings/bindings-linux-x86_64-R4.4.rs index f736d227..1480f6ad 100644 --- a/bindings/bindings-linux-x86_64-R4.4.rs +++ b/bindings/bindings-linux-x86_64-R4.4.rs @@ -264,6 +264,14 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -310,6 +318,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + OBJSXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -414,6 +481,7 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -697,6 +765,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1001,6 +1070,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-linux-x86_64-R4.5-devel.rs b/bindings/bindings-linux-x86_64-R4.5-devel.rs index 3d37221f..dd3e5007 100644 --- a/bindings/bindings-linux-x86_64-R4.5-devel.rs +++ b/bindings/bindings-linux-x86_64-R4.5-devel.rs @@ -264,6 +264,14 @@ pub struct _IO_FILE { pub _mode: ::std::os::raw::c_int, pub _unused2: [::std::os::raw::c_char; 20usize], } +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -310,6 +318,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + OBJSXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -414,6 +481,7 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -697,6 +765,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1001,6 +1070,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-macos-aarch64-R4.3.rs b/bindings/bindings-macos-aarch64-R4.3.rs index 59f4b64b..62b3e7e5 100644 --- a/bindings/bindings-macos-aarch64-R4.3.rs +++ b/bindings/bindings-macos-aarch64-R4.3.rs @@ -273,6 +273,14 @@ pub struct __sFILE { pub _offset: fpos_t, } pub type FILE = __sFILE; +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -319,6 +327,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + S4SXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -423,6 +490,7 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -706,6 +774,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1010,6 +1079,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-macos-aarch64-R4.4.rs b/bindings/bindings-macos-aarch64-R4.4.rs index 7353adf7..8cb8872e 100644 --- a/bindings/bindings-macos-aarch64-R4.4.rs +++ b/bindings/bindings-macos-aarch64-R4.4.rs @@ -274,6 +274,14 @@ pub struct __sFILE { pub _offset: fpos_t, } pub type FILE = __sFILE; +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -320,6 +328,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + OBJSXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -424,6 +491,7 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -707,6 +775,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1011,6 +1080,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-macos-aarch64-R4.5-devel.rs b/bindings/bindings-macos-aarch64-R4.5-devel.rs index 7fa3dc85..04cc94e8 100644 --- a/bindings/bindings-macos-aarch64-R4.5-devel.rs +++ b/bindings/bindings-macos-aarch64-R4.5-devel.rs @@ -274,6 +274,14 @@ pub struct __sFILE { pub _offset: fpos_t, } pub type FILE = __sFILE; +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -320,6 +328,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + OBJSXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -424,6 +491,7 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -707,6 +775,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1011,6 +1080,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-macos-x86_64-R4.4.rs b/bindings/bindings-macos-x86_64-R4.4.rs index 7d86e2ec..d8b65a7b 100644 --- a/bindings/bindings-macos-x86_64-R4.4.rs +++ b/bindings/bindings-macos-x86_64-R4.4.rs @@ -274,6 +274,14 @@ pub struct __sFILE { pub _offset: fpos_t, } pub type FILE = __sFILE; +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -320,6 +328,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + OBJSXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -424,6 +491,7 @@ pub enum SA_TYPE { SA_SUICIDE = 6, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct structRstart { pub R_Quiet: Rboolean, pub R_NoEcho: Rboolean, @@ -707,6 +775,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -1011,6 +1080,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-windows-x86_64-R4.3.rs b/bindings/bindings-windows-x86_64-R4.3.rs index 0c06210f..0f63e091 100644 --- a/bindings/bindings-windows-x86_64-R4.3.rs +++ b/bindings/bindings-windows-x86_64-R4.3.rs @@ -137,6 +137,14 @@ pub struct _iobuf { pub _Placeholder: *mut ::std::os::raw::c_void, } pub type FILE = _iobuf; +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -183,6 +191,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + S4SXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -495,6 +562,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -799,6 +867,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-windows-x86_64-R4.4.rs b/bindings/bindings-windows-x86_64-R4.4.rs index 844d72b8..2127cc4a 100644 --- a/bindings/bindings-windows-x86_64-R4.4.rs +++ b/bindings/bindings-windows-x86_64-R4.4.rs @@ -138,6 +138,14 @@ pub struct _iobuf { pub _Placeholder: *mut ::std::os::raw::c_void, } pub type FILE = _iobuf; +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -184,6 +192,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + OBJSXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -496,6 +563,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -800,6 +868,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc, diff --git a/bindings/bindings-windows-x86_64-R4.5-devel.rs b/bindings/bindings-windows-x86_64-R4.5-devel.rs index c0f48d93..765d2080 100644 --- a/bindings/bindings-windows-x86_64-R4.5-devel.rs +++ b/bindings/bindings-windows-x86_64-R4.5-devel.rs @@ -138,6 +138,14 @@ pub struct _iobuf { pub _Placeholder: *mut ::std::os::raw::c_void, } pub type FILE = _iobuf; +#[repr(u32)] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum Rboolean { + #[doc = ", MAYBE"] + FALSE = 0, + #[doc = ", MAYBE"] + TRUE = 1, +} #[doc = "Called with a variable argument set after casting to a compatible\nfunction pointer."] pub type DL_FUNC = ::std::option::Option *mut ::std::os::raw::c_void>; pub type R_NativePrimitiveArgType = ::std::os::raw::c_uint; @@ -184,6 +192,65 @@ pub enum NativeSymbolType { 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)] +#[doc = "------ enum_SEXPTYPE -----"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum SEXPTYPE { + #[doc = "nil = NULL"] + NILSXP = 0, + #[doc = "symbols"] + SYMSXP = 1, + #[doc = "lists of dotted pairs"] + LISTSXP = 2, + #[doc = "closures"] + CLOSXP = 3, + #[doc = "environments"] + ENVSXP = 4, + #[doc = "promises: \\[un\\]evaluated closure arguments"] + PROMSXP = 5, + #[doc = "language constructs (special lists)"] + LANGSXP = 6, + #[doc = "special forms"] + SPECIALSXP = 7, + #[doc = "builtin non-special forms"] + BUILTINSXP = 8, + #[doc = "\"scalar\" string type (internal only)"] + CHARSXP = 9, + #[doc = "logical vectors"] + LGLSXP = 10, + #[doc = "integer vectors"] + INTSXP = 13, + #[doc = "real variables"] + REALSXP = 14, + #[doc = "complex variables"] + CPLXSXP = 15, + #[doc = "string vectors"] + STRSXP = 16, + #[doc = "dot-dot-dot object"] + DOTSXP = 17, + #[doc = "make \"any\" args work"] + ANYSXP = 18, + #[doc = "generic vectors"] + VECSXP = 19, + #[doc = "expressions vectors"] + EXPRSXP = 20, + #[doc = "byte code"] + BCODESXP = 21, + #[doc = "external pointer"] + EXTPTRSXP = 22, + #[doc = "weak reference"] + WEAKREFSXP = 23, + #[doc = "raw bytes"] + RAWSXP = 24, + #[doc = "S4 non-vector"] + OBJSXP = 25, + #[doc = "fresh node created in new page"] + NEWSXP = 30, + #[doc = "node released by GC"] + FREESXP = 31, + #[doc = "Closure or Builtin"] + FUNSXP = 99, +} pub type SEXP = *mut SEXPREC; #[doc = "We sometimes need to coerce a protected value and place the new\ncoerced value under protection. For these cases PROTECT_WITH_INDEX\nsaves an index of the protection location that can be used to\nreplace the protected value using REPROTECT."] pub type PROTECT_INDEX = ::std::os::raw::c_int; @@ -496,6 +563,7 @@ pub type pGEcontext = *mut R_GE_gcontext; pub type DevDesc = _DevDesc; pub type pDevDesc = *mut DevDesc; #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _DevDesc { #[doc = "left raster coordinate"] pub left: f64, @@ -800,6 +868,7 @@ pub struct GESystemDesc { pub callback: GEcallback, } #[repr(C)] +#[derive(Debug, Copy, Clone)] pub struct _GEDevDesc { #[doc = "Stuff that the devices can see (and modify).\n All detailed in GraphicsDevice.h"] pub dev: pDevDesc,