1
- /* automatically generated by rust-bindgen 0.60.1 */
1
+ /* automatically generated by rust-bindgen 0.63.0 */
2
2
3
3
pub const ZEND_DEBUG : u32 = 1 ;
4
4
pub const _ZEND_TYPE_NAME_BIT: u32 = 16777216 ;
@@ -88,8 +88,11 @@ pub const CONST_CS: u32 = 0;
88
88
pub const CONST_PERSISTENT : u32 = 1 ;
89
89
pub const CONST_NO_FILE_CACHE : u32 = 2 ;
90
90
pub const CONST_DEPRECATED : u32 = 4 ;
91
- pub type __darwin_size_t = :: std:: os:: raw:: c_ulong ;
92
- pub type size_t = __darwin_size_t ;
91
+ #[ repr( C ) ]
92
+ #[ derive( Debug , Copy , Clone ) ]
93
+ pub struct __sigset_t {
94
+ pub __val : [ :: std:: os:: raw:: c_ulong ; 16usize ] ,
95
+ }
93
96
pub type zend_long = i64 ;
94
97
pub type zend_ulong = u64 ;
95
98
pub type zend_uchar = :: std:: os:: raw:: c_uchar ;
@@ -200,7 +203,7 @@ pub struct _zend_refcounted {
200
203
pub struct _zend_string {
201
204
pub gc : zend_refcounted_h ,
202
205
pub h : zend_ulong ,
203
- pub len : size_t ,
206
+ pub len : usize ,
204
207
pub val : [ :: std:: os:: raw:: c_char ; 1usize ] ,
205
208
}
206
209
#[ repr( C ) ]
@@ -282,7 +285,7 @@ pub struct _zend_ast_ref {
282
285
}
283
286
extern "C" {
284
287
pub fn _emalloc (
285
- size : size_t ,
288
+ size : usize ,
286
289
__zend_filename : * const :: std:: os:: raw:: c_char ,
287
290
__zend_lineno : u32 ,
288
291
__zend_orig_filename : * const :: std:: os:: raw:: c_char ,
@@ -299,12 +302,12 @@ extern "C" {
299
302
) ;
300
303
}
301
304
extern "C" {
302
- pub fn __zend_malloc ( len : size_t ) -> * mut :: std:: os:: raw:: c_void ;
305
+ pub fn __zend_malloc ( len : usize ) -> * mut :: std:: os:: raw:: c_void ;
303
306
}
304
307
pub type zend_string_init_interned_func_t = :: std:: option:: Option <
305
308
unsafe extern "C" fn (
306
309
str_ : * const :: std:: os:: raw:: c_char ,
307
- size : size_t ,
310
+ size : usize ,
308
311
permanent : bool ,
309
312
) -> * mut zend_string ,
310
313
> ;
@@ -318,7 +321,7 @@ extern "C" {
318
321
pub fn zend_hash_str_update (
319
322
ht : * mut HashTable ,
320
323
key : * const :: std:: os:: raw:: c_char ,
321
- len : size_t ,
324
+ len : usize ,
322
325
pData : * mut zval ,
323
326
) -> * mut zval ;
324
327
}
@@ -333,7 +336,7 @@ extern "C" {
333
336
pub fn zend_hash_str_del (
334
337
ht : * mut HashTable ,
335
338
key : * const :: std:: os:: raw:: c_char ,
336
- len : size_t ,
339
+ len : usize ,
337
340
) -> zend_result ;
338
341
}
339
342
extern "C" {
@@ -343,7 +346,7 @@ extern "C" {
343
346
pub fn zend_hash_str_find (
344
347
ht : * const HashTable ,
345
348
key : * const :: std:: os:: raw:: c_char ,
346
- len : size_t ,
349
+ len : usize ,
347
350
) -> * mut zval ;
348
351
}
349
352
extern "C" {
@@ -546,7 +549,7 @@ pub struct _zend_class_entry {
546
549
unsafe extern "C" fn (
547
550
object : * mut zval ,
548
551
buffer : * mut * mut :: std:: os:: raw:: c_uchar ,
549
- buf_len : * mut size_t ,
552
+ buf_len : * mut usize ,
550
553
data : * mut zend_serialize_data ,
551
554
) -> :: std:: os:: raw:: c_int ,
552
555
> ,
@@ -555,7 +558,7 @@ pub struct _zend_class_entry {
555
558
object : * mut zval ,
556
559
ce : * mut zend_class_entry ,
557
560
buf : * const :: std:: os:: raw:: c_uchar ,
558
- buf_len : size_t ,
561
+ buf_len : usize ,
559
562
data : * mut zend_unserialize_data ,
560
563
) -> :: std:: os:: raw:: c_int ,
561
564
> ,
@@ -980,7 +983,15 @@ pub struct _zend_execute_data {
980
983
pub run_time_cache : * mut * mut :: std:: os:: raw:: c_void ,
981
984
pub extra_named_params : * mut zend_array ,
982
985
}
983
- pub type sigjmp_buf = [ :: std:: os:: raw:: c_int ; 49usize ] ;
986
+ pub type __jmp_buf = [ :: std:: os:: raw:: c_long ; 8usize ] ;
987
+ #[ repr( C ) ]
988
+ #[ derive( Debug , Copy , Clone ) ]
989
+ pub struct __jmp_buf_tag {
990
+ pub __jmpbuf : __jmp_buf ,
991
+ pub __mask_was_saved : :: std:: os:: raw:: c_int ,
992
+ pub __saved_mask : __sigset_t ,
993
+ }
994
+ pub type jmp_buf = [ __jmp_buf_tag ; 1usize ] ;
984
995
pub type zend_executor_globals = _zend_executor_globals ;
985
996
extern "C" {
986
997
pub static mut executor_globals: zend_executor_globals ;
@@ -1041,7 +1052,7 @@ pub struct _zend_executor_globals {
1041
1052
pub symtable_cache_ptr : * mut * mut zend_array ,
1042
1053
pub symbol_table : zend_array ,
1043
1054
pub included_files : HashTable ,
1044
- pub bailout : * mut sigjmp_buf ,
1055
+ pub bailout : * mut jmp_buf ,
1045
1056
pub error_reporting : :: std:: os:: raw:: c_int ,
1046
1057
pub exit_status : :: std:: os:: raw:: c_int ,
1047
1058
pub function_table : * mut HashTable ,
@@ -1050,7 +1061,7 @@ pub struct _zend_executor_globals {
1050
1061
pub vm_stack_top : * mut zval ,
1051
1062
pub vm_stack_end : * mut zval ,
1052
1063
pub vm_stack : zend_vm_stack ,
1053
- pub vm_stack_page_size : size_t ,
1064
+ pub vm_stack_page_size : usize ,
1054
1065
pub current_execute_data : * mut _zend_execute_data ,
1055
1066
pub fake_scope : * mut zend_class_entry ,
1056
1067
pub jit_trace_num : u32 ,
@@ -1147,7 +1158,7 @@ pub struct _zend_module_entry {
1147
1158
> ,
1148
1159
pub info_func : :: std:: option:: Option < unsafe extern "C" fn ( zend_module : * mut zend_module_entry ) > ,
1149
1160
pub version : * const :: std:: os:: raw:: c_char ,
1150
- pub globals_size : size_t ,
1161
+ pub globals_size : usize ,
1151
1162
pub globals_ptr : * mut :: std:: os:: raw:: c_void ,
1152
1163
pub globals_ctor :
1153
1164
:: std:: option:: Option < unsafe extern "C" fn ( global : * mut :: std:: os:: raw:: c_void ) > ,
@@ -1209,7 +1220,7 @@ extern "C" {
1209
1220
pub fn zend_declare_property (
1210
1221
ce : * mut zend_class_entry ,
1211
1222
name : * const :: std:: os:: raw:: c_char ,
1212
- name_length : size_t ,
1223
+ name_length : usize ,
1213
1224
property : * mut zval ,
1214
1225
access_type : :: std:: os:: raw:: c_int ,
1215
1226
) ;
@@ -1218,7 +1229,7 @@ extern "C" {
1218
1229
pub fn zend_declare_class_constant (
1219
1230
ce : * mut zend_class_entry ,
1220
1231
name : * const :: std:: os:: raw:: c_char ,
1221
- name_length : size_t ,
1232
+ name_length : usize ,
1222
1233
value : * mut zval ,
1223
1234
) ;
1224
1235
}
@@ -1284,7 +1295,7 @@ extern "C" {
1284
1295
pub fn zend_wrong_parameters_count_error ( min_num_args : u32 , max_num_args : u32 ) ;
1285
1296
}
1286
1297
extern "C" {
1287
- pub fn php_printf ( format : * const :: std:: os:: raw:: c_char , ...) -> size_t ;
1298
+ pub fn php_printf ( format : * const :: std:: os:: raw:: c_char , ...) -> usize ;
1288
1299
}
1289
1300
#[ repr( C ) ]
1290
1301
#[ derive( Debug , Copy , Clone ) ]
@@ -1316,7 +1327,7 @@ pub struct _zend_ini_entry {
1316
1327
extern "C" {
1317
1328
pub fn zend_register_bool_constant (
1318
1329
name : * const :: std:: os:: raw:: c_char ,
1319
- name_len : size_t ,
1330
+ name_len : usize ,
1320
1331
bval : bool ,
1321
1332
flags : :: std:: os:: raw:: c_int ,
1322
1333
module_number : :: std:: os:: raw:: c_int ,
@@ -1325,7 +1336,7 @@ extern "C" {
1325
1336
extern "C" {
1326
1337
pub fn zend_register_long_constant (
1327
1338
name : * const :: std:: os:: raw:: c_char ,
1328
- name_len : size_t ,
1339
+ name_len : usize ,
1329
1340
lval : zend_long ,
1330
1341
flags : :: std:: os:: raw:: c_int ,
1331
1342
module_number : :: std:: os:: raw:: c_int ,
@@ -1334,7 +1345,7 @@ extern "C" {
1334
1345
extern "C" {
1335
1346
pub fn zend_register_double_constant (
1336
1347
name : * const :: std:: os:: raw:: c_char ,
1337
- name_len : size_t ,
1348
+ name_len : usize ,
1338
1349
dval : f64 ,
1339
1350
flags : :: std:: os:: raw:: c_int ,
1340
1351
module_number : :: std:: os:: raw:: c_int ,
@@ -1343,7 +1354,7 @@ extern "C" {
1343
1354
extern "C" {
1344
1355
pub fn zend_register_string_constant (
1345
1356
name : * const :: std:: os:: raw:: c_char ,
1346
- name_len : size_t ,
1357
+ name_len : usize ,
1347
1358
strval : * const :: std:: os:: raw:: c_char ,
1348
1359
flags : :: std:: os:: raw:: c_int ,
1349
1360
module_number : :: std:: os:: raw:: c_int ,
0 commit comments