Skip to content

Commit 1a8211c

Browse files
authored
chore: Bump Bindgen to 0.68.1 (#271)
1 parent 2d0e587 commit 1a8211c

File tree

2 files changed

+118
-19
lines changed

2 files changed

+118
-19
lines changed

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,15 @@ skeptic = "0.13"
2424

2525
[build-dependencies]
2626
anyhow = "1"
27-
bindgen = "0.65.1"
27+
bindgen = "0.68.1"
2828
cc = "1.0"
2929
skeptic = "0.13"
3030

3131
[target.'cfg(windows)'.build-dependencies]
32-
ureq = { version = "2.4", features = ["native-tls", "gzip"], default-features = false }
32+
ureq = { version = "2.4", features = [
33+
"native-tls",
34+
"gzip",
35+
], default-features = false }
3336
native-tls = "0.2"
3437
zip = "0.6"
3538

@@ -38,10 +41,7 @@ closure = []
3841
embed = []
3942

4043
[workspace]
41-
members = [
42-
"crates/macros",
43-
"crates/cli"
44-
]
44+
members = ["crates/macros", "crates/cli"]
4545

4646
[package.metadata.docs.rs]
4747
rustdoc-args = ["--cfg", "docs"]

docsrs_bindings.rs

Lines changed: 112 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.65.1 */
1+
/* automatically generated by rust-bindgen 0.68.1 */
22

33
pub const ZEND_DEBUG: u32 = 1;
44
pub const _ZEND_TYPE_NAME_BIT: u32 = 16777216;
@@ -109,11 +109,65 @@ pub const CONST_CS: u32 = 0;
109109
pub const CONST_PERSISTENT: u32 = 1;
110110
pub const CONST_NO_FILE_CACHE: u32 = 2;
111111
pub const CONST_DEPRECATED: u32 = 4;
112+
pub type __int64_t = ::std::os::raw::c_longlong;
113+
pub type __darwin_off_t = __int64_t;
114+
pub type fpos_t = __darwin_off_t;
112115
#[repr(C)]
113116
#[derive(Debug, Copy, Clone)]
114-
pub struct __sigset_t {
115-
pub __val: [::std::os::raw::c_ulong; 16usize],
117+
pub struct __sbuf {
118+
pub _base: *mut ::std::os::raw::c_uchar,
119+
pub _size: ::std::os::raw::c_int,
116120
}
121+
#[repr(C)]
122+
#[derive(Debug, Copy, Clone)]
123+
pub struct __sFILEX {
124+
_unused: [u8; 0],
125+
}
126+
#[repr(C)]
127+
#[derive(Debug, Copy, Clone)]
128+
pub struct __sFILE {
129+
pub _p: *mut ::std::os::raw::c_uchar,
130+
pub _r: ::std::os::raw::c_int,
131+
pub _w: ::std::os::raw::c_int,
132+
pub _flags: ::std::os::raw::c_short,
133+
pub _file: ::std::os::raw::c_short,
134+
pub _bf: __sbuf,
135+
pub _lbfsize: ::std::os::raw::c_int,
136+
pub _cookie: *mut ::std::os::raw::c_void,
137+
pub _close: ::std::option::Option<
138+
unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> ::std::os::raw::c_int,
139+
>,
140+
pub _read: ::std::option::Option<
141+
unsafe extern "C" fn(
142+
arg1: *mut ::std::os::raw::c_void,
143+
arg2: *mut ::std::os::raw::c_char,
144+
arg3: ::std::os::raw::c_int,
145+
) -> ::std::os::raw::c_int,
146+
>,
147+
pub _seek: ::std::option::Option<
148+
unsafe extern "C" fn(
149+
arg1: *mut ::std::os::raw::c_void,
150+
arg2: fpos_t,
151+
arg3: ::std::os::raw::c_int,
152+
) -> fpos_t,
153+
>,
154+
pub _write: ::std::option::Option<
155+
unsafe extern "C" fn(
156+
arg1: *mut ::std::os::raw::c_void,
157+
arg2: *const ::std::os::raw::c_char,
158+
arg3: ::std::os::raw::c_int,
159+
) -> ::std::os::raw::c_int,
160+
>,
161+
pub _ub: __sbuf,
162+
pub _extra: *mut __sFILEX,
163+
pub _ur: ::std::os::raw::c_int,
164+
pub _ubuf: [::std::os::raw::c_uchar; 3usize],
165+
pub _nbuf: [::std::os::raw::c_uchar; 1usize],
166+
pub _lb: __sbuf,
167+
pub _blksize: ::std::os::raw::c_int,
168+
pub _offset: fpos_t,
169+
}
170+
pub type FILE = __sFILE;
117171
pub type zend_long = i64;
118172
pub type zend_ulong = u64;
119173
pub type zend_uchar = ::std::os::raw::c_uchar;
@@ -487,6 +541,52 @@ pub struct _zend_class_arrayaccess_funcs {
487541
pub zf_offsetunset: *mut zend_function,
488542
}
489543
pub type zend_class_arrayaccess_funcs = _zend_class_arrayaccess_funcs;
544+
pub type zend_stream_fsizer_t =
545+
::std::option::Option<unsafe extern "C" fn(handle: *mut ::std::os::raw::c_void) -> usize>;
546+
pub type zend_stream_reader_t = ::std::option::Option<
547+
unsafe extern "C" fn(
548+
handle: *mut ::std::os::raw::c_void,
549+
buf: *mut ::std::os::raw::c_char,
550+
len: usize,
551+
) -> isize,
552+
>;
553+
pub type zend_stream_closer_t =
554+
::std::option::Option<unsafe extern "C" fn(handle: *mut ::std::os::raw::c_void)>;
555+
#[repr(C)]
556+
#[derive(Debug, Copy, Clone)]
557+
pub struct _zend_stream {
558+
pub handle: *mut ::std::os::raw::c_void,
559+
pub isatty: ::std::os::raw::c_int,
560+
pub reader: zend_stream_reader_t,
561+
pub fsizer: zend_stream_fsizer_t,
562+
pub closer: zend_stream_closer_t,
563+
}
564+
pub type zend_stream = _zend_stream;
565+
#[repr(C)]
566+
#[derive(Copy, Clone)]
567+
pub struct _zend_file_handle {
568+
pub handle: _zend_file_handle__bindgen_ty_1,
569+
pub filename: *mut zend_string,
570+
pub opened_path: *mut zend_string,
571+
pub type_: zend_uchar,
572+
pub primary_script: bool,
573+
pub in_list: bool,
574+
pub buf: *mut ::std::os::raw::c_char,
575+
pub len: usize,
576+
}
577+
#[repr(C)]
578+
#[derive(Copy, Clone)]
579+
pub union _zend_file_handle__bindgen_ty_1 {
580+
pub fp: *mut FILE,
581+
pub stream: zend_stream,
582+
}
583+
pub type zend_file_handle = _zend_file_handle;
584+
extern "C" {
585+
pub fn zend_stream_init_filename(
586+
handle: *mut zend_file_handle,
587+
filename: *const ::std::os::raw::c_char,
588+
);
589+
}
490590
#[repr(C)]
491591
#[derive(Debug, Copy, Clone)]
492592
pub struct _zend_serialize_data {
@@ -1065,15 +1165,7 @@ pub struct _zend_execute_data {
10651165
pub run_time_cache: *mut *mut ::std::os::raw::c_void,
10661166
pub extra_named_params: *mut zend_array,
10671167
}
1068-
pub type __jmp_buf = [::std::os::raw::c_long; 8usize];
1069-
#[repr(C)]
1070-
#[derive(Debug, Copy, Clone)]
1071-
pub struct __jmp_buf_tag {
1072-
pub __jmpbuf: __jmp_buf,
1073-
pub __mask_was_saved: ::std::os::raw::c_int,
1074-
pub __saved_mask: __sigset_t,
1075-
}
1076-
pub type jmp_buf = [__jmp_buf_tag; 1usize];
1168+
pub type sigjmp_buf = [::std::os::raw::c_int; 49usize];
10771169
pub type zend_executor_globals = _zend_executor_globals;
10781170
extern "C" {
10791171
pub static mut executor_globals: zend_executor_globals;
@@ -1143,7 +1235,7 @@ pub struct _zend_executor_globals {
11431235
pub symtable_cache_ptr: *mut *mut zend_array,
11441236
pub symbol_table: zend_array,
11451237
pub included_files: HashTable,
1146-
pub bailout: *mut jmp_buf,
1238+
pub bailout: *mut sigjmp_buf,
11471239
pub error_reporting: ::std::os::raw::c_int,
11481240
pub exit_status: ::std::os::raw::c_int,
11491241
pub function_table: *mut HashTable,
@@ -1279,6 +1371,13 @@ extern "C" {
12791371
flags: u32,
12801372
) -> *mut zend_class_entry;
12811373
}
1374+
extern "C" {
1375+
pub fn zend_eval_string(
1376+
str_: *const ::std::os::raw::c_char,
1377+
retval_ptr: *mut zval,
1378+
string_name: *const ::std::os::raw::c_char,
1379+
) -> zend_result;
1380+
}
12821381
#[repr(C)]
12831382
#[derive(Debug, Copy, Clone)]
12841383
pub struct _zend_vm_stack {

0 commit comments

Comments
 (0)