diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f4c9eaf6..be29c36f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -60,13 +60,15 @@ jobs: - {os: windows-latest, r: 'devel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', emit-bindings: 'true'} - {os: windows-latest, r: 'release', rust-version: 'stable-gnu', target: 'x86_64-pc-windows-gnu'} - {os: windows-latest, r: 'oldrel', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', emit-bindings: 'true'} + - {os: windows-latest, r: '4.2', rust-version: 'stable-msvc', target: 'x86_64-pc-windows-gnu', emit-bindings: 'true' } - {os: macOS-latest, r: 'release', rust-version: 'nightly'} - {os: macOS-latest, r: 'devel', rust-version: 'stable', emit-bindings: 'true'} - {os: macOS-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} - {os: macOS-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} - {os: macOS-latest, r: 'release', rust-version: 'stable', target: 'x86_64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} - + - {os: macOS-latest, r: '4.2', rust-version: 'stable', emit-bindings: 'true' } + - {os: macOS-latest, r: '4.2', rust-version: 'stable', target: 'x86_64-apple-darwin', skip-tests: 'true', emit-bindings: 'true'} - {os: ubuntu-latest, r: 'release', rust-version: 'nightly'} - {os: ubuntu-latest, r: 'release', rust-version: 'stable', emit-bindings: 'true'} @@ -78,6 +80,8 @@ jobs: - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', emit-bindings: 'true'} - {os: ubuntu-latest, r: 'oldrel', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} + - {os: ubuntu-latest, r: '4.2', rust-version: 'stable', emit-bindings: 'true' } + - {os: ubuntu-latest, r: '4.2', rust-version: 'stable', target: 'aarch64-unknown-linux-gnu', skip-tests: 'true', emit-bindings: 'true'} env: RSPM: ${{ matrix.config.rspm }} @@ -252,7 +256,7 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.event.pull_request.head.ref }} + ref: ${{ github.event.pull_request.head.sha }} - name: Get Head Commit Message id: get_head_commit_message run: echo "HEAD_COMMIT_MESSAGE=$(git show -s --format=%s)" >> "$GITHUB_OUTPUT" diff --git a/bindings/bindings-linux-aarch64-R4.2.rs b/bindings/bindings-linux-aarch64-R4.2.rs index 3d8efc62..6a429eca 100644 --- a/bindings/bindings-linux-aarch64-R4.2.rs +++ b/bindings/bindings-linux-aarch64-R4.2.rs @@ -2,7 +2,6 @@ /* libR-sys version: 0.7.0 */ /* bindgen clang version: Ubuntu clang version 15.0.7 */ -/* clang-rs version: Ubuntu clang version 15.0.7 */ /* r version: 4.2.3 */ #[repr(C)] @@ -258,7 +257,6 @@ pub struct _IO_FILE { pub _unused2: [::std::os::raw::c_char; 20usize], } #[repr(u32)] -#[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum Rboolean { #[doc = ", MAYBE"] @@ -301,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, @@ -314,7 +311,6 @@ pub type Rbyte = ::std::os::raw::c_uchar; #[doc = "type for length of (standard, not long) vectors etc"] pub type R_len_t = ::std::os::raw::c_int; #[repr(u32)] -#[non_exhaustive] #[doc = "------ enum_SEXPTYPE -----"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum SEXPTYPE { @@ -383,7 +379,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 { @@ -392,7 +387,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 { @@ -407,7 +401,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, @@ -459,6 +452,24 @@ pub struct R_inpstream_st { pub nat2nat_obj: *mut ::std::os::raw::c_void, pub nat2utf8_obj: *mut ::std::os::raw::c_void, } +pub const SORTED_DECR_NA_1ST: _bindgen_ty_2 = _bindgen_ty_2::SORTED_DECR_NA_1ST; +pub const SORTED_DECR: _bindgen_ty_2 = _bindgen_ty_2::SORTED_DECR; +pub const UNKNOWN_SORTEDNESS: _bindgen_ty_2 = _bindgen_ty_2::UNKNOWN_SORTEDNESS; +pub const SORTED_INCR: _bindgen_ty_2 = _bindgen_ty_2::SORTED_INCR; +pub const SORTED_INCR_NA_1ST: _bindgen_ty_2 = _bindgen_ty_2::SORTED_INCR_NA_1ST; +pub const KNOWN_UNSORTED: _bindgen_ty_2 = _bindgen_ty_2::KNOWN_UNSORTED; +#[repr(i32)] +#[doc = "ALTREP sorting support"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { + SORTED_DECR_NA_1ST = -2, + SORTED_DECR = -1, + #[doc = "INT_MIN is NA_INTEGER!"] + UNKNOWN_SORTEDNESS = -2147483648, + SORTED_INCR = 1, + SORTED_INCR_NA_1ST = 2, + KNOWN_UNSORTED = 0, +} #[doc = "try to allow some type checking"] #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -466,7 +477,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 { @@ -543,7 +553,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 { @@ -575,8 +584,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, @@ -679,7 +686,6 @@ pub type R_altstring_Is_sorted_method_t = pub type R_altstring_No_NA_method_t = ::std::option::Option ::std::os::raw::c_int>; #[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 { @@ -691,7 +697,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"] @@ -714,7 +719,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 { @@ -723,7 +727,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, @@ -1012,7 +1015,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 { @@ -1041,7 +1043,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 { @@ -1128,7 +1129,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, @@ -1141,7 +1141,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 { @@ -1153,7 +1152,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 { @@ -1254,9 +1252,6 @@ extern "C" { arg3: ::std::os::raw::c_int, ); pub fn Rf_setRVector(arg1: *mut f64, arg2: ::std::os::raw::c_int, arg3: f64); - pub fn Rf_StringFalse(arg1: *const ::std::os::raw::c_char) -> Rboolean; - pub fn Rf_StringTrue(arg1: *const ::std::os::raw::c_char) -> Rboolean; - pub fn Rf_isBlankString(arg1: *const ::std::os::raw::c_char) -> Rboolean; #[doc = "These two are guaranteed to use '.' as the decimal point,\nand to accept \"NA\"."] pub fn R_atof(str_: *const ::std::os::raw::c_char) -> f64; pub fn R_strtod(c: *const ::std::os::raw::c_char, end: *mut *mut ::std::os::raw::c_char) @@ -1686,7 +1681,6 @@ extern "C" { pub fn R_tryEval(arg1: SEXP, arg2: SEXP, arg3: *mut ::std::os::raw::c_int) -> SEXP; pub fn R_tryEvalSilent(arg1: SEXP, arg2: SEXP, arg3: *mut ::std::os::raw::c_int) -> SEXP; pub fn R_GetCurrentEnv() -> SEXP; - pub fn Rf_isS4(arg1: SEXP) -> Rboolean; pub fn Rf_asS4(arg1: SEXP, arg2: Rboolean, arg3: ::std::os::raw::c_int) -> SEXP; pub fn Rf_S3Class(arg1: SEXP) -> SEXP; pub fn Rf_isBasicClass(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; @@ -1728,8 +1722,6 @@ extern "C" { pub fn R_WeakRefKey(w: SEXP) -> SEXP; pub fn R_WeakRefValue(w: SEXP) -> SEXP; pub fn R_RunWeakRefFinalizer(w: SEXP); - pub fn R_PromiseExpr(arg1: SEXP) -> SEXP; - pub fn R_ClosureExpr(arg1: SEXP) -> SEXP; pub fn R_BytecodeExpr(e: SEXP) -> SEXP; #[doc = "Protected evaluation"] pub fn R_ToplevelExec( @@ -2040,31 +2032,7 @@ extern "C" { #[doc = "stuff that probably shouldn't be in the API but is getting used"] pub fn SET_TYPEOF(x: SEXP, v: ::std::os::raw::c_int); pub fn SET_OBJECT(x: SEXP, v: ::std::os::raw::c_int); - pub fn SET_S4_OBJECT(x: SEXP); - pub fn UNSET_S4_OBJECT(x: SEXP); - pub fn R_curErrorBuf() -> *const ::std::os::raw::c_char; - pub fn IS_SCALAR(x: SEXP, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - pub fn Rf_psmatch( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: Rboolean, - ) -> Rboolean; - pub fn SETLENGTH(x: SEXP, v: R_xlen_t); - pub fn SET_TRUELENGTH(x: SEXP, v: R_xlen_t); - pub fn SETLEVELS(x: SEXP, v: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - pub fn SET_ENVFLAGS(x: SEXP, v: ::std::os::raw::c_int); - pub fn SET_FRAME(x: SEXP, v: SEXP); - pub fn SET_ENCLOS(x: SEXP, v: SEXP); - pub fn SET_HASHTAB(x: SEXP, v: SEXP); - pub fn SET_PRENV(x: SEXP, v: SEXP); - pub fn SET_PRVALUE(x: SEXP, v: SEXP); - pub fn SET_PRCODE(x: SEXP, v: SEXP); - pub fn STDVEC_DATAPTR(x: SEXP) -> *mut ::std::os::raw::c_void; - pub fn IS_GROWABLE(x: SEXP) -> ::std::os::raw::c_int; pub fn SET_GROWABLE_BIT(x: SEXP); - pub fn SET_NAMED(x: SEXP, v: ::std::os::raw::c_int); - #[doc = "used by BIOC::matter; mightbe reasonable to include in API"] - pub fn R_tryWrap(arg1: SEXP) -> SEXP; pub fn R_FlushConsole(); pub fn Rf_onintr(); pub fn Rf_onintrNoResume(); diff --git a/bindings/bindings-linux-aarch64-R4.5-devel.rs b/bindings/bindings-linux-aarch64-R4.5-devel.rs index 26fa35f1..a467c145 100644 --- a/bindings/bindings-linux-aarch64-R4.5-devel.rs +++ b/bindings/bindings-linux-aarch64-R4.5-devel.rs @@ -135,9 +135,9 @@ pub const R_MAJOR: &[u8; 2] = b"4\0"; 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"05\0"; -pub const R_DAY: &[u8; 3] = b"08\0"; -pub const R_SVN_REVISION: u32 = 86528; +pub const R_MONTH: &[u8; 3] = b"06\0"; +pub const R_DAY: &[u8; 3] = b"11\0"; +pub const R_SVN_REVISION: u32 = 86723; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -1359,6 +1359,8 @@ extern "C" { pub fn Rf_isEnvironment(s: SEXP) -> Rboolean; pub fn Rf_isString(s: SEXP) -> Rboolean; pub fn Rf_isObject(s: SEXP) -> Rboolean; + pub fn MAYBE_SHARED(x: SEXP) -> ::std::os::raw::c_int; + pub fn NO_REFERENCES(x: SEXP) -> ::std::os::raw::c_int; #[doc = "General Cons Cell Attributes"] pub fn ATTRIB(x: SEXP) -> SEXP; pub fn OBJECT(x: SEXP) -> ::std::os::raw::c_int; @@ -1393,6 +1395,7 @@ extern "C" { pub fn SET_VECTOR_ELT(x: SEXP, i: R_xlen_t, v: SEXP) -> SEXP; pub fn STRING_PTR(x: SEXP) -> *mut SEXP; pub fn STRING_PTR_RO(x: SEXP) -> *const SEXP; + pub fn VECTOR_PTR_RO(x: SEXP) -> *const SEXP; pub fn INTEGER_GET_REGION( sx: SEXP, i: R_xlen_t, @@ -1449,6 +1452,10 @@ extern "C" { pub fn SET_FORMALS(x: SEXP, v: SEXP); pub fn SET_BODY(x: SEXP, v: SEXP); pub fn SET_CLOENV(x: SEXP, v: SEXP); + pub fn R_mkClosure(arg1: SEXP, arg2: SEXP, arg3: SEXP) -> SEXP; + pub fn R_ClosureFormals(arg1: SEXP) -> SEXP; + pub fn R_ClosureBody(arg1: SEXP) -> SEXP; + pub fn R_ClosureEnv(arg1: SEXP) -> SEXP; #[doc = "Symbol Access Functions"] pub fn PRINTNAME(x: SEXP) -> SEXP; pub fn SYMVALUE(x: SEXP) -> SEXP; @@ -1459,6 +1466,7 @@ extern "C" { pub fn ENCLOS(x: SEXP) -> SEXP; pub fn HASHTAB(x: SEXP) -> SEXP; pub fn ENVFLAGS(x: SEXP) -> ::std::os::raw::c_int; + pub fn R_ParentEnv(arg1: SEXP) -> SEXP; #[doc = "Promise Access Functions"] pub fn PRCODE(x: SEXP) -> SEXP; pub fn PRENV(x: SEXP) -> SEXP; @@ -1603,6 +1611,7 @@ extern "C" { arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int, ) -> SEXP; + pub fn Rf_allocLang(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocList(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocS4Object() -> SEXP; pub fn Rf_allocSExp(arg1: SEXPTYPE) -> SEXP; @@ -1712,12 +1721,6 @@ extern "C" { ce_out: cetype_t, subst: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; - pub fn Rf_reEnc3( - x: *const ::std::os::raw::c_char, - fromcode: *const ::std::os::raw::c_char, - tocode: *const ::std::os::raw::c_char, - subst: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; #[doc = "Calling a function with arguments evaluated"] pub fn R_forceAndCall(e: SEXP, n: ::std::os::raw::c_int, rho: SEXP) -> SEXP; #[doc = "External pointer interface"] @@ -1876,7 +1879,6 @@ extern "C" { ); pub fn R_Serialize(s: SEXP, ops: R_outpstream_t); pub fn R_Unserialize(ips: R_inpstream_t) -> SEXP; - pub fn R_SerializeInfo(ips: R_inpstream_t) -> SEXP; #[doc = "slot management (in attrib.c)"] pub fn R_do_slot(obj: SEXP, name: SEXP) -> SEXP; pub fn R_do_slot_assign(obj: SEXP, name: SEXP, value: SEXP) -> SEXP; @@ -1907,7 +1909,6 @@ extern "C" { pub fn R_NewPreciousMSet(arg1: ::std::os::raw::c_int) -> SEXP; pub fn R_PreserveInMSet(x: SEXP, mset: SEXP); pub fn R_ReleaseFromMSet(x: SEXP, mset: SEXP); - pub fn R_ReleaseMSet(mset: SEXP, keepSize: ::std::os::raw::c_int); #[doc = "Shutdown actions"] pub fn R_dot_Last(); pub fn R_RunExitFinalizers(); @@ -1936,6 +1937,7 @@ extern "C" { pub fn Rf_elt(arg1: SEXP, arg2: ::std::os::raw::c_int) -> SEXP; pub fn Rf_inherits(arg1: SEXP, arg2: *const ::std::os::raw::c_char) -> Rboolean; pub fn Rf_isArray(arg1: SEXP) -> Rboolean; + pub fn Rf_isDataFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFactor(arg1: SEXP) -> Rboolean; pub fn Rf_isFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFunction(arg1: SEXP) -> Rboolean; diff --git a/bindings/bindings-linux-x86_64-R4.2.rs b/bindings/bindings-linux-x86_64-R4.2.rs index 44fd5bf4..8aa1df15 100644 --- a/bindings/bindings-linux-x86_64-R4.2.rs +++ b/bindings/bindings-linux-x86_64-R4.2.rs @@ -2,7 +2,6 @@ /* libR-sys version: 0.7.0 */ /* bindgen clang version: Ubuntu clang version 15.0.7 */ -/* clang-rs version: Ubuntu clang version 15.0.7 */ /* r version: 4.2.3 */ #[repr(C)] @@ -258,7 +257,6 @@ pub struct _IO_FILE { pub _unused2: [::std::os::raw::c_char; 20usize], } #[repr(u32)] -#[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum Rboolean { #[doc = ", MAYBE"] @@ -301,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, @@ -314,7 +311,6 @@ pub type Rbyte = ::std::os::raw::c_uchar; #[doc = "type for length of (standard, not long) vectors etc"] pub type R_len_t = ::std::os::raw::c_int; #[repr(u32)] -#[non_exhaustive] #[doc = "------ enum_SEXPTYPE -----"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum SEXPTYPE { @@ -383,7 +379,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 { @@ -392,7 +387,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 { @@ -407,7 +401,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, @@ -459,6 +452,24 @@ pub struct R_inpstream_st { pub nat2nat_obj: *mut ::std::os::raw::c_void, pub nat2utf8_obj: *mut ::std::os::raw::c_void, } +pub const SORTED_DECR_NA_1ST: _bindgen_ty_2 = _bindgen_ty_2::SORTED_DECR_NA_1ST; +pub const SORTED_DECR: _bindgen_ty_2 = _bindgen_ty_2::SORTED_DECR; +pub const UNKNOWN_SORTEDNESS: _bindgen_ty_2 = _bindgen_ty_2::UNKNOWN_SORTEDNESS; +pub const SORTED_INCR: _bindgen_ty_2 = _bindgen_ty_2::SORTED_INCR; +pub const SORTED_INCR_NA_1ST: _bindgen_ty_2 = _bindgen_ty_2::SORTED_INCR_NA_1ST; +pub const KNOWN_UNSORTED: _bindgen_ty_2 = _bindgen_ty_2::KNOWN_UNSORTED; +#[repr(i32)] +#[doc = "ALTREP sorting support"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_2 { + SORTED_DECR_NA_1ST = -2, + SORTED_DECR = -1, + #[doc = "INT_MIN is NA_INTEGER!"] + UNKNOWN_SORTEDNESS = -2147483648, + SORTED_INCR = 1, + SORTED_INCR_NA_1ST = 2, + KNOWN_UNSORTED = 0, +} #[doc = "try to allow some type checking"] #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -466,7 +477,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 { @@ -543,7 +553,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 { @@ -575,8 +584,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, @@ -679,7 +686,6 @@ pub type R_altstring_Is_sorted_method_t = pub type R_altstring_No_NA_method_t = ::std::option::Option ::std::os::raw::c_int>; #[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 { @@ -691,7 +697,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"] @@ -714,7 +719,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 { @@ -723,7 +727,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, @@ -1012,7 +1015,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 { @@ -1041,7 +1043,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 { @@ -1128,7 +1129,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, @@ -1141,7 +1141,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 { @@ -1153,7 +1152,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 { @@ -1263,9 +1261,6 @@ extern "C" { arg3: ::std::os::raw::c_int, ); pub fn Rf_setRVector(arg1: *mut f64, arg2: ::std::os::raw::c_int, arg3: f64); - pub fn Rf_StringFalse(arg1: *const ::std::os::raw::c_char) -> Rboolean; - pub fn Rf_StringTrue(arg1: *const ::std::os::raw::c_char) -> Rboolean; - pub fn Rf_isBlankString(arg1: *const ::std::os::raw::c_char) -> Rboolean; #[doc = "These two are guaranteed to use '.' as the decimal point,\nand to accept \"NA\"."] pub fn R_atof(str_: *const ::std::os::raw::c_char) -> f64; pub fn R_strtod(c: *const ::std::os::raw::c_char, end: *mut *mut ::std::os::raw::c_char) @@ -1695,7 +1690,6 @@ extern "C" { pub fn R_tryEval(arg1: SEXP, arg2: SEXP, arg3: *mut ::std::os::raw::c_int) -> SEXP; pub fn R_tryEvalSilent(arg1: SEXP, arg2: SEXP, arg3: *mut ::std::os::raw::c_int) -> SEXP; pub fn R_GetCurrentEnv() -> SEXP; - pub fn Rf_isS4(arg1: SEXP) -> Rboolean; pub fn Rf_asS4(arg1: SEXP, arg2: Rboolean, arg3: ::std::os::raw::c_int) -> SEXP; pub fn Rf_S3Class(arg1: SEXP) -> SEXP; pub fn Rf_isBasicClass(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; @@ -1737,8 +1731,6 @@ extern "C" { pub fn R_WeakRefKey(w: SEXP) -> SEXP; pub fn R_WeakRefValue(w: SEXP) -> SEXP; pub fn R_RunWeakRefFinalizer(w: SEXP); - pub fn R_PromiseExpr(arg1: SEXP) -> SEXP; - pub fn R_ClosureExpr(arg1: SEXP) -> SEXP; pub fn R_BytecodeExpr(e: SEXP) -> SEXP; #[doc = "Protected evaluation"] pub fn R_ToplevelExec( @@ -2049,31 +2041,7 @@ extern "C" { #[doc = "stuff that probably shouldn't be in the API but is getting used"] pub fn SET_TYPEOF(x: SEXP, v: ::std::os::raw::c_int); pub fn SET_OBJECT(x: SEXP, v: ::std::os::raw::c_int); - pub fn SET_S4_OBJECT(x: SEXP); - pub fn UNSET_S4_OBJECT(x: SEXP); - pub fn R_curErrorBuf() -> *const ::std::os::raw::c_char; - pub fn IS_SCALAR(x: SEXP, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - pub fn Rf_psmatch( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: Rboolean, - ) -> Rboolean; - pub fn SETLENGTH(x: SEXP, v: R_xlen_t); - pub fn SET_TRUELENGTH(x: SEXP, v: R_xlen_t); - pub fn SETLEVELS(x: SEXP, v: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - pub fn SET_ENVFLAGS(x: SEXP, v: ::std::os::raw::c_int); - pub fn SET_FRAME(x: SEXP, v: SEXP); - pub fn SET_ENCLOS(x: SEXP, v: SEXP); - pub fn SET_HASHTAB(x: SEXP, v: SEXP); - pub fn SET_PRENV(x: SEXP, v: SEXP); - pub fn SET_PRVALUE(x: SEXP, v: SEXP); - pub fn SET_PRCODE(x: SEXP, v: SEXP); - pub fn STDVEC_DATAPTR(x: SEXP) -> *mut ::std::os::raw::c_void; - pub fn IS_GROWABLE(x: SEXP) -> ::std::os::raw::c_int; pub fn SET_GROWABLE_BIT(x: SEXP); - pub fn SET_NAMED(x: SEXP, v: ::std::os::raw::c_int); - #[doc = "used by BIOC::matter; mightbe reasonable to include in API"] - pub fn R_tryWrap(arg1: SEXP) -> SEXP; pub fn R_FlushConsole(); pub fn Rf_onintr(); pub fn Rf_onintrNoResume(); diff --git a/bindings/bindings-linux-x86_64-R4.5-devel.rs b/bindings/bindings-linux-x86_64-R4.5-devel.rs index 29bd14aa..690467a2 100644 --- a/bindings/bindings-linux-x86_64-R4.5-devel.rs +++ b/bindings/bindings-linux-x86_64-R4.5-devel.rs @@ -135,9 +135,9 @@ pub const R_MAJOR: &[u8; 2] = b"4\0"; 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"05\0"; -pub const R_DAY: &[u8; 3] = b"08\0"; -pub const R_SVN_REVISION: u32 = 86528; +pub const R_MONTH: &[u8; 3] = b"06\0"; +pub const R_DAY: &[u8; 3] = b"11\0"; +pub const R_SVN_REVISION: u32 = 86723; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -1368,6 +1368,8 @@ extern "C" { pub fn Rf_isEnvironment(s: SEXP) -> Rboolean; pub fn Rf_isString(s: SEXP) -> Rboolean; pub fn Rf_isObject(s: SEXP) -> Rboolean; + pub fn MAYBE_SHARED(x: SEXP) -> ::std::os::raw::c_int; + pub fn NO_REFERENCES(x: SEXP) -> ::std::os::raw::c_int; #[doc = "General Cons Cell Attributes"] pub fn ATTRIB(x: SEXP) -> SEXP; pub fn OBJECT(x: SEXP) -> ::std::os::raw::c_int; @@ -1402,6 +1404,7 @@ extern "C" { pub fn SET_VECTOR_ELT(x: SEXP, i: R_xlen_t, v: SEXP) -> SEXP; pub fn STRING_PTR(x: SEXP) -> *mut SEXP; pub fn STRING_PTR_RO(x: SEXP) -> *const SEXP; + pub fn VECTOR_PTR_RO(x: SEXP) -> *const SEXP; pub fn INTEGER_GET_REGION( sx: SEXP, i: R_xlen_t, @@ -1458,6 +1461,10 @@ extern "C" { pub fn SET_FORMALS(x: SEXP, v: SEXP); pub fn SET_BODY(x: SEXP, v: SEXP); pub fn SET_CLOENV(x: SEXP, v: SEXP); + pub fn R_mkClosure(arg1: SEXP, arg2: SEXP, arg3: SEXP) -> SEXP; + pub fn R_ClosureFormals(arg1: SEXP) -> SEXP; + pub fn R_ClosureBody(arg1: SEXP) -> SEXP; + pub fn R_ClosureEnv(arg1: SEXP) -> SEXP; #[doc = "Symbol Access Functions"] pub fn PRINTNAME(x: SEXP) -> SEXP; pub fn SYMVALUE(x: SEXP) -> SEXP; @@ -1468,6 +1475,7 @@ extern "C" { pub fn ENCLOS(x: SEXP) -> SEXP; pub fn HASHTAB(x: SEXP) -> SEXP; pub fn ENVFLAGS(x: SEXP) -> ::std::os::raw::c_int; + pub fn R_ParentEnv(arg1: SEXP) -> SEXP; #[doc = "Promise Access Functions"] pub fn PRCODE(x: SEXP) -> SEXP; pub fn PRENV(x: SEXP) -> SEXP; @@ -1612,6 +1620,7 @@ extern "C" { arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int, ) -> SEXP; + pub fn Rf_allocLang(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocList(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocS4Object() -> SEXP; pub fn Rf_allocSExp(arg1: SEXPTYPE) -> SEXP; @@ -1721,12 +1730,6 @@ extern "C" { ce_out: cetype_t, subst: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; - pub fn Rf_reEnc3( - x: *const ::std::os::raw::c_char, - fromcode: *const ::std::os::raw::c_char, - tocode: *const ::std::os::raw::c_char, - subst: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; #[doc = "Calling a function with arguments evaluated"] pub fn R_forceAndCall(e: SEXP, n: ::std::os::raw::c_int, rho: SEXP) -> SEXP; #[doc = "External pointer interface"] @@ -1885,7 +1888,6 @@ extern "C" { ); pub fn R_Serialize(s: SEXP, ops: R_outpstream_t); pub fn R_Unserialize(ips: R_inpstream_t) -> SEXP; - pub fn R_SerializeInfo(ips: R_inpstream_t) -> SEXP; #[doc = "slot management (in attrib.c)"] pub fn R_do_slot(obj: SEXP, name: SEXP) -> SEXP; pub fn R_do_slot_assign(obj: SEXP, name: SEXP, value: SEXP) -> SEXP; @@ -1916,7 +1918,6 @@ extern "C" { pub fn R_NewPreciousMSet(arg1: ::std::os::raw::c_int) -> SEXP; pub fn R_PreserveInMSet(x: SEXP, mset: SEXP); pub fn R_ReleaseFromMSet(x: SEXP, mset: SEXP); - pub fn R_ReleaseMSet(mset: SEXP, keepSize: ::std::os::raw::c_int); #[doc = "Shutdown actions"] pub fn R_dot_Last(); pub fn R_RunExitFinalizers(); @@ -1945,6 +1946,7 @@ extern "C" { pub fn Rf_elt(arg1: SEXP, arg2: ::std::os::raw::c_int) -> SEXP; pub fn Rf_inherits(arg1: SEXP, arg2: *const ::std::os::raw::c_char) -> Rboolean; pub fn Rf_isArray(arg1: SEXP) -> Rboolean; + pub fn Rf_isDataFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFactor(arg1: SEXP) -> Rboolean; pub fn Rf_isFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFunction(arg1: SEXP) -> Rboolean; diff --git a/bindings/bindings-macos-aarch64-R4.2.rs b/bindings/bindings-macos-aarch64-R4.2.rs index b6f7c14b..e77bfb42 100644 --- a/bindings/bindings-macos-aarch64-R4.2.rs +++ b/bindings/bindings-macos-aarch64-R4.2.rs @@ -1,8 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: Homebrew clang version 17.0.6 */ -/* clang-rs version: Homebrew clang version 17.0.6 */ +/* bindgen clang version: Homebrew clang version 18.1.7 */ /* r version: 4.2.3 */ #[repr(C)] @@ -85,7 +84,6 @@ where } } } -pub const INT_MIN: i32 = -2147483648; pub const SINGLESXP: u32 = 302; pub const R_LEN_T_MAX: u32 = 2147483647; pub const HAVE_F77_UNDERSCORE: u32 = 1; @@ -268,7 +266,6 @@ pub struct __sFILE { } pub type FILE = __sFILE; #[repr(u32)] -#[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum Rboolean { #[doc = ", MAYBE"] @@ -311,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, @@ -324,7 +320,6 @@ pub type Rbyte = ::std::os::raw::c_uchar; #[doc = "type for length of (standard, not long) vectors etc"] pub type R_len_t = ::std::os::raw::c_int; #[repr(u32)] -#[non_exhaustive] #[doc = "------ enum_SEXPTYPE -----"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum SEXPTYPE { @@ -393,7 +388,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 { @@ -402,7 +396,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 { @@ -417,7 +410,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, @@ -469,6 +461,24 @@ pub struct R_inpstream_st { pub nat2nat_obj: *mut ::std::os::raw::c_void, pub nat2utf8_obj: *mut ::std::os::raw::c_void, } +pub const SORTED_DECR_NA_1ST: _bindgen_ty_1 = _bindgen_ty_1::SORTED_DECR_NA_1ST; +pub const SORTED_DECR: _bindgen_ty_1 = _bindgen_ty_1::SORTED_DECR; +pub const UNKNOWN_SORTEDNESS: _bindgen_ty_1 = _bindgen_ty_1::UNKNOWN_SORTEDNESS; +pub const SORTED_INCR: _bindgen_ty_1 = _bindgen_ty_1::SORTED_INCR; +pub const SORTED_INCR_NA_1ST: _bindgen_ty_1 = _bindgen_ty_1::SORTED_INCR_NA_1ST; +pub const KNOWN_UNSORTED: _bindgen_ty_1 = _bindgen_ty_1::KNOWN_UNSORTED; +#[repr(i32)] +#[doc = "ALTREP sorting support"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { + SORTED_DECR_NA_1ST = -2, + SORTED_DECR = -1, + #[doc = "INT_MIN is NA_INTEGER!"] + UNKNOWN_SORTEDNESS = -2147483648, + SORTED_INCR = 1, + SORTED_INCR_NA_1ST = 2, + KNOWN_UNSORTED = 0, +} #[doc = "try to allow some type checking"] #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -476,7 +486,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 { @@ -553,7 +562,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 { @@ -585,8 +593,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, @@ -689,7 +695,6 @@ pub type R_altstring_Is_sorted_method_t = pub type R_altstring_No_NA_method_t = ::std::option::Option ::std::os::raw::c_int>; #[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 { @@ -701,7 +706,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"] @@ -724,7 +728,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 { @@ -733,7 +736,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, @@ -1022,7 +1024,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 { @@ -1051,7 +1052,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 { @@ -1138,7 +1138,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, @@ -1151,7 +1150,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 { @@ -1163,7 +1161,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 { @@ -1265,9 +1262,6 @@ extern "C" { arg3: ::std::os::raw::c_int, ); pub fn Rf_setRVector(arg1: *mut f64, arg2: ::std::os::raw::c_int, arg3: f64); - pub fn Rf_StringFalse(arg1: *const ::std::os::raw::c_char) -> Rboolean; - pub fn Rf_StringTrue(arg1: *const ::std::os::raw::c_char) -> Rboolean; - pub fn Rf_isBlankString(arg1: *const ::std::os::raw::c_char) -> Rboolean; #[doc = "These two are guaranteed to use '.' as the decimal point,\nand to accept \"NA\"."] pub fn R_atof(str_: *const ::std::os::raw::c_char) -> f64; pub fn R_strtod(c: *const ::std::os::raw::c_char, end: *mut *mut ::std::os::raw::c_char) @@ -1697,7 +1691,6 @@ extern "C" { pub fn R_tryEval(arg1: SEXP, arg2: SEXP, arg3: *mut ::std::os::raw::c_int) -> SEXP; pub fn R_tryEvalSilent(arg1: SEXP, arg2: SEXP, arg3: *mut ::std::os::raw::c_int) -> SEXP; pub fn R_GetCurrentEnv() -> SEXP; - pub fn Rf_isS4(arg1: SEXP) -> Rboolean; pub fn Rf_asS4(arg1: SEXP, arg2: Rboolean, arg3: ::std::os::raw::c_int) -> SEXP; pub fn Rf_S3Class(arg1: SEXP) -> SEXP; pub fn Rf_isBasicClass(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; @@ -1739,8 +1732,6 @@ extern "C" { pub fn R_WeakRefKey(w: SEXP) -> SEXP; pub fn R_WeakRefValue(w: SEXP) -> SEXP; pub fn R_RunWeakRefFinalizer(w: SEXP); - pub fn R_PromiseExpr(arg1: SEXP) -> SEXP; - pub fn R_ClosureExpr(arg1: SEXP) -> SEXP; pub fn R_BytecodeExpr(e: SEXP) -> SEXP; #[doc = "Protected evaluation"] pub fn R_ToplevelExec( @@ -2051,31 +2042,7 @@ extern "C" { #[doc = "stuff that probably shouldn't be in the API but is getting used"] pub fn SET_TYPEOF(x: SEXP, v: ::std::os::raw::c_int); pub fn SET_OBJECT(x: SEXP, v: ::std::os::raw::c_int); - pub fn SET_S4_OBJECT(x: SEXP); - pub fn UNSET_S4_OBJECT(x: SEXP); - pub fn R_curErrorBuf() -> *const ::std::os::raw::c_char; - pub fn IS_SCALAR(x: SEXP, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - pub fn Rf_psmatch( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: Rboolean, - ) -> Rboolean; - pub fn SETLENGTH(x: SEXP, v: R_xlen_t); - pub fn SET_TRUELENGTH(x: SEXP, v: R_xlen_t); - pub fn SETLEVELS(x: SEXP, v: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - pub fn SET_ENVFLAGS(x: SEXP, v: ::std::os::raw::c_int); - pub fn SET_FRAME(x: SEXP, v: SEXP); - pub fn SET_ENCLOS(x: SEXP, v: SEXP); - pub fn SET_HASHTAB(x: SEXP, v: SEXP); - pub fn SET_PRENV(x: SEXP, v: SEXP); - pub fn SET_PRVALUE(x: SEXP, v: SEXP); - pub fn SET_PRCODE(x: SEXP, v: SEXP); - pub fn STDVEC_DATAPTR(x: SEXP) -> *mut ::std::os::raw::c_void; - pub fn IS_GROWABLE(x: SEXP) -> ::std::os::raw::c_int; pub fn SET_GROWABLE_BIT(x: SEXP); - pub fn SET_NAMED(x: SEXP, v: ::std::os::raw::c_int); - #[doc = "used by BIOC::matter; mightbe reasonable to include in API"] - pub fn R_tryWrap(arg1: SEXP) -> SEXP; pub fn R_FlushConsole(); pub fn Rf_onintr(); pub fn Rf_onintrNoResume(); diff --git a/bindings/bindings-macos-aarch64-R4.3.rs b/bindings/bindings-macos-aarch64-R4.3.rs index 8589198c..16bdc5a2 100644 --- a/bindings/bindings-macos-aarch64-R4.3.rs +++ b/bindings/bindings-macos-aarch64-R4.3.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: Homebrew clang version 17.0.6 */ +/* bindgen clang version: Homebrew clang version 18.1.7 */ /* r version: 4.3.3 */ #[repr(C)] diff --git a/bindings/bindings-macos-aarch64-R4.4.rs b/bindings/bindings-macos-aarch64-R4.4.rs index cd066d21..630c4a9a 100644 --- a/bindings/bindings-macos-aarch64-R4.4.rs +++ b/bindings/bindings-macos-aarch64-R4.4.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: Homebrew clang version 17.0.6 */ +/* bindgen clang version: Homebrew clang version 18.1.7 */ /* r version: 4.4.0 */ #[repr(C)] diff --git a/bindings/bindings-macos-aarch64-R4.5-devel.rs b/bindings/bindings-macos-aarch64-R4.5-devel.rs index a2c4eb8e..79955ddc 100644 --- a/bindings/bindings-macos-aarch64-R4.5-devel.rs +++ b/bindings/bindings-macos-aarch64-R4.5-devel.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: Homebrew clang version 17.0.6 */ +/* bindgen clang version: Homebrew clang version 18.1.7 */ /* r version: 4.5.0-devel */ #[repr(C)] @@ -136,9 +136,9 @@ pub const R_MAJOR: &[u8; 2] = b"4\0"; 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"05\0"; -pub const R_DAY: &[u8; 3] = b"04\0"; -pub const R_SVN_REVISION: u32 = 86521; +pub const R_MONTH: &[u8; 3] = b"06\0"; +pub const R_DAY: &[u8; 3] = b"12\0"; +pub const R_SVN_REVISION: u32 = 86726; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -1369,6 +1369,8 @@ extern "C" { pub fn Rf_isEnvironment(s: SEXP) -> Rboolean; pub fn Rf_isString(s: SEXP) -> Rboolean; pub fn Rf_isObject(s: SEXP) -> Rboolean; + pub fn MAYBE_SHARED(x: SEXP) -> ::std::os::raw::c_int; + pub fn NO_REFERENCES(x: SEXP) -> ::std::os::raw::c_int; #[doc = "General Cons Cell Attributes"] pub fn ATTRIB(x: SEXP) -> SEXP; pub fn OBJECT(x: SEXP) -> ::std::os::raw::c_int; @@ -1403,6 +1405,7 @@ extern "C" { pub fn SET_VECTOR_ELT(x: SEXP, i: R_xlen_t, v: SEXP) -> SEXP; pub fn STRING_PTR(x: SEXP) -> *mut SEXP; pub fn STRING_PTR_RO(x: SEXP) -> *const SEXP; + pub fn VECTOR_PTR_RO(x: SEXP) -> *const SEXP; pub fn INTEGER_GET_REGION( sx: SEXP, i: R_xlen_t, @@ -1459,6 +1462,10 @@ extern "C" { pub fn SET_FORMALS(x: SEXP, v: SEXP); pub fn SET_BODY(x: SEXP, v: SEXP); pub fn SET_CLOENV(x: SEXP, v: SEXP); + pub fn R_mkClosure(arg1: SEXP, arg2: SEXP, arg3: SEXP) -> SEXP; + pub fn R_ClosureFormals(arg1: SEXP) -> SEXP; + pub fn R_ClosureBody(arg1: SEXP) -> SEXP; + pub fn R_ClosureEnv(arg1: SEXP) -> SEXP; #[doc = "Symbol Access Functions"] pub fn PRINTNAME(x: SEXP) -> SEXP; pub fn SYMVALUE(x: SEXP) -> SEXP; @@ -1469,6 +1476,7 @@ extern "C" { pub fn ENCLOS(x: SEXP) -> SEXP; pub fn HASHTAB(x: SEXP) -> SEXP; pub fn ENVFLAGS(x: SEXP) -> ::std::os::raw::c_int; + pub fn R_ParentEnv(arg1: SEXP) -> SEXP; #[doc = "Promise Access Functions"] pub fn PRCODE(x: SEXP) -> SEXP; pub fn PRENV(x: SEXP) -> SEXP; @@ -1613,6 +1621,7 @@ extern "C" { arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int, ) -> SEXP; + pub fn Rf_allocLang(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocList(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocS4Object() -> SEXP; pub fn Rf_allocSExp(arg1: SEXPTYPE) -> SEXP; @@ -1722,12 +1731,6 @@ extern "C" { ce_out: cetype_t, subst: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; - pub fn Rf_reEnc3( - x: *const ::std::os::raw::c_char, - fromcode: *const ::std::os::raw::c_char, - tocode: *const ::std::os::raw::c_char, - subst: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; #[doc = "Calling a function with arguments evaluated"] pub fn R_forceAndCall(e: SEXP, n: ::std::os::raw::c_int, rho: SEXP) -> SEXP; #[doc = "External pointer interface"] @@ -1886,7 +1889,6 @@ extern "C" { ); pub fn R_Serialize(s: SEXP, ops: R_outpstream_t); pub fn R_Unserialize(ips: R_inpstream_t) -> SEXP; - pub fn R_SerializeInfo(ips: R_inpstream_t) -> SEXP; #[doc = "slot management (in attrib.c)"] pub fn R_do_slot(obj: SEXP, name: SEXP) -> SEXP; pub fn R_do_slot_assign(obj: SEXP, name: SEXP, value: SEXP) -> SEXP; @@ -1917,7 +1919,6 @@ extern "C" { pub fn R_NewPreciousMSet(arg1: ::std::os::raw::c_int) -> SEXP; pub fn R_PreserveInMSet(x: SEXP, mset: SEXP); pub fn R_ReleaseFromMSet(x: SEXP, mset: SEXP); - pub fn R_ReleaseMSet(mset: SEXP, keepSize: ::std::os::raw::c_int); #[doc = "Shutdown actions"] pub fn R_dot_Last(); pub fn R_RunExitFinalizers(); @@ -1946,6 +1947,7 @@ extern "C" { pub fn Rf_elt(arg1: SEXP, arg2: ::std::os::raw::c_int) -> SEXP; pub fn Rf_inherits(arg1: SEXP, arg2: *const ::std::os::raw::c_char) -> Rboolean; pub fn Rf_isArray(arg1: SEXP) -> Rboolean; + pub fn Rf_isDataFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFactor(arg1: SEXP) -> Rboolean; pub fn Rf_isFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFunction(arg1: SEXP) -> Rboolean; diff --git a/bindings/bindings-macos-x86_64-R4.2.rs b/bindings/bindings-macos-x86_64-R4.2.rs index cd69236a..d5066f94 100644 --- a/bindings/bindings-macos-x86_64-R4.2.rs +++ b/bindings/bindings-macos-x86_64-R4.2.rs @@ -1,8 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: Homebrew clang version 17.0.6 */ -/* clang-rs version: Homebrew clang version 17.0.6 */ +/* bindgen clang version: Homebrew clang version 18.1.7 */ /* r version: 4.2.3 */ #[repr(C)] @@ -85,7 +84,6 @@ where } } } -pub const INT_MIN: i32 = -2147483648; pub const SINGLESXP: u32 = 302; pub const R_LEN_T_MAX: u32 = 2147483647; pub const HAVE_F77_UNDERSCORE: u32 = 1; @@ -268,7 +266,6 @@ pub struct __sFILE { } pub type FILE = __sFILE; #[repr(u32)] -#[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum Rboolean { #[doc = ", MAYBE"] @@ -311,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, @@ -324,7 +320,6 @@ pub type Rbyte = ::std::os::raw::c_uchar; #[doc = "type for length of (standard, not long) vectors etc"] pub type R_len_t = ::std::os::raw::c_int; #[repr(u32)] -#[non_exhaustive] #[doc = "------ enum_SEXPTYPE -----"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum SEXPTYPE { @@ -393,7 +388,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 { @@ -402,7 +396,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 { @@ -417,7 +410,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, @@ -469,6 +461,24 @@ pub struct R_inpstream_st { pub nat2nat_obj: *mut ::std::os::raw::c_void, pub nat2utf8_obj: *mut ::std::os::raw::c_void, } +pub const SORTED_DECR_NA_1ST: _bindgen_ty_1 = _bindgen_ty_1::SORTED_DECR_NA_1ST; +pub const SORTED_DECR: _bindgen_ty_1 = _bindgen_ty_1::SORTED_DECR; +pub const UNKNOWN_SORTEDNESS: _bindgen_ty_1 = _bindgen_ty_1::UNKNOWN_SORTEDNESS; +pub const SORTED_INCR: _bindgen_ty_1 = _bindgen_ty_1::SORTED_INCR; +pub const SORTED_INCR_NA_1ST: _bindgen_ty_1 = _bindgen_ty_1::SORTED_INCR_NA_1ST; +pub const KNOWN_UNSORTED: _bindgen_ty_1 = _bindgen_ty_1::KNOWN_UNSORTED; +#[repr(i32)] +#[doc = "ALTREP sorting support"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { + SORTED_DECR_NA_1ST = -2, + SORTED_DECR = -1, + #[doc = "INT_MIN is NA_INTEGER!"] + UNKNOWN_SORTEDNESS = -2147483648, + SORTED_INCR = 1, + SORTED_INCR_NA_1ST = 2, + KNOWN_UNSORTED = 0, +} #[doc = "try to allow some type checking"] #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -476,7 +486,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 { @@ -553,7 +562,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 { @@ -585,8 +593,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, @@ -689,7 +695,6 @@ pub type R_altstring_Is_sorted_method_t = pub type R_altstring_No_NA_method_t = ::std::option::Option ::std::os::raw::c_int>; #[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 { @@ -701,7 +706,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"] @@ -724,7 +728,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 { @@ -733,7 +736,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, @@ -1022,7 +1024,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 { @@ -1051,7 +1052,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 { @@ -1138,7 +1138,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, @@ -1151,7 +1150,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 { @@ -1163,7 +1161,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 { @@ -1273,9 +1270,6 @@ extern "C" { arg3: ::std::os::raw::c_int, ); pub fn Rf_setRVector(arg1: *mut f64, arg2: ::std::os::raw::c_int, arg3: f64); - pub fn Rf_StringFalse(arg1: *const ::std::os::raw::c_char) -> Rboolean; - pub fn Rf_StringTrue(arg1: *const ::std::os::raw::c_char) -> Rboolean; - pub fn Rf_isBlankString(arg1: *const ::std::os::raw::c_char) -> Rboolean; #[doc = "These two are guaranteed to use '.' as the decimal point,\nand to accept \"NA\"."] pub fn R_atof(str_: *const ::std::os::raw::c_char) -> f64; pub fn R_strtod(c: *const ::std::os::raw::c_char, end: *mut *mut ::std::os::raw::c_char) @@ -1705,7 +1699,6 @@ extern "C" { pub fn R_tryEval(arg1: SEXP, arg2: SEXP, arg3: *mut ::std::os::raw::c_int) -> SEXP; pub fn R_tryEvalSilent(arg1: SEXP, arg2: SEXP, arg3: *mut ::std::os::raw::c_int) -> SEXP; pub fn R_GetCurrentEnv() -> SEXP; - pub fn Rf_isS4(arg1: SEXP) -> Rboolean; pub fn Rf_asS4(arg1: SEXP, arg2: Rboolean, arg3: ::std::os::raw::c_int) -> SEXP; pub fn Rf_S3Class(arg1: SEXP) -> SEXP; pub fn Rf_isBasicClass(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; @@ -1747,8 +1740,6 @@ extern "C" { pub fn R_WeakRefKey(w: SEXP) -> SEXP; pub fn R_WeakRefValue(w: SEXP) -> SEXP; pub fn R_RunWeakRefFinalizer(w: SEXP); - pub fn R_PromiseExpr(arg1: SEXP) -> SEXP; - pub fn R_ClosureExpr(arg1: SEXP) -> SEXP; pub fn R_BytecodeExpr(e: SEXP) -> SEXP; #[doc = "Protected evaluation"] pub fn R_ToplevelExec( @@ -2059,31 +2050,7 @@ extern "C" { #[doc = "stuff that probably shouldn't be in the API but is getting used"] pub fn SET_TYPEOF(x: SEXP, v: ::std::os::raw::c_int); pub fn SET_OBJECT(x: SEXP, v: ::std::os::raw::c_int); - pub fn SET_S4_OBJECT(x: SEXP); - pub fn UNSET_S4_OBJECT(x: SEXP); - pub fn R_curErrorBuf() -> *const ::std::os::raw::c_char; - pub fn IS_SCALAR(x: SEXP, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - pub fn Rf_psmatch( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: Rboolean, - ) -> Rboolean; - pub fn SETLENGTH(x: SEXP, v: R_xlen_t); - pub fn SET_TRUELENGTH(x: SEXP, v: R_xlen_t); - pub fn SETLEVELS(x: SEXP, v: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - pub fn SET_ENVFLAGS(x: SEXP, v: ::std::os::raw::c_int); - pub fn SET_FRAME(x: SEXP, v: SEXP); - pub fn SET_ENCLOS(x: SEXP, v: SEXP); - pub fn SET_HASHTAB(x: SEXP, v: SEXP); - pub fn SET_PRENV(x: SEXP, v: SEXP); - pub fn SET_PRVALUE(x: SEXP, v: SEXP); - pub fn SET_PRCODE(x: SEXP, v: SEXP); - pub fn STDVEC_DATAPTR(x: SEXP) -> *mut ::std::os::raw::c_void; - pub fn IS_GROWABLE(x: SEXP) -> ::std::os::raw::c_int; pub fn SET_GROWABLE_BIT(x: SEXP); - pub fn SET_NAMED(x: SEXP, v: ::std::os::raw::c_int); - #[doc = "used by BIOC::matter; mightbe reasonable to include in API"] - pub fn R_tryWrap(arg1: SEXP) -> SEXP; pub fn R_FlushConsole(); pub fn Rf_onintr(); pub fn Rf_onintrNoResume(); diff --git a/bindings/bindings-macos-x86_64-R4.4.rs b/bindings/bindings-macos-x86_64-R4.4.rs index ded7417d..aa962543 100644 --- a/bindings/bindings-macos-x86_64-R4.4.rs +++ b/bindings/bindings-macos-x86_64-R4.4.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: Homebrew clang version 17.0.6 */ +/* bindgen clang version: Homebrew clang version 18.1.7 */ /* r version: 4.4.0 */ #[repr(C)] diff --git a/bindings/bindings-windows-x86_64-R4.2.rs b/bindings/bindings-windows-x86_64-R4.2.rs index 7b73cd06..b12588ec 100644 --- a/bindings/bindings-windows-x86_64-R4.2.rs +++ b/bindings/bindings-windows-x86_64-R4.2.rs @@ -1,11 +1,9 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: clang version 16.0.6 */ -/* clang-rs version: clang version 16.0.6 */ +/* bindgen clang version: clang version 18.1.6 */ /* r version: 4.2.3 */ -pub const INT_MIN: i32 = -2147483648; pub const SINGLESXP: u32 = 302; pub const R_LEN_T_MAX: u32 = 2147483647; pub const HAVE_F77_UNDERSCORE: u32 = 1; @@ -132,7 +130,6 @@ pub struct _iobuf { } pub type FILE = _iobuf; #[repr(u32)] -#[non_exhaustive] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum Rboolean { #[doc = ", MAYBE"] @@ -175,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, @@ -188,7 +184,6 @@ pub type Rbyte = ::std::os::raw::c_uchar; #[doc = "type for length of (standard, not long) vectors etc"] pub type R_len_t = ::std::os::raw::c_int; #[repr(u32)] -#[non_exhaustive] #[doc = "------ enum_SEXPTYPE -----"] #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] pub enum SEXPTYPE { @@ -257,7 +252,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 { @@ -266,7 +260,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 { @@ -281,7 +274,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, @@ -333,6 +325,24 @@ pub struct R_inpstream_st { pub nat2nat_obj: *mut ::std::os::raw::c_void, pub nat2utf8_obj: *mut ::std::os::raw::c_void, } +pub const SORTED_DECR_NA_1ST: _bindgen_ty_1 = _bindgen_ty_1::SORTED_DECR_NA_1ST; +pub const SORTED_DECR: _bindgen_ty_1 = _bindgen_ty_1::SORTED_DECR; +pub const UNKNOWN_SORTEDNESS: _bindgen_ty_1 = _bindgen_ty_1::UNKNOWN_SORTEDNESS; +pub const SORTED_INCR: _bindgen_ty_1 = _bindgen_ty_1::SORTED_INCR; +pub const SORTED_INCR_NA_1ST: _bindgen_ty_1 = _bindgen_ty_1::SORTED_INCR_NA_1ST; +pub const KNOWN_UNSORTED: _bindgen_ty_1 = _bindgen_ty_1::KNOWN_UNSORTED; +#[repr(i32)] +#[doc = "ALTREP sorting support"] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub enum _bindgen_ty_1 { + SORTED_DECR_NA_1ST = -2, + SORTED_DECR = -1, + #[doc = "INT_MIN is NA_INTEGER!"] + UNKNOWN_SORTEDNESS = -2147483648, + SORTED_INCR = 1, + SORTED_INCR_NA_1ST = 2, + KNOWN_UNSORTED = 0, +} #[doc = "try to allow some type checking"] #[repr(C)] #[derive(Debug, Copy, Clone)] @@ -340,7 +350,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 { @@ -372,8 +381,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, @@ -476,7 +483,6 @@ pub type R_altstring_Is_sorted_method_t = pub type R_altstring_No_NA_method_t = ::std::option::Option ::std::os::raw::c_int>; #[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 { @@ -488,7 +494,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"] @@ -511,7 +516,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 { @@ -520,7 +524,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, @@ -809,7 +812,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 { @@ -838,7 +840,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 { @@ -925,7 +926,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, @@ -938,7 +938,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 { @@ -950,7 +949,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 { @@ -1052,9 +1050,6 @@ extern "C" { arg3: ::std::os::raw::c_int, ); pub fn Rf_setRVector(arg1: *mut f64, arg2: ::std::os::raw::c_int, arg3: f64); - pub fn Rf_StringFalse(arg1: *const ::std::os::raw::c_char) -> Rboolean; - pub fn Rf_StringTrue(arg1: *const ::std::os::raw::c_char) -> Rboolean; - pub fn Rf_isBlankString(arg1: *const ::std::os::raw::c_char) -> Rboolean; #[doc = "These two are guaranteed to use '.' as the decimal point,\nand to accept \"NA\"."] pub fn R_atof(str_: *const ::std::os::raw::c_char) -> f64; pub fn R_strtod(c: *const ::std::os::raw::c_char, end: *mut *mut ::std::os::raw::c_char) @@ -1484,7 +1479,6 @@ extern "C" { pub fn R_tryEval(arg1: SEXP, arg2: SEXP, arg3: *mut ::std::os::raw::c_int) -> SEXP; pub fn R_tryEvalSilent(arg1: SEXP, arg2: SEXP, arg3: *mut ::std::os::raw::c_int) -> SEXP; pub fn R_GetCurrentEnv() -> SEXP; - pub fn Rf_isS4(arg1: SEXP) -> Rboolean; pub fn Rf_asS4(arg1: SEXP, arg2: Rboolean, arg3: ::std::os::raw::c_int) -> SEXP; pub fn Rf_S3Class(arg1: SEXP) -> SEXP; pub fn Rf_isBasicClass(arg1: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int; @@ -1526,8 +1520,6 @@ extern "C" { pub fn R_WeakRefKey(w: SEXP) -> SEXP; pub fn R_WeakRefValue(w: SEXP) -> SEXP; pub fn R_RunWeakRefFinalizer(w: SEXP); - pub fn R_PromiseExpr(arg1: SEXP) -> SEXP; - pub fn R_ClosureExpr(arg1: SEXP) -> SEXP; pub fn R_BytecodeExpr(e: SEXP) -> SEXP; #[doc = "Protected evaluation"] pub fn R_ToplevelExec( @@ -1838,31 +1830,7 @@ extern "C" { #[doc = "stuff that probably shouldn't be in the API but is getting used"] pub fn SET_TYPEOF(x: SEXP, v: ::std::os::raw::c_int); pub fn SET_OBJECT(x: SEXP, v: ::std::os::raw::c_int); - pub fn SET_S4_OBJECT(x: SEXP); - pub fn UNSET_S4_OBJECT(x: SEXP); - pub fn R_curErrorBuf() -> *const ::std::os::raw::c_char; - pub fn IS_SCALAR(x: SEXP, type_: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - pub fn Rf_psmatch( - arg1: *const ::std::os::raw::c_char, - arg2: *const ::std::os::raw::c_char, - arg3: Rboolean, - ) -> Rboolean; - pub fn SETLENGTH(x: SEXP, v: R_xlen_t); - pub fn SET_TRUELENGTH(x: SEXP, v: R_xlen_t); - pub fn SETLEVELS(x: SEXP, v: ::std::os::raw::c_int) -> ::std::os::raw::c_int; - pub fn SET_ENVFLAGS(x: SEXP, v: ::std::os::raw::c_int); - pub fn SET_FRAME(x: SEXP, v: SEXP); - pub fn SET_ENCLOS(x: SEXP, v: SEXP); - pub fn SET_HASHTAB(x: SEXP, v: SEXP); - pub fn SET_PRENV(x: SEXP, v: SEXP); - pub fn SET_PRVALUE(x: SEXP, v: SEXP); - pub fn SET_PRCODE(x: SEXP, v: SEXP); - pub fn STDVEC_DATAPTR(x: SEXP) -> *mut ::std::os::raw::c_void; - pub fn IS_GROWABLE(x: SEXP) -> ::std::os::raw::c_int; pub fn SET_GROWABLE_BIT(x: SEXP); - pub fn SET_NAMED(x: SEXP, v: ::std::os::raw::c_int); - #[doc = "used by BIOC::matter; mightbe reasonable to include in API"] - pub fn R_tryWrap(arg1: SEXP) -> SEXP; #[doc = "C stack limit"] pub static mut R_CStackLimit: usize; pub fn Rf_endEmbeddedR(fatal: ::std::os::raw::c_int); @@ -1888,6 +1856,7 @@ extern "C" { pub fn unif_rand() -> f64; pub fn R_unif_index(arg1: f64) -> f64; pub fn exp_rand() -> f64; + #[doc = "Normal Distribution"] pub fn Rf_dnorm4(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnorm5( arg1: f64, @@ -1911,6 +1880,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ); + #[doc = "Uniform Distribution"] pub fn Rf_dunif(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_punif( arg1: f64, @@ -1927,6 +1897,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_runif(arg1: f64, arg2: f64) -> f64; + #[doc = "Gamma Distribution"] pub fn Rf_dgamma(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pgamma( arg1: f64, @@ -1947,9 +1918,11 @@ extern "C" { pub fn Rf_log1pexp(arg1: f64) -> f64; pub fn Rf_log1mexp(arg1: f64) -> f64; pub fn Rf_lgamma1p(arg1: f64) -> f64; + #[doc = "Compute the log of a sum or difference from logs of terms, i.e.,\n\n log (exp (logx) + exp (logy))\n or log (exp (logx) - exp (logy))\n\n without causing overflows or throwing away too much accuracy:"] pub fn Rf_logspace_add(arg1: f64, arg2: f64) -> f64; pub fn Rf_logspace_sub(arg1: f64, arg2: f64) -> f64; pub fn Rf_logspace_sum(arg1: *const f64, arg2: ::std::os::raw::c_int) -> f64; + #[doc = "Beta Distribution"] pub fn Rf_dbeta(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbeta( arg1: f64, @@ -1966,6 +1939,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbeta(arg1: f64, arg2: f64) -> f64; + #[doc = "Lognormal Distribution"] pub fn Rf_dlnorm(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plnorm( arg1: f64, @@ -1982,6 +1956,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlnorm(arg1: f64, arg2: f64) -> f64; + #[doc = "Chi-squared Distribution"] pub fn Rf_dchisq(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pchisq( arg1: f64, @@ -1996,6 +1971,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rchisq(arg1: f64) -> f64; + #[doc = "Non-central Chi-squared Distribution"] pub fn Rf_dnchisq(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnchisq( arg1: f64, @@ -2012,6 +1988,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnchisq(arg1: f64, arg2: f64) -> f64; + #[doc = "F Distibution"] pub fn Rf_df(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pf( arg1: f64, @@ -2028,6 +2005,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rf(arg1: f64, arg2: f64) -> f64; + #[doc = "Student t Distibution"] pub fn Rf_dt(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pt( arg1: f64, @@ -2042,6 +2020,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rt(arg1: f64) -> f64; + #[doc = "Binomial Distribution"] pub fn Rf_dbinom_raw(x: f64, n: f64, p: f64, q: f64, give_log: ::std::os::raw::c_int) -> f64; pub fn Rf_dbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbinom( @@ -2059,12 +2038,14 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbinom(arg1: f64, arg2: f64) -> f64; + #[doc = "Multinomial Distribution"] pub fn Rf_rmultinom( arg1: ::std::os::raw::c_int, arg2: *mut f64, arg3: ::std::os::raw::c_int, arg4: *mut ::std::os::raw::c_int, ); + #[doc = "Cauchy Distribution"] pub fn Rf_dcauchy(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pcauchy( arg1: f64, @@ -2081,6 +2062,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rcauchy(arg1: f64, arg2: f64) -> f64; + #[doc = "Exponential Distribution"] pub fn Rf_dexp(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pexp( arg1: f64, @@ -2095,6 +2077,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rexp(arg1: f64) -> f64; + #[doc = "Geometric Distribution"] pub fn Rf_dgeom(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pgeom( arg1: f64, @@ -2109,6 +2092,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rgeom(arg1: f64) -> f64; + #[doc = "Hypergeometric Distibution"] pub fn Rf_dhyper( arg1: f64, arg2: f64, @@ -2133,6 +2117,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rhyper(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Negative Binomial Distribution"] pub fn Rf_dnbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnbinom( arg1: f64, @@ -2165,6 +2150,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbinom_mu(arg1: f64, arg2: f64) -> f64; + #[doc = "Poisson Distribution"] pub fn Rf_dpois_raw(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_dpois(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_ppois( @@ -2180,6 +2166,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rpois(arg1: f64) -> f64; + #[doc = "Weibull Distribution"] pub fn Rf_dweibull(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pweibull( arg1: f64, @@ -2196,6 +2183,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rweibull(arg1: f64, arg2: f64) -> f64; + #[doc = "Logistic Distribution"] pub fn Rf_dlogis(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plogis( arg1: f64, @@ -2212,6 +2200,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlogis(arg1: f64, arg2: f64) -> f64; + #[doc = "Non-central Beta Distribution"] pub fn Rf_dnbeta( arg1: f64, arg2: f64, @@ -2236,6 +2225,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbeta(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Non-central F Distribution"] pub fn Rf_dnf(arg1: f64, arg2: f64, arg3: f64, arg4: f64, arg5: ::std::os::raw::c_int) -> f64; pub fn Rf_pnf( arg1: f64, @@ -2253,6 +2243,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Non-central Student t Distribution"] pub fn Rf_dnt(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnt( arg1: f64, @@ -2268,6 +2259,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ) -> f64; + #[doc = "Studentized Range Distribution"] pub fn Rf_ptukey( arg1: f64, arg2: f64, @@ -2284,6 +2276,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Wilcoxon Rank Sum Distribution"] pub fn Rf_dwilcox(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pwilcox( arg1: f64, @@ -2301,6 +2294,7 @@ extern "C" { ) -> f64; pub fn Rf_rwilcox(arg1: f64, arg2: f64) -> f64; pub fn wilcox_free(); + #[doc = "Wilcoxon Signed Rank Distribution"] pub fn Rf_dsignrank(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_psignrank( arg1: f64, @@ -2316,6 +2310,7 @@ extern "C" { ) -> f64; pub fn Rf_rsignrank(arg1: f64) -> f64; pub fn signrank_free(); + #[doc = "Gamma and Related Functions"] pub fn Rf_gammafn(arg1: f64) -> f64; pub fn Rf_lgammafn(arg1: f64) -> f64; pub fn Rf_lgammafn_sign(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64; @@ -2337,6 +2332,7 @@ extern "C" { pub fn Rf_lbeta(arg1: f64, arg2: f64) -> f64; pub fn Rf_choose(arg1: f64, arg2: f64) -> f64; pub fn Rf_lchoose(arg1: f64, arg2: f64) -> f64; + #[doc = "Bessel Functions"] pub fn Rf_bessel_i(arg1: f64, arg2: f64, arg3: f64) -> f64; pub fn Rf_bessel_j(arg1: f64, arg2: f64) -> f64; pub fn Rf_bessel_k(arg1: f64, arg2: f64, arg3: f64) -> f64; @@ -2345,6 +2341,7 @@ extern "C" { pub fn Rf_bessel_j_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; pub fn Rf_bessel_k_ex(arg1: f64, arg2: f64, arg3: f64, arg4: *mut f64) -> f64; pub fn Rf_bessel_y_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; + #[doc = "General Support Functions"] pub fn Rf_imax2( arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int, @@ -2481,15 +2478,22 @@ extern "C" { pub fn R_set_altstring_No_NA_method(cls: R_altrep_class_t, fun: R_altstring_No_NA_method_t); pub fn R_GE_getVersion() -> ::std::os::raw::c_int; pub fn R_GE_checkVersionOrDie(version: ::std::os::raw::c_int); + #[doc = "Properly declared version of devNumber"] pub fn Rf_ndevNumber(arg1: pDevDesc) -> ::std::os::raw::c_int; + #[doc = "How many devices exist ? (>= 1)"] pub fn Rf_NumDevices() -> ::std::os::raw::c_int; #[doc = "Check for an available device slot"] pub fn R_CheckDeviceAvailable(); pub fn R_CheckDeviceAvailableBool() -> Rboolean; + #[doc = "Return the number of the current device."] pub fn Rf_curDevice() -> ::std::os::raw::c_int; + #[doc = "Return the number of the next device."] pub fn Rf_nextDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Return the number of the previous device."] pub fn Rf_prevDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Make the specified device (specified by number) the current device"] pub fn Rf_selectDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Kill device which is identified by number."] pub fn Rf_killDevice(arg1: ::std::os::raw::c_int); pub fn Rf_NoDevices() -> ::std::os::raw::c_int; pub fn Rf_NewFrameConfirm(arg1: pDevDesc); @@ -2507,6 +2511,7 @@ extern "C" { pub static mut R_interrupts_pending: ::std::os::raw::c_int; pub fn Rf_onintr(); pub static mut mbcslocale: Rboolean; + #[doc = "Useful for devices: translates Adobe symbol encoding to UTF-8"] pub fn Rf_AdobeSymbol2utf8( out: *mut ::std::os::raw::c_char, in_: *const ::std::os::raw::c_char, @@ -2524,6 +2529,7 @@ extern "C" { ) -> *const ::std::os::raw::c_char; #[doc = "Translates Unicode point to UTF-8"] pub fn Rf_ucstoutf8(s: *mut ::std::os::raw::c_char, c: ::std::os::raw::c_uint) -> usize; + #[doc = "map DevDesc to enclosing GEDevDesc"] pub fn Rf_desc2GEDesc(dd: pDevDesc) -> pGEDevDesc; pub fn GEdeviceNumber(arg1: pGEDevDesc) -> ::std::os::raw::c_int; pub fn GEgetDevice(arg1: ::std::os::raw::c_int) -> pGEDevDesc; @@ -2553,8 +2559,10 @@ extern "C" { pub fn GEtoDeviceWidth(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEfromDeviceHeight(value: f64, to: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEtoDeviceHeight(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; + #[doc = "Convert an element of a R colour specification (which might be a\nnumber or a string) into an internal colour specification."] pub fn Rf_RGBpar(arg1: SEXP, arg2: ::std::os::raw::c_int) -> rcolor; pub fn Rf_RGBpar3(arg1: SEXP, arg2: ::std::os::raw::c_int, arg3: rcolor) -> rcolor; + #[doc = "Convert an internal colour specification to/from a colour name"] pub fn Rf_col2name(col: rcolor) -> *const ::std::os::raw::c_char; #[doc = "Convert either a name or a #RRGGBB\\[AA\\] string to internal.\nBecause people were using it, it also converts \"1\", \"2\" ...\nto a colour in the palette, and \"0\" to transparent white."] pub fn R_GE_str2col(s: *const ::std::os::raw::c_char) -> rcolor; diff --git a/bindings/bindings-windows-x86_64-R4.3.rs b/bindings/bindings-windows-x86_64-R4.3.rs index ff9fe19b..bbe2df45 100644 --- a/bindings/bindings-windows-x86_64-R4.3.rs +++ b/bindings/bindings-windows-x86_64-R4.3.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: clang version 16.0.6 */ +/* bindgen clang version: clang version 18.1.6 */ /* r version: 4.3.3 */ pub const SINGLESXP: u32 = 302; @@ -1888,6 +1888,7 @@ extern "C" { pub fn unif_rand() -> f64; pub fn R_unif_index(arg1: f64) -> f64; pub fn exp_rand() -> f64; + #[doc = "Normal Distribution"] pub fn Rf_dnorm4(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnorm5( arg1: f64, @@ -1911,6 +1912,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ); + #[doc = "Uniform Distribution"] pub fn Rf_dunif(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_punif( arg1: f64, @@ -1927,6 +1929,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_runif(arg1: f64, arg2: f64) -> f64; + #[doc = "Gamma Distribution"] pub fn Rf_dgamma(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pgamma( arg1: f64, @@ -1947,9 +1950,11 @@ extern "C" { pub fn Rf_log1pexp(arg1: f64) -> f64; pub fn Rf_log1mexp(arg1: f64) -> f64; pub fn Rf_lgamma1p(arg1: f64) -> f64; + #[doc = "Compute the log of a sum or difference from logs of terms, i.e.,\n\n log (exp (logx) + exp (logy))\n or log (exp (logx) - exp (logy))\n\n without causing overflows or throwing away too much accuracy:"] pub fn Rf_logspace_add(arg1: f64, arg2: f64) -> f64; pub fn Rf_logspace_sub(arg1: f64, arg2: f64) -> f64; pub fn Rf_logspace_sum(arg1: *const f64, arg2: ::std::os::raw::c_int) -> f64; + #[doc = "Beta Distribution"] pub fn Rf_dbeta(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbeta( arg1: f64, @@ -1966,6 +1971,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbeta(arg1: f64, arg2: f64) -> f64; + #[doc = "Lognormal Distribution"] pub fn Rf_dlnorm(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plnorm( arg1: f64, @@ -1982,6 +1988,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlnorm(arg1: f64, arg2: f64) -> f64; + #[doc = "Chi-squared Distribution"] pub fn Rf_dchisq(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pchisq( arg1: f64, @@ -1996,6 +2003,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rchisq(arg1: f64) -> f64; + #[doc = "Non-central Chi-squared Distribution"] pub fn Rf_dnchisq(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnchisq( arg1: f64, @@ -2012,6 +2020,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnchisq(arg1: f64, arg2: f64) -> f64; + #[doc = "F Distribution"] pub fn Rf_df(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pf( arg1: f64, @@ -2028,6 +2037,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rf(arg1: f64, arg2: f64) -> f64; + #[doc = "Student t Distribution"] pub fn Rf_dt(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pt( arg1: f64, @@ -2042,6 +2052,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rt(arg1: f64) -> f64; + #[doc = "Binomial Distribution"] pub fn Rf_dbinom_raw(x: f64, n: f64, p: f64, q: f64, give_log: ::std::os::raw::c_int) -> f64; pub fn Rf_dbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbinom( @@ -2059,12 +2070,14 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbinom(arg1: f64, arg2: f64) -> f64; + #[doc = "Multinomial Distribution"] pub fn Rf_rmultinom( arg1: ::std::os::raw::c_int, arg2: *mut f64, arg3: ::std::os::raw::c_int, arg4: *mut ::std::os::raw::c_int, ); + #[doc = "Cauchy Distribution"] pub fn Rf_dcauchy(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pcauchy( arg1: f64, @@ -2081,6 +2094,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rcauchy(arg1: f64, arg2: f64) -> f64; + #[doc = "Exponential Distribution"] pub fn Rf_dexp(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pexp( arg1: f64, @@ -2095,6 +2109,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rexp(arg1: f64) -> f64; + #[doc = "Geometric Distribution"] pub fn Rf_dgeom(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pgeom( arg1: f64, @@ -2109,6 +2124,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rgeom(arg1: f64) -> f64; + #[doc = "Hypergeometric Distribution"] pub fn Rf_dhyper( arg1: f64, arg2: f64, @@ -2133,6 +2149,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rhyper(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Negative Binomial Distribution"] pub fn Rf_dnbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnbinom( arg1: f64, @@ -2165,6 +2182,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbinom_mu(arg1: f64, arg2: f64) -> f64; + #[doc = "Poisson Distribution"] pub fn Rf_dpois_raw(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_dpois(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_ppois( @@ -2180,6 +2198,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rpois(arg1: f64) -> f64; + #[doc = "Weibull Distribution"] pub fn Rf_dweibull(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pweibull( arg1: f64, @@ -2196,6 +2215,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rweibull(arg1: f64, arg2: f64) -> f64; + #[doc = "Logistic Distribution"] pub fn Rf_dlogis(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plogis( arg1: f64, @@ -2212,6 +2232,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlogis(arg1: f64, arg2: f64) -> f64; + #[doc = "Non-central Beta Distribution"] pub fn Rf_dnbeta( arg1: f64, arg2: f64, @@ -2236,6 +2257,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbeta(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Non-central F Distribution"] pub fn Rf_dnf(arg1: f64, arg2: f64, arg3: f64, arg4: f64, arg5: ::std::os::raw::c_int) -> f64; pub fn Rf_pnf( arg1: f64, @@ -2253,6 +2275,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Non-central Student t Distribution"] pub fn Rf_dnt(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnt( arg1: f64, @@ -2268,6 +2291,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ) -> f64; + #[doc = "Studentized Range Distribution"] pub fn Rf_ptukey( arg1: f64, arg2: f64, @@ -2284,6 +2308,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Wilcoxon Rank Sum Distribution"] pub fn Rf_dwilcox(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pwilcox( arg1: f64, @@ -2301,6 +2326,7 @@ extern "C" { ) -> f64; pub fn Rf_rwilcox(arg1: f64, arg2: f64) -> f64; pub fn wilcox_free(); + #[doc = "Wilcoxon Signed Rank Distribution"] pub fn Rf_dsignrank(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_psignrank( arg1: f64, @@ -2316,6 +2342,7 @@ extern "C" { ) -> f64; pub fn Rf_rsignrank(arg1: f64) -> f64; pub fn signrank_free(); + #[doc = "Gamma and Related Functions"] pub fn Rf_gammafn(arg1: f64) -> f64; pub fn Rf_lgammafn(arg1: f64) -> f64; pub fn Rf_lgammafn_sign(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64; @@ -2337,6 +2364,7 @@ extern "C" { pub fn Rf_lbeta(arg1: f64, arg2: f64) -> f64; pub fn Rf_choose(arg1: f64, arg2: f64) -> f64; pub fn Rf_lchoose(arg1: f64, arg2: f64) -> f64; + #[doc = "Bessel Functions"] pub fn Rf_bessel_i(arg1: f64, arg2: f64, arg3: f64) -> f64; pub fn Rf_bessel_j(arg1: f64, arg2: f64) -> f64; pub fn Rf_bessel_k(arg1: f64, arg2: f64, arg3: f64) -> f64; @@ -2345,6 +2373,7 @@ extern "C" { pub fn Rf_bessel_j_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; pub fn Rf_bessel_k_ex(arg1: f64, arg2: f64, arg3: f64, arg4: *mut f64) -> f64; pub fn Rf_bessel_y_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; + #[doc = "General Support Functions"] pub fn Rf_imax2( arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int, @@ -2488,15 +2517,22 @@ extern "C" { pub fn R_set_altlist_Set_elt_method(cls: R_altrep_class_t, fun: R_altlist_Set_elt_method_t); pub fn R_GE_getVersion() -> ::std::os::raw::c_int; pub fn R_GE_checkVersionOrDie(version: ::std::os::raw::c_int); + #[doc = "Properly declared version of devNumber"] pub fn Rf_ndevNumber(arg1: pDevDesc) -> ::std::os::raw::c_int; + #[doc = "How many devices exist ? (>= 1)"] pub fn Rf_NumDevices() -> ::std::os::raw::c_int; #[doc = "Check for an available device slot"] pub fn R_CheckDeviceAvailable(); pub fn R_CheckDeviceAvailableBool() -> Rboolean; + #[doc = "Return the number of the current device."] pub fn Rf_curDevice() -> ::std::os::raw::c_int; + #[doc = "Return the number of the next device."] pub fn Rf_nextDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Return the number of the previous device."] pub fn Rf_prevDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Make the specified device (specified by number) the current device"] pub fn Rf_selectDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Kill device which is identified by number."] pub fn Rf_killDevice(arg1: ::std::os::raw::c_int); pub fn Rf_NoDevices() -> ::std::os::raw::c_int; pub fn Rf_NewFrameConfirm(arg1: pDevDesc); @@ -2514,6 +2550,7 @@ extern "C" { pub static mut R_interrupts_pending: ::std::os::raw::c_int; pub fn Rf_onintr(); pub static mut mbcslocale: Rboolean; + #[doc = "Useful for devices: translates Adobe symbol encoding to UTF-8"] pub fn Rf_AdobeSymbol2utf8( out: *mut ::std::os::raw::c_char, in_: *const ::std::os::raw::c_char, @@ -2531,6 +2568,7 @@ extern "C" { ) -> *const ::std::os::raw::c_char; #[doc = "Translates Unicode point to UTF-8"] pub fn Rf_ucstoutf8(s: *mut ::std::os::raw::c_char, c: ::std::os::raw::c_uint) -> usize; + #[doc = "map DevDesc to enclosing GEDevDesc"] pub fn Rf_desc2GEDesc(dd: pDevDesc) -> pGEDevDesc; pub fn GEdeviceNumber(arg1: pGEDevDesc) -> ::std::os::raw::c_int; pub fn GEgetDevice(arg1: ::std::os::raw::c_int) -> pGEDevDesc; @@ -2560,8 +2598,10 @@ extern "C" { pub fn GEtoDeviceWidth(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEfromDeviceHeight(value: f64, to: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEtoDeviceHeight(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; + #[doc = "Convert an element of a R colour specification (which might be a\nnumber or a string) into an internal colour specification."] pub fn Rf_RGBpar(arg1: SEXP, arg2: ::std::os::raw::c_int) -> rcolor; pub fn Rf_RGBpar3(arg1: SEXP, arg2: ::std::os::raw::c_int, arg3: rcolor) -> rcolor; + #[doc = "Convert an internal colour specification to/from a colour name"] pub fn Rf_col2name(col: rcolor) -> *const ::std::os::raw::c_char; #[doc = "Convert either a name or a #RRGGBB\\[AA\\] string to internal.\nBecause people were using it, it also converts \"1\", \"2\" ...\nto a colour in the palette, and \"0\" to transparent white."] pub fn R_GE_str2col(s: *const ::std::os::raw::c_char) -> rcolor; diff --git a/bindings/bindings-windows-x86_64-R4.4.rs b/bindings/bindings-windows-x86_64-R4.4.rs index bd4828dc..4b8e5165 100644 --- a/bindings/bindings-windows-x86_64-R4.4.rs +++ b/bindings/bindings-windows-x86_64-R4.4.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: clang version 16.0.6 */ +/* bindgen clang version: clang version 18.1.6 */ /* r version: 4.4.0 */ pub const SINGLESXP: u32 = 302; @@ -1890,6 +1890,7 @@ extern "C" { pub fn unif_rand() -> f64; pub fn R_unif_index(arg1: f64) -> f64; pub fn exp_rand() -> f64; + #[doc = "Normal Distribution"] pub fn Rf_dnorm4(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnorm5( arg1: f64, @@ -1913,6 +1914,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ); + #[doc = "Uniform Distribution"] pub fn Rf_dunif(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_punif( arg1: f64, @@ -1929,6 +1931,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_runif(arg1: f64, arg2: f64) -> f64; + #[doc = "Gamma Distribution"] pub fn Rf_dgamma(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pgamma( arg1: f64, @@ -1950,9 +1953,11 @@ extern "C" { pub fn Rf_log1mexp(arg1: f64) -> f64; pub fn Rf_lgamma1p(arg1: f64) -> f64; pub fn Rf_pow1p(arg1: f64, arg2: f64) -> f64; + #[doc = "Compute the log of a sum or difference from logs of terms, i.e.,\n\n log (exp (logx) + exp (logy))\n or log (exp (logx) - exp (logy))\n\n without causing overflows or throwing away too much accuracy:"] pub fn Rf_logspace_add(logx: f64, logy: f64) -> f64; pub fn Rf_logspace_sub(logx: f64, logy: f64) -> f64; pub fn Rf_logspace_sum(arg1: *const f64, arg2: ::std::os::raw::c_int) -> f64; + #[doc = "Beta Distribution"] pub fn Rf_dbeta(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbeta( arg1: f64, @@ -1969,6 +1974,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbeta(arg1: f64, arg2: f64) -> f64; + #[doc = "Lognormal Distribution"] pub fn Rf_dlnorm(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plnorm( arg1: f64, @@ -1985,6 +1991,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlnorm(arg1: f64, arg2: f64) -> f64; + #[doc = "Chi-squared Distribution"] pub fn Rf_dchisq(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pchisq( arg1: f64, @@ -1999,6 +2006,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rchisq(arg1: f64) -> f64; + #[doc = "Non-central Chi-squared Distribution"] pub fn Rf_dnchisq(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnchisq( arg1: f64, @@ -2015,6 +2023,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnchisq(arg1: f64, arg2: f64) -> f64; + #[doc = "F Distribution"] pub fn Rf_df(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pf( arg1: f64, @@ -2031,6 +2040,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rf(arg1: f64, arg2: f64) -> f64; + #[doc = "Student t Distribution"] pub fn Rf_dt(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pt( arg1: f64, @@ -2045,6 +2055,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rt(arg1: f64) -> f64; + #[doc = "Binomial Distribution"] pub fn Rf_dbinom_raw(x: f64, n: f64, p: f64, q: f64, give_log: ::std::os::raw::c_int) -> f64; pub fn Rf_dbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbinom( @@ -2062,12 +2073,14 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbinom(arg1: f64, arg2: f64) -> f64; + #[doc = "Multinomial Distribution"] pub fn Rf_rmultinom( arg1: ::std::os::raw::c_int, arg2: *mut f64, arg3: ::std::os::raw::c_int, arg4: *mut ::std::os::raw::c_int, ); + #[doc = "Cauchy Distribution"] pub fn Rf_dcauchy(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pcauchy( arg1: f64, @@ -2084,6 +2097,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rcauchy(arg1: f64, arg2: f64) -> f64; + #[doc = "Exponential Distribution"] pub fn Rf_dexp(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pexp( arg1: f64, @@ -2098,6 +2112,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rexp(arg1: f64) -> f64; + #[doc = "Geometric Distribution"] pub fn Rf_dgeom(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pgeom( arg1: f64, @@ -2112,6 +2127,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rgeom(arg1: f64) -> f64; + #[doc = "Hypergeometric Distribution"] pub fn Rf_dhyper( arg1: f64, arg2: f64, @@ -2136,6 +2152,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rhyper(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Negative Binomial Distribution"] pub fn Rf_dnbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnbinom( arg1: f64, @@ -2168,6 +2185,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbinom_mu(arg1: f64, arg2: f64) -> f64; + #[doc = "Poisson Distribution"] pub fn Rf_dpois_raw(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_dpois(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_ppois( @@ -2183,6 +2201,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rpois(arg1: f64) -> f64; + #[doc = "Weibull Distribution"] pub fn Rf_dweibull(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pweibull( arg1: f64, @@ -2199,6 +2218,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rweibull(arg1: f64, arg2: f64) -> f64; + #[doc = "Logistic Distribution"] pub fn Rf_dlogis(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plogis( arg1: f64, @@ -2215,6 +2235,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlogis(arg1: f64, arg2: f64) -> f64; + #[doc = "Non-central Beta Distribution"] pub fn Rf_dnbeta( arg1: f64, arg2: f64, @@ -2239,6 +2260,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbeta(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Non-central F Distribution"] pub fn Rf_dnf(arg1: f64, arg2: f64, arg3: f64, arg4: f64, arg5: ::std::os::raw::c_int) -> f64; pub fn Rf_pnf( arg1: f64, @@ -2256,6 +2278,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Non-central Student t Distribution"] pub fn Rf_dnt(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnt( arg1: f64, @@ -2271,6 +2294,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ) -> f64; + #[doc = "Studentized Range Distribution"] pub fn Rf_ptukey( arg1: f64, arg2: f64, @@ -2287,6 +2311,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Wilcoxon Rank Sum Distribution"] pub fn Rf_dwilcox(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pwilcox( arg1: f64, @@ -2304,6 +2329,7 @@ extern "C" { ) -> f64; pub fn Rf_rwilcox(arg1: f64, arg2: f64) -> f64; pub fn wilcox_free(); + #[doc = "Wilcoxon Signed Rank Distribution"] pub fn Rf_dsignrank(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_psignrank( arg1: f64, @@ -2319,6 +2345,7 @@ extern "C" { ) -> f64; pub fn Rf_rsignrank(arg1: f64) -> f64; pub fn signrank_free(); + #[doc = "Gamma and Related Functions"] pub fn Rf_gammafn(arg1: f64) -> f64; pub fn Rf_lgammafn(arg1: f64) -> f64; pub fn Rf_lgammafn_sign(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64; @@ -2340,6 +2367,7 @@ extern "C" { pub fn Rf_lbeta(arg1: f64, arg2: f64) -> f64; pub fn Rf_choose(arg1: f64, arg2: f64) -> f64; pub fn Rf_lchoose(arg1: f64, arg2: f64) -> f64; + #[doc = "Bessel Functions"] pub fn Rf_bessel_i(arg1: f64, arg2: f64, arg3: f64) -> f64; pub fn Rf_bessel_j(arg1: f64, arg2: f64) -> f64; pub fn Rf_bessel_k(arg1: f64, arg2: f64, arg3: f64) -> f64; @@ -2348,6 +2376,7 @@ extern "C" { pub fn Rf_bessel_j_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; pub fn Rf_bessel_k_ex(arg1: f64, arg2: f64, arg3: f64, arg4: *mut f64) -> f64; pub fn Rf_bessel_y_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; + #[doc = "General Support Functions"] pub fn Rf_imax2( arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int, @@ -2491,15 +2520,22 @@ extern "C" { pub fn R_set_altlist_Set_elt_method(cls: R_altrep_class_t, fun: R_altlist_Set_elt_method_t); pub fn R_GE_getVersion() -> ::std::os::raw::c_int; pub fn R_GE_checkVersionOrDie(version: ::std::os::raw::c_int); + #[doc = "Properly declared version of devNumber"] pub fn Rf_ndevNumber(arg1: pDevDesc) -> ::std::os::raw::c_int; + #[doc = "How many devices exist ? (>= 1)"] pub fn Rf_NumDevices() -> ::std::os::raw::c_int; #[doc = "Check for an available device slot"] pub fn R_CheckDeviceAvailable(); pub fn R_CheckDeviceAvailableBool() -> Rboolean; + #[doc = "Return the number of the current device."] pub fn Rf_curDevice() -> ::std::os::raw::c_int; + #[doc = "Return the number of the next device."] pub fn Rf_nextDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Return the number of the previous device."] pub fn Rf_prevDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Make the specified device (specified by number) the current device"] pub fn Rf_selectDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Kill device which is identified by number."] pub fn Rf_killDevice(arg1: ::std::os::raw::c_int); pub fn Rf_NoDevices() -> ::std::os::raw::c_int; pub fn Rf_NewFrameConfirm(arg1: pDevDesc); @@ -2517,6 +2553,7 @@ extern "C" { pub static mut R_interrupts_pending: ::std::os::raw::c_int; pub fn Rf_onintr(); pub static mut mbcslocale: Rboolean; + #[doc = "Useful for devices: translates Adobe symbol encoding to UTF-8"] pub fn Rf_AdobeSymbol2utf8( out: *mut ::std::os::raw::c_char, in_: *const ::std::os::raw::c_char, @@ -2534,6 +2571,7 @@ extern "C" { ) -> *const ::std::os::raw::c_char; #[doc = "Translates Unicode point to UTF-8"] pub fn Rf_ucstoutf8(s: *mut ::std::os::raw::c_char, c: ::std::os::raw::c_uint) -> usize; + #[doc = "map DevDesc to enclosing GEDevDesc"] pub fn Rf_desc2GEDesc(dd: pDevDesc) -> pGEDevDesc; pub fn GEdeviceNumber(arg1: pGEDevDesc) -> ::std::os::raw::c_int; pub fn GEgetDevice(arg1: ::std::os::raw::c_int) -> pGEDevDesc; @@ -2563,8 +2601,10 @@ extern "C" { pub fn GEtoDeviceWidth(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEfromDeviceHeight(value: f64, to: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEtoDeviceHeight(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; + #[doc = "Convert an element of a R colour specification (which might be a\nnumber or a string) into an internal colour specification."] pub fn Rf_RGBpar(arg1: SEXP, arg2: ::std::os::raw::c_int) -> rcolor; pub fn Rf_RGBpar3(arg1: SEXP, arg2: ::std::os::raw::c_int, arg3: rcolor) -> rcolor; + #[doc = "Convert an internal colour specification to/from a colour name"] pub fn Rf_col2name(col: rcolor) -> *const ::std::os::raw::c_char; #[doc = "Convert either a name or a #RRGGBB\\[AA\\] string to internal.\nBecause people were using it, it also converts \"1\", \"2\" ...\nto a colour in the palette, and \"0\" to transparent white."] pub fn R_GE_str2col(s: *const ::std::os::raw::c_char) -> rcolor; diff --git a/bindings/bindings-windows-x86_64-R4.5-devel.rs b/bindings/bindings-windows-x86_64-R4.5-devel.rs index 0abda463..112614da 100644 --- a/bindings/bindings-windows-x86_64-R4.5-devel.rs +++ b/bindings/bindings-windows-x86_64-R4.5-devel.rs @@ -1,7 +1,7 @@ /* automatically generated by rust-bindgen 0.69.4 */ /* libR-sys version: 0.7.0 */ -/* bindgen clang version: clang version 16.0.6 */ +/* bindgen clang version: clang version 18.1.6 */ /* r version: 4.5.0-devel */ pub const SINGLESXP: u32 = 302; @@ -53,9 +53,9 @@ pub const R_MAJOR: &[u8; 2] = b"4\0"; 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"05\0"; -pub const R_DAY: &[u8; 3] = b"10\0"; -pub const R_SVN_REVISION: u32 = 86529; +pub const R_MONTH: &[u8; 3] = b"06\0"; +pub const R_DAY: &[u8; 3] = b"11\0"; +pub const R_SVN_REVISION: u32 = 86723; pub const R_GE_definitions: u32 = 13; pub const R_GE_deviceClip: u32 = 14; pub const R_GE_group: u32 = 15; @@ -1157,6 +1157,8 @@ extern "C" { pub fn Rf_isEnvironment(s: SEXP) -> Rboolean; pub fn Rf_isString(s: SEXP) -> Rboolean; pub fn Rf_isObject(s: SEXP) -> Rboolean; + pub fn MAYBE_SHARED(x: SEXP) -> ::std::os::raw::c_int; + pub fn NO_REFERENCES(x: SEXP) -> ::std::os::raw::c_int; #[doc = "General Cons Cell Attributes"] pub fn ATTRIB(x: SEXP) -> SEXP; pub fn OBJECT(x: SEXP) -> ::std::os::raw::c_int; @@ -1191,6 +1193,7 @@ extern "C" { pub fn SET_VECTOR_ELT(x: SEXP, i: R_xlen_t, v: SEXP) -> SEXP; pub fn STRING_PTR(x: SEXP) -> *mut SEXP; pub fn STRING_PTR_RO(x: SEXP) -> *const SEXP; + pub fn VECTOR_PTR_RO(x: SEXP) -> *const SEXP; pub fn INTEGER_GET_REGION( sx: SEXP, i: R_xlen_t, @@ -1247,6 +1250,10 @@ extern "C" { pub fn SET_FORMALS(x: SEXP, v: SEXP); pub fn SET_BODY(x: SEXP, v: SEXP); pub fn SET_CLOENV(x: SEXP, v: SEXP); + pub fn R_mkClosure(arg1: SEXP, arg2: SEXP, arg3: SEXP) -> SEXP; + pub fn R_ClosureFormals(arg1: SEXP) -> SEXP; + pub fn R_ClosureBody(arg1: SEXP) -> SEXP; + pub fn R_ClosureEnv(arg1: SEXP) -> SEXP; #[doc = "Symbol Access Functions"] pub fn PRINTNAME(x: SEXP) -> SEXP; pub fn SYMVALUE(x: SEXP) -> SEXP; @@ -1257,6 +1264,7 @@ extern "C" { pub fn ENCLOS(x: SEXP) -> SEXP; pub fn HASHTAB(x: SEXP) -> SEXP; pub fn ENVFLAGS(x: SEXP) -> ::std::os::raw::c_int; + pub fn R_ParentEnv(arg1: SEXP) -> SEXP; #[doc = "Promise Access Functions"] pub fn PRCODE(x: SEXP) -> SEXP; pub fn PRENV(x: SEXP) -> SEXP; @@ -1401,6 +1409,7 @@ extern "C" { arg2: ::std::os::raw::c_int, arg3: ::std::os::raw::c_int, ) -> SEXP; + pub fn Rf_allocLang(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocList(arg1: ::std::os::raw::c_int) -> SEXP; pub fn Rf_allocS4Object() -> SEXP; pub fn Rf_allocSExp(arg1: SEXPTYPE) -> SEXP; @@ -1510,12 +1519,6 @@ extern "C" { ce_out: cetype_t, subst: ::std::os::raw::c_int, ) -> *const ::std::os::raw::c_char; - pub fn Rf_reEnc3( - x: *const ::std::os::raw::c_char, - fromcode: *const ::std::os::raw::c_char, - tocode: *const ::std::os::raw::c_char, - subst: ::std::os::raw::c_int, - ) -> *const ::std::os::raw::c_char; #[doc = "Calling a function with arguments evaluated"] pub fn R_forceAndCall(e: SEXP, n: ::std::os::raw::c_int, rho: SEXP) -> SEXP; #[doc = "External pointer interface"] @@ -1674,7 +1677,6 @@ extern "C" { ); pub fn R_Serialize(s: SEXP, ops: R_outpstream_t); pub fn R_Unserialize(ips: R_inpstream_t) -> SEXP; - pub fn R_SerializeInfo(ips: R_inpstream_t) -> SEXP; #[doc = "slot management (in attrib.c)"] pub fn R_do_slot(obj: SEXP, name: SEXP) -> SEXP; pub fn R_do_slot_assign(obj: SEXP, name: SEXP, value: SEXP) -> SEXP; @@ -1705,7 +1707,6 @@ extern "C" { pub fn R_NewPreciousMSet(arg1: ::std::os::raw::c_int) -> SEXP; pub fn R_PreserveInMSet(x: SEXP, mset: SEXP); pub fn R_ReleaseFromMSet(x: SEXP, mset: SEXP); - pub fn R_ReleaseMSet(mset: SEXP, keepSize: ::std::os::raw::c_int); #[doc = "Shutdown actions"] pub fn R_dot_Last(); pub fn R_RunExitFinalizers(); @@ -1734,6 +1735,7 @@ extern "C" { pub fn Rf_elt(arg1: SEXP, arg2: ::std::os::raw::c_int) -> SEXP; pub fn Rf_inherits(arg1: SEXP, arg2: *const ::std::os::raw::c_char) -> Rboolean; pub fn Rf_isArray(arg1: SEXP) -> Rboolean; + pub fn Rf_isDataFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFactor(arg1: SEXP) -> Rboolean; pub fn Rf_isFrame(arg1: SEXP) -> Rboolean; pub fn Rf_isFunction(arg1: SEXP) -> Rboolean; @@ -1879,6 +1881,7 @@ extern "C" { pub fn unif_rand() -> f64; pub fn R_unif_index(arg1: f64) -> f64; pub fn exp_rand() -> f64; + #[doc = "Normal Distribution"] pub fn Rf_dnorm4(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnorm5( arg1: f64, @@ -1902,6 +1905,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ); + #[doc = "Uniform Distribution"] pub fn Rf_dunif(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_punif( arg1: f64, @@ -1918,6 +1922,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_runif(arg1: f64, arg2: f64) -> f64; + #[doc = "Gamma Distribution"] pub fn Rf_dgamma(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pgamma( arg1: f64, @@ -1939,9 +1944,11 @@ extern "C" { pub fn Rf_log1mexp(arg1: f64) -> f64; pub fn Rf_lgamma1p(arg1: f64) -> f64; pub fn Rf_pow1p(arg1: f64, arg2: f64) -> f64; + #[doc = "Compute the log of a sum or difference from logs of terms, i.e.,\n\n log (exp (logx) + exp (logy))\n or log (exp (logx) - exp (logy))\n\n without causing overflows or throwing away too much accuracy:"] pub fn Rf_logspace_add(logx: f64, logy: f64) -> f64; pub fn Rf_logspace_sub(logx: f64, logy: f64) -> f64; pub fn Rf_logspace_sum(arg1: *const f64, arg2: ::std::os::raw::c_int) -> f64; + #[doc = "Beta Distribution"] pub fn Rf_dbeta(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbeta( arg1: f64, @@ -1958,6 +1965,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbeta(arg1: f64, arg2: f64) -> f64; + #[doc = "Lognormal Distribution"] pub fn Rf_dlnorm(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plnorm( arg1: f64, @@ -1974,6 +1982,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlnorm(arg1: f64, arg2: f64) -> f64; + #[doc = "Chi-squared Distribution"] pub fn Rf_dchisq(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pchisq( arg1: f64, @@ -1988,6 +1997,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rchisq(arg1: f64) -> f64; + #[doc = "Non-central Chi-squared Distribution"] pub fn Rf_dnchisq(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnchisq( arg1: f64, @@ -2004,6 +2014,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnchisq(arg1: f64, arg2: f64) -> f64; + #[doc = "F Distribution"] pub fn Rf_df(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pf( arg1: f64, @@ -2020,6 +2031,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rf(arg1: f64, arg2: f64) -> f64; + #[doc = "Student t Distribution"] pub fn Rf_dt(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pt( arg1: f64, @@ -2034,6 +2046,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rt(arg1: f64) -> f64; + #[doc = "Binomial Distribution"] pub fn Rf_dbinom_raw(x: f64, n: f64, p: f64, q: f64, give_log: ::std::os::raw::c_int) -> f64; pub fn Rf_dbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pbinom( @@ -2051,12 +2064,14 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rbinom(arg1: f64, arg2: f64) -> f64; + #[doc = "Multinomial Distribution"] pub fn Rf_rmultinom( arg1: ::std::os::raw::c_int, arg2: *mut f64, arg3: ::std::os::raw::c_int, arg4: *mut ::std::os::raw::c_int, ); + #[doc = "Cauchy Distribution"] pub fn Rf_dcauchy(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pcauchy( arg1: f64, @@ -2073,6 +2088,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rcauchy(arg1: f64, arg2: f64) -> f64; + #[doc = "Exponential Distribution"] pub fn Rf_dexp(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pexp( arg1: f64, @@ -2087,6 +2103,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rexp(arg1: f64) -> f64; + #[doc = "Geometric Distribution"] pub fn Rf_dgeom(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_pgeom( arg1: f64, @@ -2101,6 +2118,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rgeom(arg1: f64) -> f64; + #[doc = "Hypergeometric Distribution"] pub fn Rf_dhyper( arg1: f64, arg2: f64, @@ -2125,6 +2143,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rhyper(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Negative Binomial Distribution"] pub fn Rf_dnbinom(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnbinom( arg1: f64, @@ -2157,6 +2176,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbinom_mu(arg1: f64, arg2: f64) -> f64; + #[doc = "Poisson Distribution"] pub fn Rf_dpois_raw(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_dpois(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_ppois( @@ -2172,6 +2192,7 @@ extern "C" { arg4: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rpois(arg1: f64) -> f64; + #[doc = "Weibull Distribution"] pub fn Rf_dweibull(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pweibull( arg1: f64, @@ -2188,6 +2209,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rweibull(arg1: f64, arg2: f64) -> f64; + #[doc = "Logistic Distribution"] pub fn Rf_dlogis(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_plogis( arg1: f64, @@ -2204,6 +2226,7 @@ extern "C" { arg5: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rlogis(arg1: f64, arg2: f64) -> f64; + #[doc = "Non-central Beta Distribution"] pub fn Rf_dnbeta( arg1: f64, arg2: f64, @@ -2228,6 +2251,7 @@ extern "C" { arg6: ::std::os::raw::c_int, ) -> f64; pub fn Rf_rnbeta(arg1: f64, arg2: f64, arg3: f64) -> f64; + #[doc = "Non-central F Distribution"] pub fn Rf_dnf(arg1: f64, arg2: f64, arg3: f64, arg4: f64, arg5: ::std::os::raw::c_int) -> f64; pub fn Rf_pnf( arg1: f64, @@ -2245,6 +2269,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Non-central Student t Distribution"] pub fn Rf_dnt(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pnt( arg1: f64, @@ -2260,6 +2285,7 @@ extern "C" { arg4: ::std::os::raw::c_int, arg5: ::std::os::raw::c_int, ) -> f64; + #[doc = "Studentized Range Distribution"] pub fn Rf_ptukey( arg1: f64, arg2: f64, @@ -2276,6 +2302,7 @@ extern "C" { arg5: ::std::os::raw::c_int, arg6: ::std::os::raw::c_int, ) -> f64; + #[doc = "Wilcoxon Rank Sum Distribution"] pub fn Rf_dwilcox(arg1: f64, arg2: f64, arg3: f64, arg4: ::std::os::raw::c_int) -> f64; pub fn Rf_pwilcox( arg1: f64, @@ -2293,6 +2320,7 @@ extern "C" { ) -> f64; pub fn Rf_rwilcox(arg1: f64, arg2: f64) -> f64; pub fn wilcox_free(); + #[doc = "Wilcoxon Signed Rank Distribution"] pub fn Rf_dsignrank(arg1: f64, arg2: f64, arg3: ::std::os::raw::c_int) -> f64; pub fn Rf_psignrank( arg1: f64, @@ -2308,6 +2336,7 @@ extern "C" { ) -> f64; pub fn Rf_rsignrank(arg1: f64) -> f64; pub fn signrank_free(); + #[doc = "Gamma and Related Functions"] pub fn Rf_gammafn(arg1: f64) -> f64; pub fn Rf_lgammafn(arg1: f64) -> f64; pub fn Rf_lgammafn_sign(arg1: f64, arg2: *mut ::std::os::raw::c_int) -> f64; @@ -2329,6 +2358,7 @@ extern "C" { pub fn Rf_lbeta(arg1: f64, arg2: f64) -> f64; pub fn Rf_choose(arg1: f64, arg2: f64) -> f64; pub fn Rf_lchoose(arg1: f64, arg2: f64) -> f64; + #[doc = "Bessel Functions"] pub fn Rf_bessel_i(arg1: f64, arg2: f64, arg3: f64) -> f64; pub fn Rf_bessel_j(arg1: f64, arg2: f64) -> f64; pub fn Rf_bessel_k(arg1: f64, arg2: f64, arg3: f64) -> f64; @@ -2337,6 +2367,7 @@ extern "C" { pub fn Rf_bessel_j_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; pub fn Rf_bessel_k_ex(arg1: f64, arg2: f64, arg3: f64, arg4: *mut f64) -> f64; pub fn Rf_bessel_y_ex(arg1: f64, arg2: f64, arg3: *mut f64) -> f64; + #[doc = "General Support Functions"] pub fn Rf_imax2( arg1: ::std::os::raw::c_int, arg2: ::std::os::raw::c_int, @@ -2480,15 +2511,22 @@ extern "C" { pub fn R_set_altlist_Set_elt_method(cls: R_altrep_class_t, fun: R_altlist_Set_elt_method_t); pub fn R_GE_getVersion() -> ::std::os::raw::c_int; pub fn R_GE_checkVersionOrDie(version: ::std::os::raw::c_int); + #[doc = "Properly declared version of devNumber"] pub fn Rf_ndevNumber(arg1: pDevDesc) -> ::std::os::raw::c_int; + #[doc = "How many devices exist ? (>= 1)"] pub fn Rf_NumDevices() -> ::std::os::raw::c_int; #[doc = "Check for an available device slot"] pub fn R_CheckDeviceAvailable(); pub fn R_CheckDeviceAvailableBool() -> Rboolean; + #[doc = "Return the number of the current device."] pub fn Rf_curDevice() -> ::std::os::raw::c_int; + #[doc = "Return the number of the next device."] pub fn Rf_nextDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Return the number of the previous device."] pub fn Rf_prevDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Make the specified device (specified by number) the current device"] pub fn Rf_selectDevice(arg1: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[doc = "Kill device which is identified by number."] pub fn Rf_killDevice(arg1: ::std::os::raw::c_int); pub fn Rf_NoDevices() -> ::std::os::raw::c_int; pub fn Rf_NewFrameConfirm(arg1: pDevDesc); @@ -2506,6 +2544,7 @@ extern "C" { pub static mut R_interrupts_pending: ::std::os::raw::c_int; pub fn Rf_onintr(); pub static mut mbcslocale: Rboolean; + #[doc = "Useful for devices: translates Adobe symbol encoding to UTF-8"] pub fn Rf_AdobeSymbol2utf8( out: *mut ::std::os::raw::c_char, in_: *const ::std::os::raw::c_char, @@ -2523,6 +2562,7 @@ extern "C" { ) -> *const ::std::os::raw::c_char; #[doc = "Translates Unicode point to UTF-8"] pub fn Rf_ucstoutf8(s: *mut ::std::os::raw::c_char, c: ::std::os::raw::c_uint) -> usize; + #[doc = "map DevDesc to enclosing GEDevDesc"] pub fn Rf_desc2GEDesc(dd: pDevDesc) -> pGEDevDesc; pub fn GEdeviceNumber(arg1: pGEDevDesc) -> ::std::os::raw::c_int; pub fn GEgetDevice(arg1: ::std::os::raw::c_int) -> pGEDevDesc; @@ -2552,8 +2592,10 @@ extern "C" { pub fn GEtoDeviceWidth(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEfromDeviceHeight(value: f64, to: GEUnit, dd: pGEDevDesc) -> f64; pub fn GEtoDeviceHeight(value: f64, from: GEUnit, dd: pGEDevDesc) -> f64; + #[doc = "Convert an element of a R colour specification (which might be a\nnumber or a string) into an internal colour specification."] pub fn Rf_RGBpar(arg1: SEXP, arg2: ::std::os::raw::c_int) -> rcolor; pub fn Rf_RGBpar3(arg1: SEXP, arg2: ::std::os::raw::c_int, arg3: rcolor) -> rcolor; + #[doc = "Convert an internal colour specification to/from a colour name"] pub fn Rf_col2name(col: rcolor) -> *const ::std::os::raw::c_char; #[doc = "Convert either a name or a #RRGGBB\\[AA\\] string to internal.\nBecause people were using it, it also converts \"1\", \"2\" ...\nto a colour in the palette, and \"0\" to transparent white."] pub fn R_GE_str2col(s: *const ::std::os::raw::c_char) -> rcolor;