|
1 |
| -/* automatically generated by rust-bindgen 0.65.1 */ |
| 1 | +/* automatically generated by rust-bindgen 0.68.1 */ |
2 | 2 |
|
3 | 3 | pub const ZEND_DEBUG: u32 = 1;
|
4 | 4 | pub const _ZEND_TYPE_NAME_BIT: u32 = 16777216;
|
@@ -109,11 +109,65 @@ pub const CONST_CS: u32 = 0;
|
109 | 109 | pub const CONST_PERSISTENT: u32 = 1;
|
110 | 110 | pub const CONST_NO_FILE_CACHE: u32 = 2;
|
111 | 111 | 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; |
112 | 115 | #[repr(C)]
|
113 | 116 | #[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, |
116 | 120 | }
|
| 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; |
117 | 171 | pub type zend_long = i64;
|
118 | 172 | pub type zend_ulong = u64;
|
119 | 173 | pub type zend_uchar = ::std::os::raw::c_uchar;
|
@@ -487,6 +541,52 @@ pub struct _zend_class_arrayaccess_funcs {
|
487 | 541 | pub zf_offsetunset: *mut zend_function,
|
488 | 542 | }
|
489 | 543 | 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 | +} |
490 | 590 | #[repr(C)]
|
491 | 591 | #[derive(Debug, Copy, Clone)]
|
492 | 592 | pub struct _zend_serialize_data {
|
@@ -1065,15 +1165,7 @@ pub struct _zend_execute_data {
|
1065 | 1165 | pub run_time_cache: *mut *mut ::std::os::raw::c_void,
|
1066 | 1166 | pub extra_named_params: *mut zend_array,
|
1067 | 1167 | }
|
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]; |
1077 | 1169 | pub type zend_executor_globals = _zend_executor_globals;
|
1078 | 1170 | extern "C" {
|
1079 | 1171 | pub static mut executor_globals: zend_executor_globals;
|
@@ -1143,7 +1235,7 @@ pub struct _zend_executor_globals {
|
1143 | 1235 | pub symtable_cache_ptr: *mut *mut zend_array,
|
1144 | 1236 | pub symbol_table: zend_array,
|
1145 | 1237 | pub included_files: HashTable,
|
1146 |
| - pub bailout: *mut jmp_buf, |
| 1238 | + pub bailout: *mut sigjmp_buf, |
1147 | 1239 | pub error_reporting: ::std::os::raw::c_int,
|
1148 | 1240 | pub exit_status: ::std::os::raw::c_int,
|
1149 | 1241 | pub function_table: *mut HashTable,
|
@@ -1279,6 +1371,13 @@ extern "C" {
|
1279 | 1371 | flags: u32,
|
1280 | 1372 | ) -> *mut zend_class_entry;
|
1281 | 1373 | }
|
| 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 | +} |
1282 | 1381 | #[repr(C)]
|
1283 | 1382 | #[derive(Debug, Copy, Clone)]
|
1284 | 1383 | pub struct _zend_vm_stack {
|
|
0 commit comments