Skip to main content

tiny_regex/
bindings.rs

1// Generated by rust-bindgen 0.70.1 from src/c_src/re.h.
2// To regenerate: bindgen src/c_src/re.h --use-core \
3//   --allowlist-type regex_t --allowlist-function re_compile --allowlist-function re_matchp
4
5#[repr(C)]
6#[derive(Copy, Clone)]
7pub struct regex_t {
8    pub type_: ::core::ffi::c_uchar,
9    pub u: regex_t__bindgen_ty_1,
10}
11
12#[repr(C)]
13#[derive(Copy, Clone)]
14pub union regex_t__bindgen_ty_1 {
15    pub ch: ::core::ffi::c_uchar,
16    pub ccl: usize,
17}
18
19pub type re_t = *const regex_t;
20
21extern "C" {
22    pub fn re_compile(
23        re_compiled: *mut regex_t,
24        size: usize,
25        ccl_buf: *mut ::core::ffi::c_uchar,
26        ccl_size: usize,
27        pattern: *const ::core::ffi::c_char,
28    ) -> usize;
29}
30
31extern "C" {
32    pub fn re_matchp(
33        pattern: re_t,
34        ccl_buf: *const ::core::ffi::c_uchar,
35        text: *const ::core::ffi::c_char,
36        matchlength: *mut ::core::ffi::c_int,
37        memo: *mut ::core::ffi::c_uchar,
38        memo_bytes: usize,
39        memo_stride: usize,
40    ) -> ::core::ffi::c_int;
41}