1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-13 17:07:45 +00:00

Revert "Fix doctests trying to use the Oodle feature"

This reverts commit e6dfdce38a.
This commit is contained in:
Joshua Goins 2025-07-12 07:56:41 -04:00
parent ae5e168f2d
commit 7d632fe04c

View file

@ -6,7 +6,7 @@
use std::{ffi::c_void, ptr::null}; use std::{ffi::c_void, ptr::null};
#[cfg(all(not(doc), feature = "oodle"))] #[cfg(feature = "oodle")]
#[cfg_attr(windows, link(name = "oodle-network-shared", kind = "raw-dylib"))] #[cfg_attr(windows, link(name = "oodle-network-shared", kind = "raw-dylib"))]
#[cfg_attr(not(windows), link(name = "oodle-network-shared"))] #[cfg_attr(not(windows), link(name = "oodle-network-shared"))]
unsafe extern "C" { unsafe extern "C" {
@ -44,17 +44,17 @@ unsafe extern "C" {
} }
// dummy functions for CI mostly // dummy functions for CI mostly
#[cfg(any(doc, not(feature = "oodle")))] #[cfg(not(feature = "oodle"))]
pub fn OodleNetwork1TCP_State_Size() -> isize { pub fn OodleNetwork1TCP_State_Size() -> isize {
panic!("Something is trying to use Oodle but the feature isn't enabled!") panic!("Something is trying to use Oodle but the feature isn't enabled!")
} }
#[cfg(any(doc, not(feature = "oodle")))] #[cfg(not(feature = "oodle"))]
pub fn OodleNetwork1_Shared_Size(htbits: i32) -> isize { pub fn OodleNetwork1_Shared_Size(htbits: i32) -> isize {
panic!("Something is trying to use Oodle but the feature isn't enabled!") panic!("Something is trying to use Oodle but the feature isn't enabled!")
} }
#[cfg(any(doc, not(feature = "oodle")))] #[cfg(not(feature = "oodle"))]
pub fn OodleNetwork1_Shared_SetWindow( pub fn OodleNetwork1_Shared_SetWindow(
shared: *mut c_void, shared: *mut c_void,
htbits: i32, htbits: i32,
@ -64,7 +64,7 @@ pub fn OodleNetwork1_Shared_SetWindow(
panic!("Something is trying to use Oodle but the feature isn't enabled!") panic!("Something is trying to use Oodle but the feature isn't enabled!")
} }
#[cfg(any(doc, not(feature = "oodle")))] #[cfg(not(feature = "oodle"))]
pub fn OodleNetwork1TCP_Train( pub fn OodleNetwork1TCP_Train(
state: *mut c_void, state: *mut c_void,
shared: *const c_void, shared: *const c_void,
@ -75,7 +75,7 @@ pub fn OodleNetwork1TCP_Train(
panic!("Something is trying to use Oodle but the feature isn't enabled!") panic!("Something is trying to use Oodle but the feature isn't enabled!")
} }
#[cfg(any(doc, not(feature = "oodle")))] #[cfg(not(feature = "oodle"))]
pub fn OodleNetwork1TCP_Decode( pub fn OodleNetwork1TCP_Decode(
state: *mut c_void, state: *mut c_void,
shared: *const c_void, shared: *const c_void,
@ -87,7 +87,7 @@ pub fn OodleNetwork1TCP_Decode(
panic!("Something is trying to use Oodle but the feature isn't enabled!") panic!("Something is trying to use Oodle but the feature isn't enabled!")
} }
#[cfg(any(doc, not(feature = "oodle")))] #[cfg(not(feature = "oodle"))]
pub fn OodleNetwork1TCP_Encode( pub fn OodleNetwork1TCP_Encode(
state: *mut c_void, state: *mut c_void,
shared: *const c_void, shared: *const c_void,
@ -98,7 +98,7 @@ pub fn OodleNetwork1TCP_Encode(
panic!("Something is trying to use Oodle but the feature isn't enabled!") panic!("Something is trying to use Oodle but the feature isn't enabled!")
} }
#[cfg(any(doc, not(feature = "oodle")))] #[cfg(not(feature = "oodle"))]
pub fn OodleNetwork1_CompressedBufferSizeNeeded(rawLen: isize) -> isize { pub fn OodleNetwork1_CompressedBufferSizeNeeded(rawLen: isize) -> isize {
panic!("Something is trying to use Oodle but the feature isn't enabled!") panic!("Something is trying to use Oodle but the feature isn't enabled!")
} }