1 #[cfg(feature = "generate")] 2 mod bindgened; 3 4 #[cfg(feature = "generate")] 5 pub use bindgened::*; 6 7 #[cfg(not(feature = "generate"))] 8 #[allow(non_upper_case_globals)] 9 #[allow(non_camel_case_types)] 10 #[allow(non_snake_case)] 11 #[allow(clippy::all)] 12 mod ffi; 13 14 #[cfg(not(feature = "generate"))] 15 pub use self::ffi::*; 16 17 // backfill types from the old hand-written bindings: 18 19 pub type OnigSyntaxBehavior = ::std::os::raw::c_uint; 20 pub type OnigSyntaxOp = ::std::os::raw::c_uint; 21 pub type OnigSyntaxOp2 = ::std::os::raw::c_uint; 22 23 #[test] test_is_linked()24fn test_is_linked() { 25 unsafe { 26 assert!(!onig_copyright().is_null()); 27 assert!(!onig_version().is_null()); 28 } 29 } 30