Lines Matching refs:kind
62 zend_ffi_tag_kind kind; member
97 zend_ffi_type_kind kind; member
104 zend_ffi_type_kind kind; member
142 zend_ffi_symbol_kind kind; member
263 } else if (dst_type->kind == src_type->kind) { in zend_ffi_is_compatible_type()
264 if (dst_type->kind < ZEND_FFI_TYPE_POINTER) { in zend_ffi_is_compatible_type()
266 } else if (dst_type->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_is_compatible_type()
269 if (dst_type->kind == ZEND_FFI_TYPE_VOID || in zend_ffi_is_compatible_type()
270 src_type->kind == ZEND_FFI_TYPE_VOID) { in zend_ffi_is_compatible_type()
273 } else if (dst_type->kind == ZEND_FFI_TYPE_ARRAY && in zend_ffi_is_compatible_type()
281 } else if (dst_type->kind == ZEND_FFI_TYPE_POINTER && in zend_ffi_is_compatible_type()
282 src_type->kind == ZEND_FFI_TYPE_ARRAY) { in zend_ffi_is_compatible_type()
285 if (dst_type->kind == ZEND_FFI_TYPE_VOID) { in zend_ffi_is_compatible_type()
301 switch (ZEND_FFI_TYPE(field->type)->kind) { in zend_ffi_face_struct_add_fields()
382 zend_ffi_type_kind kind = type->kind; in zend_ffi_get_type() local
385 switch (kind) { in zend_ffi_get_type()
419 kind = type->enumeration.kind; in zend_ffi_get_type()
436 (type->kind < ZEND_FFI_TYPE_POINTER) ? in zend_ffi_cdata_to_zval_slow()
466 (type->kind < ZEND_FFI_TYPE_POINTER) ? in zend_ffi_cdata_to_zval_slow_ret()
471 if (type->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_to_zval_slow_ret()
474 } else if (type->kind == ZEND_FFI_TYPE_STRUCT) { in zend_ffi_cdata_to_zval_slow_ret()
488 zend_ffi_type_kind kind = type->kind; in zend_ffi_cdata_to_zval() local
491 switch (kind) { in zend_ffi_cdata_to_zval()
534 kind = type->enumeration.kind; in zend_ffi_cdata_to_zval()
543 …} else if ((type->attr & ZEND_FFI_ATTR_CONST) && ZEND_FFI_TYPE(type->pointer.type)->kind == ZEND_F… in zend_ffi_cdata_to_zval()
621 if (ZEND_FFI_TYPE(field->type)->kind == ZEND_FFI_TYPE_CHAR in zend_ffi_bit_field_to_zval()
622 || ZEND_FFI_TYPE(field->type)->kind == ZEND_FFI_TYPE_SINT8 in zend_ffi_bit_field_to_zval()
623 || ZEND_FFI_TYPE(field->type)->kind == ZEND_FFI_TYPE_SINT16 in zend_ffi_bit_field_to_zval()
624 || ZEND_FFI_TYPE(field->type)->kind == ZEND_FFI_TYPE_SINT32 in zend_ffi_bit_field_to_zval()
625 || ZEND_FFI_TYPE(field->type)->kind == ZEND_FFI_TYPE_SINT64) { in zend_ffi_bit_field_to_zval()
685 zend_ffi_type_kind kind = type->kind; in zend_ffi_zval_to_cdata() local
688 switch (kind) { in zend_ffi_zval_to_cdata()
749 kind = type->enumeration.kind; in zend_ffi_zval_to_cdata()
759 if (ZEND_FFI_TYPE(cdata->type)->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_zval_to_cdata()
770 } else if (ZEND_FFI_TYPE(cdata->type)->kind != ZEND_FFI_TYPE_POINTER in zend_ffi_zval_to_cdata()
780 } else if (ZEND_FFI_TYPE(type->pointer.type)->kind == ZEND_FFI_TYPE_FUNC) { in zend_ffi_zval_to_cdata()
925 if (ret_type->kind != ZEND_FFI_TYPE_VOID) { in zend_ffi_callback_trampoline()
1092 zend_ffi_type_kind kind = ctype->kind; in zend_ffi_cdata_cast_object() local
1095 switch (kind) { in zend_ffi_cdata_cast_object()
1138 kind = ctype->enumeration.kind; in zend_ffi_cdata_cast_object()
1144 …} else if ((ctype->attr & ZEND_FFI_ATTR_CONST) && ZEND_FFI_TYPE(ctype->pointer.type)->kind == ZEND… in zend_ffi_cdata_cast_object()
1173 if (type->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_read_field()
1176 if (UNEXPECTED(type->kind != ZEND_FFI_TYPE_STRUCT)) { in zend_ffi_cdata_read_field()
1177 if (UNEXPECTED(type->kind != ZEND_FFI_TYPE_STRUCT)) { in zend_ffi_cdata_read_field()
1195 if (ZEND_FFI_TYPE(cdata->type)->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_read_field()
1222 && field_type->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_read_field()
1246 if (type->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_write_field()
1249 if (UNEXPECTED(type->kind != ZEND_FFI_TYPE_STRUCT)) { in zend_ffi_cdata_write_field()
1250 if (UNEXPECTED(type->kind != ZEND_FFI_TYPE_STRUCT)) { in zend_ffi_cdata_write_field()
1268 if (ZEND_FFI_TYPE(cdata->type)->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_write_field()
1315 if (EXPECTED(type->kind == ZEND_FFI_TYPE_ARRAY)) { in zend_ffi_cdata_read_dim()
1328 && dim_type->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_read_dim()
1339 } else if (EXPECTED(type->kind == ZEND_FFI_TYPE_POINTER)) { in zend_ffi_cdata_read_dim()
1345 && dim_type->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_read_dim()
1378 if (EXPECTED(type->kind == ZEND_FFI_TYPE_ARRAY)) { in zend_ffi_cdata_write_dim()
1394 } else if (EXPECTED(type->kind == ZEND_FFI_TYPE_POINTER)) { in zend_ffi_cdata_write_dim()
1452 switch (type->kind) { in zend_ffi_ctype_name()
1591 if (type->kind == ZEND_FFI_TYPE_STRUCT) { in zend_ffi_return_unsupported()
1593 } else if (type->kind == ZEND_FFI_TYPE_ARRAY) { in zend_ffi_return_unsupported()
1604 if (type->kind == ZEND_FFI_TYPE_STRUCT) { in zend_ffi_pass_unsupported()
1606 } else if (type->kind == ZEND_FFI_TYPE_ARRAY) { in zend_ffi_pass_unsupported()
1699 if (type1->kind == ZEND_FFI_TYPE_POINTER && type2->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_compare_objects()
1720 if (type->kind != ZEND_FFI_TYPE_ARRAY) { in zend_ffi_cdata_count_elements()
1737 if (base_type->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_add()
1755 new_type->kind = ZEND_FFI_TYPE_POINTER; in zend_ffi_add()
1796 if (type1->kind == ZEND_FFI_TYPE_POINTER || type1->kind == ZEND_FFI_TYPE_ARRAY) { in zend_ffi_cdata_do_operation()
1809 if (type2->kind == ZEND_FFI_TYPE_POINTER || type2->kind == ZEND_FFI_TYPE_ARRAY) { in zend_ffi_cdata_do_operation()
1813 if (type1->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_do_operation()
1820 if (type2->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_do_operation()
1846 if (type2->kind == ZEND_FFI_TYPE_POINTER || type2->kind == ZEND_FFI_TYPE_ARRAY) { in zend_ffi_cdata_do_operation()
1899 && dim_type->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_it_get_current_data()
1949 if (type->kind != ZEND_FFI_TYPE_ARRAY) { in zend_ffi_cdata_get_iterator()
1985 switch (type->kind) { in zend_ffi_cdata_get_debug_info()
2017 } else if (ZEND_FFI_TYPE(type->pointer.type)->kind == ZEND_FFI_TYPE_VOID) { in zend_ffi_cdata_get_debug_info()
2076 if (type->kind != ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_get_closure()
2083 if (type->kind != ZEND_FFI_TYPE_FUNC) { in zend_ffi_cdata_get_closure()
2159 } else if (type1->kind == type2->kind) { in zend_ffi_is_same_type()
2160 if (type1->kind < ZEND_FFI_TYPE_POINTER) { in zend_ffi_is_same_type()
2162 } else if (type1->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_is_same_type()
2165 if (type1->kind == ZEND_FFI_TYPE_VOID || in zend_ffi_is_same_type()
2166 type2->kind == ZEND_FFI_TYPE_VOID) { in zend_ffi_is_same_type()
2169 } else if (type1->kind == ZEND_FFI_TYPE_ARRAY && in zend_ffi_is_same_type()
2240 switch (type->kind) { in _zend_ffi_type_dtor()
2403 if (type->kind < ZEND_FFI_TYPE_POINTER) { in zend_ffi_cdata_clone_obj()
2422 …if (sym && sym->kind != ZEND_FFI_SYM_VAR && sym->kind != ZEND_FFI_SYM_CONST && sym->kind != ZEND_F… in zend_ffi_read_var()
2431 if (sym->kind == ZEND_FFI_SYM_VAR) { in zend_ffi_read_var()
2433 } else if (sym->kind == ZEND_FFI_SYM_FUNC) { in zend_ffi_read_var()
2437 new_type->kind = ZEND_FFI_TYPE_POINTER; in zend_ffi_read_var()
2466 if (sym && sym->kind != ZEND_FFI_SYM_VAR) { in zend_ffi_write_var()
2490 zend_ffi_type_kind kind = type->kind; in zend_ffi_pass_arg() local
2495 switch (kind) { in zend_ffi_pass_arg()
2559 && ((ZEND_FFI_TYPE(type->pointer.type)->kind == ZEND_FFI_TYPE_CHAR) in zend_ffi_pass_arg()
2560 || (ZEND_FFI_TYPE(type->pointer.type)->kind == ZEND_FFI_TYPE_VOID))) { in zend_ffi_pass_arg()
2567 if (ZEND_FFI_TYPE(cdata->type)->kind == ZEND_FFI_TYPE_POINTER) { in zend_ffi_pass_arg()
2579 } else if (ZEND_FFI_TYPE(type->pointer.type)->kind == ZEND_FFI_TYPE_FUNC) { in zend_ffi_pass_arg()
2606 kind = type->enumeration.kind; in zend_ffi_pass_arg()
2692 ZEND_ASSERT(type->kind == ZEND_FFI_TYPE_FUNC); in ZEND_FUNCTION()
2835 if (sym && sym->kind != ZEND_FFI_SYM_FUNC) { in zend_ffi_get_func()
2845 ZEND_ASSERT(type->kind == ZEND_FFI_TYPE_FUNC); in zend_ffi_get_func()
2958 if (sym->kind == ZEND_FFI_SYM_VAR) { in ZEND_METHOD()
2965 } else if (sym->kind == ZEND_FFI_SYM_FUNC) { in ZEND_METHOD()
2998 if (old->kind != type->kind in zend_ffi_same_types()
3005 switch (old->kind) { in zend_ffi_same_types()
3007 return old->enumeration.kind == type->enumeration.kind; in zend_ffi_same_types()
3076 if (old->kind != sym->kind || old->is_const != sym->is_const) { in zend_ffi_same_symbols()
3080 if (old->kind == ZEND_FFI_SYM_CONST) { in zend_ffi_same_symbols()
3092 if (old->kind != tag->kind) { in zend_ffi_same_tags()
3110 switch (dcl_type->kind) { in zend_ffi_subst_old_type()
3277 if (sym->kind == ZEND_FFI_SYM_VAR) { in zend_ffi_load()
3291 } else if (sym->kind == ZEND_FFI_SYM_FUNC) { in zend_ffi_load()
3346 …ading '%s', redefinition of '%s %s'", filename, zend_ffi_tag_kind_name[tag->kind], ZSTR_VAL(name)); in zend_ffi_load()
3539 if (type->kind == ZEND_FFI_TYPE_ENUM) { in zend_ffi_validate_incomplete_type()
3576 if (type->kind == ZEND_FFI_TYPE_VOID) { in zend_ffi_validate_type()
3586 if (type->kind == ZEND_FFI_TYPE_FUNC) { in zend_ffi_validate_var_type()
3614 switch (dcl_type->kind) { in zend_ffi_subst_type()
3764 if (type->kind < ZEND_FFI_TYPE_POINTER) { in ZEND_METHOD()
3790 if (ZEND_FFI_TYPE(cdata->type)->kind == ZEND_FFI_TYPE_POINTER) { in ZEND_METHOD()
3897 if (type->kind < ZEND_FFI_TYPE_POINTER && Z_TYPE_P(zv) < IS_STRING) { in ZEND_METHOD()
3909 } else if (type->kind == ZEND_FFI_TYPE_POINTER && Z_TYPE_P(zv) == IS_LONG) { in ZEND_METHOD()
3919 } else if (type->kind == ZEND_FFI_TYPE_POINTER && Z_TYPE_P(zv) == IS_NULL) { in ZEND_METHOD()
3940 if (type->kind < ZEND_FFI_TYPE_POINTER) { in ZEND_METHOD()
3945 if (old_type->kind == ZEND_FFI_TYPE_POINTER in ZEND_METHOD()
3946 && type->kind != ZEND_FFI_TYPE_POINTER in ZEND_METHOD()
3947 && ZEND_FFI_TYPE(old_type->pointer.type)->kind == ZEND_FFI_TYPE_VOID) { in ZEND_METHOD()
3950 } else if (old_type->kind == ZEND_FFI_TYPE_ARRAY in ZEND_METHOD()
3951 && type->kind == ZEND_FFI_TYPE_POINTER in ZEND_METHOD()
3955 } else if (old_type->kind == ZEND_FFI_TYPE_POINTER in ZEND_METHOD()
3956 && type->kind == ZEND_FFI_TYPE_ARRAY in ZEND_METHOD()
4102 if (type->kind == ZEND_FFI_TYPE_FUNC) { in ZEND_METHOD()
4105 } else if (type->kind == ZEND_FFI_TYPE_ARRAY && (type->attr & ZEND_FFI_ATTR_INCOMPLETE_ARRAY)) { in ZEND_METHOD()
4108 } else if (type->kind == ZEND_FFI_TYPE_VOID) { in ZEND_METHOD()
4136 …} else if (ZEND_FFI_TYPE(type)->kind == ZEND_FFI_TYPE_ARRAY && (ZEND_FFI_TYPE(type)->attr & ZEND_F… in ZEND_METHOD()
4143 new_type->kind = ZEND_FFI_TYPE_ARRAY; in ZEND_METHOD()
4186 new_type->kind = ZEND_FFI_TYPE_POINTER; in ZEND_METHOD()
4284 if (type1->kind == ZEND_FFI_TYPE_POINTER) { in ZEND_METHOD()
4288 if (type1->kind != ZEND_FFI_TYPE_POINTER && size > type1->size) { in ZEND_METHOD()
4304 if (type2->kind == ZEND_FFI_TYPE_POINTER) { in ZEND_METHOD()
4308 if (type2->kind != ZEND_FFI_TYPE_POINTER && size > type2->size) { in ZEND_METHOD()
4348 if (type1->kind == ZEND_FFI_TYPE_POINTER) { in ZEND_METHOD()
4352 if (type1->kind != ZEND_FFI_TYPE_POINTER && size > type1->size) { in ZEND_METHOD()
4372 if (type2->kind == ZEND_FFI_TYPE_POINTER) { in ZEND_METHOD()
4376 if (type2->kind != ZEND_FFI_TYPE_POINTER && size > type2->size) { in ZEND_METHOD()
4414 if (type->kind == ZEND_FFI_TYPE_POINTER) { in ZEND_METHOD()
4418 if (type->kind != ZEND_FFI_TYPE_POINTER && size > type->size) { in ZEND_METHOD()
4447 if (type->kind == ZEND_FFI_TYPE_POINTER) { in ZEND_METHOD()
4451 if (type->kind != ZEND_FFI_TYPE_POINTER && size > type->size) { in ZEND_METHOD()
4458 …if (type->kind == ZEND_FFI_TYPE_POINTER && ZEND_FFI_TYPE(type->pointer.type)->kind == ZEND_FFI_TYP… in ZEND_METHOD()
4460 …} else if (type->kind == ZEND_FFI_TYPE_ARRAY && ZEND_FFI_TYPE(type->array.type)->kind == ZEND_FFI_… in ZEND_METHOD()
4491 if (type->kind != ZEND_FFI_TYPE_POINTER){ in ZEND_METHOD()
4531 RETURN_LONG(type->kind); in ZEND_METHOD()
4587 if (type->kind != ZEND_FFI_TYPE_ENUM) { in ZEND_METHOD()
4591 RETURN_LONG(type->enumeration.kind); in ZEND_METHOD()
4606 if (type->kind != ZEND_FFI_TYPE_ARRAY) { in ZEND_METHOD()
4627 if (type->kind != ZEND_FFI_TYPE_ARRAY) { in ZEND_METHOD()
4646 if (type->kind != ZEND_FFI_TYPE_POINTER) { in ZEND_METHOD()
4670 if (type->kind != ZEND_FFI_TYPE_STRUCT) { in ZEND_METHOD()
4696 if (type->kind != ZEND_FFI_TYPE_STRUCT) { in ZEND_METHOD()
4723 if (type->kind != ZEND_FFI_TYPE_STRUCT) { in ZEND_METHOD()
4750 if (type->kind != ZEND_FFI_TYPE_FUNC) { in ZEND_METHOD()
4769 if (type->kind != ZEND_FFI_TYPE_FUNC) { in ZEND_METHOD()
4790 if (type->kind != ZEND_FFI_TYPE_FUNC) { in ZEND_METHOD()
4810 if (type->kind != ZEND_FFI_TYPE_FUNC) { in ZEND_METHOD()
5489 static const zend_ffi_type zend_ffi_type_void = {.kind=ZEND_FFI_TYPE_VOID, .size=1, .align=1};
5490 static const zend_ffi_type zend_ffi_type_char = {.kind=ZEND_FFI_TYPE_CHAR, .size=1, .align=_Alignof…
5491 static const zend_ffi_type zend_ffi_type_bool = {.kind=ZEND_FFI_TYPE_BOOL, .size=1, .align=_Alignof…
5492 static const zend_ffi_type zend_ffi_type_sint8 = {.kind=ZEND_FFI_TYPE_SINT8, .size=1, .align=_Align…
5493 static const zend_ffi_type zend_ffi_type_uint8 = {.kind=ZEND_FFI_TYPE_UINT8, .size=1, .align=_Align…
5494 static const zend_ffi_type zend_ffi_type_sint16 = {.kind=ZEND_FFI_TYPE_SINT16, .size=2, .align=_Ali…
5495 static const zend_ffi_type zend_ffi_type_uint16 = {.kind=ZEND_FFI_TYPE_UINT16, .size=2, .align=_Ali…
5496 static const zend_ffi_type zend_ffi_type_sint32 = {.kind=ZEND_FFI_TYPE_SINT32, .size=4, .align=_Ali…
5497 static const zend_ffi_type zend_ffi_type_uint32 = {.kind=ZEND_FFI_TYPE_UINT32, .size=4, .align=_Ali…
5498 static const zend_ffi_type zend_ffi_type_sint64 = {.kind=ZEND_FFI_TYPE_SINT64, .size=8, .align=_Ali…
5499 static const zend_ffi_type zend_ffi_type_uint64 = {.kind=ZEND_FFI_TYPE_UINT64, .size=8, .align=_Ali…
5500 static const zend_ffi_type zend_ffi_type_float = {.kind=ZEND_FFI_TYPE_FLOAT, .size=sizeof(float), .…
5501 static const zend_ffi_type zend_ffi_type_double = {.kind=ZEND_FFI_TYPE_DOUBLE, .size=sizeof(double)…
5504 static const zend_ffi_type zend_ffi_type_long_double = {.kind=ZEND_FFI_TYPE_LONGDOUBLE, .size=sizeo…
5507 static const zend_ffi_type zend_ffi_type_ptr = {.kind=ZEND_FFI_TYPE_POINTER, .size=sizeof(void*), .…
5728 return (sym->kind == ZEND_FFI_SYM_TYPE);
5746 if (sym && sym->kind == ZEND_FFI_SYM_TYPE) {
5768 val->kind = ZEND_FFI_VAL_NAME;
5774 if (sym && sym->kind == ZEND_FFI_SYM_CONST) {
5776 switch (sym->type->kind) {
5780 val->kind = ZEND_FFI_VAL_INT32;
5783 val->kind = ZEND_FFI_VAL_INT64;
5788 val->kind = ZEND_FFI_VAL_UINT32;
5791 val->kind = ZEND_FFI_VAL_UINT64;
5799 val->kind = ZEND_FFI_VAL_ERROR;
5806 type->kind = ZEND_FFI_TYPE_ENUM;
5812 type->enumeration.kind = ZEND_FFI_TYPE_UINT8;
5816 type->enumeration.kind = ZEND_FFI_TYPE_UINT32;
5831 (enum_type->enumeration.kind == ZEND_FFI_TYPE_SINT8 ||
5832 enum_type->enumeration.kind == ZEND_FFI_TYPE_SINT16 ||
5833 enum_type->enumeration.kind == ZEND_FFI_TYPE_SINT32 ||
5834 enum_type->enumeration.kind == ZEND_FFI_TYPE_SINT64);
5836 ZEND_ASSERT(enum_type && enum_type->kind == ZEND_FFI_TYPE_ENUM);
5837 if (val->kind == ZEND_FFI_VAL_EMPTY) {
5849 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
5858 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) {
5867 } else if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) {
5911 enum_type->enumeration.kind = sym_type->kind;
5925 sym->kind = ZEND_FFI_SYM_CONST;
5936 type->kind = ZEND_FFI_TYPE_STRUCT;
5991 ZEND_ASSERT(struct_type && struct_type->kind == ZEND_FFI_TYPE_STRUCT);
6036 ZEND_ASSERT(struct_type && struct_type->kind == ZEND_FFI_TYPE_STRUCT);
6039 if (field_type->kind != ZEND_FFI_TYPE_STRUCT) {
6103 ZEND_ASSERT(struct_type && struct_type->kind == ZEND_FFI_TYPE_STRUCT);
6111 if (field_type->kind < ZEND_FFI_TYPE_UINT8 || field_type->kind > ZEND_FFI_TYPE_BOOL) {
6116 if (bits->kind == ZEND_FFI_VAL_INT32 || bits->kind == ZEND_FFI_VAL_INT64) {
6130 } else if (bits->kind == ZEND_FFI_VAL_UINT32 || bits->kind == ZEND_FFI_VAL_UINT64) {
6203 ZEND_ASSERT(struct_type->kind == ZEND_FFI_TYPE_STRUCT);
6217 type->kind = ZEND_FFI_TYPE_POINTER;
6236 if (type->kind == ZEND_FFI_TYPE_FUNC) {
6239 } else if (type->kind == ZEND_FFI_TYPE_ARRAY && (type->attr & ZEND_FFI_ATTR_INCOMPLETE_ARRAY)) {
6256 if (len->kind == ZEND_FFI_VAL_EMPTY) {
6258 } else if (len->kind == ZEND_FFI_VAL_UINT32 || len->kind == ZEND_FFI_VAL_UINT64) {
6260 } else if (len->kind == ZEND_FFI_VAL_INT32 || len->kind == ZEND_FFI_VAL_INT64) {
6262 } else if (len->kind == ZEND_FFI_VAL_CHAR) {
6281 type->kind = ZEND_FFI_TYPE_ARRAY;
6296 if (type->kind == ZEND_FFI_TYPE_FUNC) {
6299 } else if (type->kind == ZEND_FFI_TYPE_ARRAY) {
6321 if (arg_type->kind == ZEND_FFI_TYPE_VOID) {
6349 …if (i >= 4 && i <= 5 && (arg_type->kind == ZEND_FFI_TYPE_FLOAT || arg_type->kind == ZEND_FFI_TYPE_…
6351 if (i < 6 && (arg_type->kind == ZEND_FFI_TYPE_FLOAT || arg_type->kind == ZEND_FFI_TYPE_DOUBLE)) {
6375 type->kind = ZEND_FFI_TYPE_FUNC;
6455 if (type->kind == ZEND_FFI_TYPE_ARRAY) {
6457 type->kind = ZEND_FFI_TYPE_POINTER;
6461 new_type->kind = ZEND_FFI_TYPE_POINTER;
6468 } else if (type->kind == ZEND_FFI_TYPE_FUNC) {
6470 new_type->kind = ZEND_FFI_TYPE_POINTER;
6500 && sym->kind == ZEND_FFI_SYM_TYPE
6510 if (type->kind == ZEND_FFI_TYPE_FUNC) {
6511 if (sym->kind == ZEND_FFI_SYM_FUNC
6518 if (sym->kind == ZEND_FFI_SYM_VAR
6547 sym->kind = ZEND_FFI_SYM_TYPE;
6563 sym->kind = (type->kind == ZEND_FFI_TYPE_FUNC) ? ZEND_FFI_SYM_FUNC : ZEND_FFI_SYM_VAR;
6591 if (tag->kind != ZEND_FFI_TAG_STRUCT) {
6599 if (tag->kind != ZEND_FFI_TAG_UNION) {
6607 if (tag->kind != ZEND_FFI_TAG_ENUM) {
6627 tag->kind = ZEND_FFI_TAG_STRUCT;
6632 tag->kind = ZEND_FFI_TAG_UNION;
6637 tag->kind = ZEND_FFI_TAG_ENUM;
6805 …&& (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_V…
6814 …&& (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_V…
6823 && (val->kind == ZEND_FFI_VAL_NAME)) {
6890 …if ((val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_…
6905 switch (nested_type->kind) {
6971 switch (align_val->kind) {
7002 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) { \
7003 val->kind = ZEND_FFI_VAL_INT32; \
7005 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) { \
7006 val->kind = ZEND_FFI_VAL_INT32; \
7008 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7009 val->kind = ZEND_FFI_VAL_INT32; \
7011 } else if (val->kind == ZEND_FFI_VAL_CHAR) { \
7012 val->kind = ZEND_FFI_VAL_INT32; \
7015 val->kind = ZEND_FFI_VAL_ERROR; \
7020 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) { \
7021 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7022 val->kind = MAX(val->kind, op2->kind); \
7024 } else if (op2->kind == ZEND_FFI_VAL_INT32) { \
7026 } else if (op2->kind == ZEND_FFI_VAL_INT64) { \
7028 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7029 val->kind = op2->kind; \
7031 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7034 val->kind = ZEND_FFI_VAL_ERROR; \
7036 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) { \
7037 if (op2->kind == ZEND_FFI_VAL_UINT32) { \
7039 } else if (op2->kind == ZEND_FFI_VAL_UINT64) { \
7041 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7042 val->kind = MAX(val->kind, op2->kind); \
7044 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7045 val->kind = op2->kind; \
7047 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7050 val->kind = ZEND_FFI_VAL_ERROR; \
7052 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7053 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7055 } else if (op2->kind == ZEND_FFI_VAL_INT32 ||op2->kind == ZEND_FFI_VAL_INT64) { \
7057 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7058 val->kind = MAX(val->kind, op2->kind); \
7060 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7063 val->kind = ZEND_FFI_VAL_ERROR; \
7065 } else if (val->kind == ZEND_FFI_VAL_CHAR) { \
7066 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7067 val->kind = op2->kind; \
7069 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7070 val->kind = ZEND_FFI_VAL_INT64; \
7072 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7073 val->kind = op2->kind; \
7075 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7078 val->kind = ZEND_FFI_VAL_ERROR; \
7081 val->kind = ZEND_FFI_VAL_ERROR; \
7086 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) { \
7087 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7088 val->kind = MAX(val->kind, op2->kind); \
7090 } else if (op2->kind == ZEND_FFI_VAL_INT32) { \
7092 } else if (op2->kind == ZEND_FFI_VAL_INT64) { \
7094 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7096 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7099 val->kind = ZEND_FFI_VAL_ERROR; \
7101 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) { \
7102 if (op2->kind == ZEND_FFI_VAL_UINT32) { \
7104 } else if (op2->kind == ZEND_FFI_VAL_UINT64) { \
7106 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7107 val->kind = MAX(val->kind, op2->kind); \
7109 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7111 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7114 val->kind = ZEND_FFI_VAL_ERROR; \
7116 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7117 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7118 val->kind = op2->kind; \
7120 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7121 val->kind = op2->kind; \
7124 val->kind = ZEND_FFI_VAL_ERROR; \
7126 } else if (val->kind == ZEND_FFI_VAL_CHAR) { \
7127 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7128 val->kind = op2->kind; \
7130 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7131 val->kind = op2->kind; \
7133 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7136 val->kind = ZEND_FFI_VAL_ERROR; \
7139 val->kind = ZEND_FFI_VAL_ERROR; \
7144 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) { \
7145 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7146 val->kind = ZEND_FFI_VAL_INT32; \
7148 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7149 val->kind = ZEND_FFI_VAL_INT32; \
7151 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7152 val->kind = ZEND_FFI_VAL_INT32; \
7154 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7155 val->kind = ZEND_FFI_VAL_INT32; \
7158 val->kind = ZEND_FFI_VAL_ERROR; \
7160 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) { \
7161 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7162 val->kind = ZEND_FFI_VAL_INT32; \
7164 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7165 val->kind = ZEND_FFI_VAL_INT32; \
7167 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7168 val->kind = ZEND_FFI_VAL_INT32; \
7170 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7171 val->kind = ZEND_FFI_VAL_INT32; \
7174 val->kind = ZEND_FFI_VAL_ERROR; \
7176 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7177 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7178 val->kind = ZEND_FFI_VAL_INT32; \
7180 } else if (op2->kind == ZEND_FFI_VAL_INT32 ||op2->kind == ZEND_FFI_VAL_INT64) { \
7181 val->kind = ZEND_FFI_VAL_INT32; \
7183 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7184 val->kind = ZEND_FFI_VAL_INT32; \
7186 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7187 val->kind = ZEND_FFI_VAL_INT32; \
7190 val->kind = ZEND_FFI_VAL_ERROR; \
7192 } else if (val->kind == ZEND_FFI_VAL_CHAR) { \
7193 if (op2->kind == ZEND_FFI_VAL_UINT32 || op2->kind == ZEND_FFI_VAL_UINT64) { \
7194 val->kind = ZEND_FFI_VAL_INT32; \
7196 } else if (op2->kind == ZEND_FFI_VAL_INT32 || op2->kind == ZEND_FFI_VAL_INT64) { \
7197 val->kind = ZEND_FFI_VAL_INT32; \
7199 …} else if (op2->kind == ZEND_FFI_VAL_FLOAT || op2->kind == ZEND_FFI_VAL_DOUBLE || op2->kind == ZEN…
7200 val->kind = ZEND_FFI_VAL_INT32; \
7202 } else if (op2->kind == ZEND_FFI_VAL_CHAR) { \
7203 val->kind = ZEND_FFI_VAL_INT32; \
7206 val->kind = ZEND_FFI_VAL_ERROR; \
7209 val->kind = ZEND_FFI_VAL_ERROR; \
7216 if (val->kind == ZEND_FFI_VAL_INT32) {
7230 if (val->kind == ZEND_FFI_VAL_INT32 && op2->kind == ZEND_FFI_VAL_INT32) {
7233 val->kind = ZEND_FFI_VAL_ERROR;
7242 if (val->kind == ZEND_FFI_VAL_INT32 && op2->kind == ZEND_FFI_VAL_INT32) {
7245 val->kind = ZEND_FFI_VAL_ERROR;
7349 switch (ZEND_FFI_TYPE(dcl->type)->kind) {
7351 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) {
7352 val->kind = ZEND_FFI_VAL_FLOAT;
7354 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) {
7355 val->kind = ZEND_FFI_VAL_FLOAT;
7357 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7358 val->kind = ZEND_FFI_VAL_FLOAT;
7359 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7360 val->kind = ZEND_FFI_VAL_FLOAT;
7363 val->kind = ZEND_FFI_VAL_ERROR;
7367 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) {
7368 val->kind = ZEND_FFI_VAL_DOUBLE;
7370 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) {
7371 val->kind = ZEND_FFI_VAL_DOUBLE;
7373 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7374 val->kind = ZEND_FFI_VAL_DOUBLE;
7375 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7376 val->kind = ZEND_FFI_VAL_DOUBLE;
7379 val->kind = ZEND_FFI_VAL_ERROR;
7384 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) {
7385 val->kind = ZEND_FFI_VAL_LONG_DOUBLE;
7387 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) {
7388 val->kind = ZEND_FFI_VAL_LONG_DOUBLE;
7390 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7391 val->kind = ZEND_FFI_VAL_LONG_DOUBLE;
7392 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7393 val->kind = ZEND_FFI_VAL_LONG_DOUBLE;
7396 val->kind = ZEND_FFI_VAL_ERROR;
7404 …if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64 || val->kind == ZEND_FFI_…
7405 val->kind = ZEND_FFI_VAL_UINT32;
7406 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7407 val->kind = ZEND_FFI_VAL_UINT32;
7409 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7410 val->kind = ZEND_FFI_VAL_UINT32;
7413 val->kind = ZEND_FFI_VAL_ERROR;
7419 …if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64 || val->kind == ZEND_FFI_…
7420 val->kind = ZEND_FFI_VAL_INT32;
7421 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7422 val->kind = ZEND_FFI_VAL_INT32;
7424 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7425 val->kind = ZEND_FFI_VAL_INT32;
7428 val->kind = ZEND_FFI_VAL_ERROR;
7432 …if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64 || val->kind == ZEND_FFI_…
7433 val->kind = ZEND_FFI_VAL_UINT64;
7434 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7435 val->kind = ZEND_FFI_VAL_UINT64;
7437 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7438 val->kind = ZEND_FFI_VAL_UINT64;
7441 val->kind = ZEND_FFI_VAL_ERROR;
7445 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) {
7446 val->kind = ZEND_FFI_VAL_CHAR;
7448 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) {
7449 val->kind = ZEND_FFI_VAL_CHAR;
7451 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7452 val->kind = ZEND_FFI_VAL_CHAR;
7454 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7456 val->kind = ZEND_FFI_VAL_ERROR;
7460 …if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64 || val->kind == ZEND_FFI_…
7461 val->kind = ZEND_FFI_VAL_UINT32;
7462 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7463 val->kind = ZEND_FFI_VAL_UINT32;
7465 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7466 val->kind = ZEND_FFI_VAL_UINT32;
7469 val->kind = ZEND_FFI_VAL_ERROR;
7473 val->kind = ZEND_FFI_VAL_ERROR;
7482 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) {
7483 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) {
7484 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7485 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7487 val->kind = ZEND_FFI_VAL_ERROR;
7494 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) {
7496 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) {
7498 …} else if (val->kind == ZEND_FFI_VAL_FLOAT || val->kind == ZEND_FFI_VAL_DOUBLE || val->kind == ZEN…
7500 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7503 val->kind = ZEND_FFI_VAL_ERROR;
7510 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_UINT64) {
7512 } else if (val->kind == ZEND_FFI_VAL_INT32 || val->kind == ZEND_FFI_VAL_INT64) {
7514 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7517 val->kind = ZEND_FFI_VAL_ERROR;
7525 if (val->kind == ZEND_FFI_VAL_INT32) {
7533 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_INT32) {
7534 val->kind = ZEND_FFI_VAL_UINT32;
7536 } else if (val->kind == ZEND_FFI_VAL_UINT64 || val->kind == ZEND_FFI_VAL_INT64) {
7537 val->kind = ZEND_FFI_VAL_UINT32;
7539 } else if (val->kind == ZEND_FFI_VAL_FLOAT) {
7540 val->kind = ZEND_FFI_VAL_UINT32;
7542 } else if (val->kind == ZEND_FFI_VAL_DOUBLE) {
7543 val->kind = ZEND_FFI_VAL_UINT32;
7545 } else if (val->kind == ZEND_FFI_VAL_LONG_DOUBLE) {
7546 val->kind = ZEND_FFI_VAL_UINT32;
7552 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7553 val->kind = ZEND_FFI_VAL_UINT32;
7555 } else if (val->kind == ZEND_FFI_VAL_STRING) {
7558 val->kind = ZEND_FFI_VAL_ERROR;
7560 val->kind = ZEND_FFI_VAL_UINT32;
7564 val->kind = ZEND_FFI_VAL_ERROR;
7575 val->kind = (type->size > 0xffffffff) ? ZEND_FFI_VAL_UINT64 : ZEND_FFI_VAL_UINT32;
7583 if (val->kind == ZEND_FFI_VAL_UINT32 || val->kind == ZEND_FFI_VAL_INT32) {
7584 val->kind = ZEND_FFI_VAL_UINT32;
7586 } else if (val->kind == ZEND_FFI_VAL_UINT64 || val->kind == ZEND_FFI_VAL_INT64) {
7587 val->kind = ZEND_FFI_VAL_UINT32;
7589 } else if (val->kind == ZEND_FFI_VAL_FLOAT) {
7590 val->kind = ZEND_FFI_VAL_UINT32;
7592 } else if (val->kind == ZEND_FFI_VAL_DOUBLE) {
7593 val->kind = ZEND_FFI_VAL_UINT32;
7596 } else if (val->kind == ZEND_FFI_VAL_LONG_DOUBLE) {
7597 val->kind = ZEND_FFI_VAL_UINT32;
7600 } else if (val->kind == ZEND_FFI_VAL_CHAR) {
7601 val->kind = ZEND_FFI_VAL_UINT32;
7603 } else if (val->kind == ZEND_FFI_VAL_STRING) {
7604 val->kind = ZEND_FFI_VAL_UINT32;
7607 val->kind = ZEND_FFI_VAL_ERROR;
7615 val->kind = ZEND_FFI_VAL_UINT32;
7648 val->kind = ZEND_FFI_VAL_UINT32;
7650 val->kind = (sizeof(long) == 4) ? ZEND_FFI_VAL_UINT32 : ZEND_FFI_VAL_UINT64;
7652 val->kind = ZEND_FFI_VAL_UINT64;
7657 val->kind = ZEND_FFI_VAL_INT32;
7659 val->kind = (sizeof(long) == 4) ? ZEND_FFI_VAL_INT32 : ZEND_FFI_VAL_INT64;
7661 val->kind = ZEND_FFI_VAL_INT64;
7671 val->kind = ZEND_FFI_VAL_FLOAT;
7673 val->kind = ZEND_FFI_VAL_LONG_DOUBLE;
7675 val->kind = ZEND_FFI_VAL_DOUBLE;
7683 val->kind = ZEND_FFI_VAL_ERROR;
7685 val->kind = ZEND_FFI_VAL_STRING;
7697 val->kind = ZEND_FFI_VAL_ERROR;
7699 val->kind = ZEND_FFI_VAL_CHAR;
7723 val->kind = ZEND_FFI_VAL_ERROR;
7726 val->kind = ZEND_FFI_VAL_ERROR;
7731 val->kind = ZEND_FFI_VAL_ERROR;
7741 val->kind = ZEND_FFI_VAL_ERROR;
7751 val->kind = ZEND_FFI_VAL_ERROR;
7758 val->kind = ZEND_FFI_VAL_ERROR;
7761 val->kind = ZEND_FFI_VAL_ERROR;