Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/nss-rs/src/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  exp.rs

  Sprache: Rust
 

// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[macro_export]
macro_rules! experimental_api {
    ( $n:ident ( $( $a:ident : $t:ty ),* $(,)? ) ) => {
        #[expect(non_snake_case, reason = "Inherent in macro use.")]
        #[allow(clippy::allow_attributes, clippy::too_many_arguments, reason = "Inherent in macro use.")]
        #[allow(clippy::allow_attributes, clippy::missing_safety_doc, reason = "Inherent in macro use.")]
        #[allow(clippy::allow_attributes, clippy::missing_errors_doc, reason = "Inherent in macro use.")]
        pub unsafe fn $n ( $( $a : $t ),* ) -> Result<(), $crate::err::Error> { unsafe {
            struct ExperimentalAPI(*mut std::ffi::c_void);
            unsafe impl Send for ExperimentalAPI {}
            unsafe impl Sync for ExperimentalAPI {}
            static EXP_API: ::std::sync::OnceLock<ExperimentalAPI> = ::std::sync::OnceLock::new();
            let f = EXP_API.get_or_init(|| {
                const EXP_FUNCTION: &str = stringify!($n);
                let Ok(n) = ::std::ffi::CString::new(EXP_FUNCTION) else { return ExperimentalAPI(std::ptr::null_mut()); };
                ExperimentalAPI($crate::ssl::SSL_GetExperimentalAPI(n.as_ptr()))
            });
            if f.0.is_null() {
                return Err($crate::err::Error::Internal);
            }
            let f: unsafe extern "C" fn( $( $t ),* ) -> $crate::SECStatus = ::std::mem::transmute(f.0);
            let rv = f( $( $a ),* );
            $crate::err::secstatus_to_res(rv)
        }}
    };
}

Messung V0.5 in Prozent
C=91 H=91 G=90

¤ Dauer der Verarbeitung: 0.16 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.