Lines Matching refs:FFI_G

1026 	if (!FFI_G(callbacks)) {  in zend_ffi_create_callback()
1027 FFI_G(callbacks) = emalloc(sizeof(HashTable)); in zend_ffi_create_callback()
1028 zend_hash_init(FFI_G(callbacks), 0, NULL, zend_ffi_callback_hash_dtor, 0); in zend_ffi_create_callback()
1030 zend_hash_next_index_insert_ptr(FFI_G(callbacks), callback_data); in zend_ffi_create_callback()
2862 if (EXPECTED(FFI_G(restriction) > ZEND_FFI_ENABLED)) { in zend_ffi_validate_api_restriction()
2863 ZEND_ASSERT(FFI_G(restriction) == ZEND_FFI_PRELOAD); in zend_ffi_validate_api_restriction()
2864 if (FFI_G(is_cli) in zend_ffi_validate_api_restriction()
2870 } else if (EXPECTED(FFI_G(restriction) == ZEND_FFI_ENABLED)) { in zend_ffi_validate_api_restriction()
2911 FFI_G(symbols) = NULL; in ZEND_METHOD()
2912 FFI_G(tags) = NULL; in ZEND_METHOD()
2916 FFI_G(default_type_attr) = ZEND_FFI_ATTR_STORED; in ZEND_METHOD()
2919 if (FFI_G(symbols)) { in ZEND_METHOD()
2920 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
2921 efree(FFI_G(symbols)); in ZEND_METHOD()
2922 FFI_G(symbols) = NULL; in ZEND_METHOD()
2924 if (FFI_G(tags)) { in ZEND_METHOD()
2925 zend_hash_destroy(FFI_G(tags)); in ZEND_METHOD()
2926 efree(FFI_G(tags)); in ZEND_METHOD()
2927 FFI_G(tags) = NULL; in ZEND_METHOD()
2932 if (FFI_G(symbols)) { in ZEND_METHOD()
2936 ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(symbols), name, sym) { in ZEND_METHOD()
2961 ffi->symbols = FFI_G(symbols); in ZEND_METHOD()
2962 ffi->tags = FFI_G(tags); in ZEND_METHOD()
2964 FFI_G(symbols) = NULL; in ZEND_METHOD()
2965 FFI_G(tags) = NULL; in ZEND_METHOD()
3126 if (FFI_G(symbols)) { in zend_ffi_cleanup_type()
3127 ZEND_HASH_FOREACH_PTR(FFI_G(symbols), sym) { in zend_ffi_cleanup_type()
3131 if (FFI_G(tags)) { in zend_ffi_cleanup_type()
3132 ZEND_HASH_FOREACH_PTR(FFI_G(tags), tag) { in zend_ffi_cleanup_type()
3141 if (!FFI_G(weak_types)) { in zend_ffi_remember_type()
3142 FFI_G(weak_types) = emalloc(sizeof(HashTable)); in zend_ffi_remember_type()
3143 zend_hash_init(FFI_G(weak_types), 0, NULL, zend_ffi_type_hash_dtor, 0); in zend_ffi_remember_type()
3147 zend_hash_next_index_insert_ptr(FFI_G(weak_types), ZEND_FFI_TYPE_MAKE_OWNED(type)); in zend_ffi_remember_type()
3200 FFI_G(symbols) = NULL; in zend_ffi_load()
3201 FFI_G(tags) = NULL; in zend_ffi_load()
3202 FFI_G(persistent) = preload; in zend_ffi_load()
3203 FFI_G(default_type_attr) = preload ? in zend_ffi_load()
3213 FFI_G(persistent) = 0; in zend_ffi_load()
3249 if (FFI_G(scopes)) { in zend_ffi_load()
3250 scope = zend_hash_str_find_ptr(FFI_G(scopes), scope_name, scope_name_len); in zend_ffi_load()
3254 if (FFI_G(symbols)) { in zend_ffi_load()
3255 ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(symbols), name, sym) { in zend_ffi_load()
3312 if (scope && scope->tags && FFI_G(tags)) { in zend_ffi_load()
3313 ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(tags), name, tag) { in zend_ffi_load()
3337 scope->symbols = FFI_G(symbols); in zend_ffi_load()
3338 scope->tags = FFI_G(tags); in zend_ffi_load()
3340 if (!FFI_G(scopes)) { in zend_ffi_load()
3341 FFI_G(scopes) = malloc(sizeof(HashTable)); in zend_ffi_load()
3342 zend_hash_init(FFI_G(scopes), 0, NULL, zend_ffi_scope_hash_dtor, 1); in zend_ffi_load()
3345 zend_hash_str_add_ptr(FFI_G(scopes), scope_name, scope_name_len, scope); in zend_ffi_load()
3347 if (FFI_G(symbols)) { in zend_ffi_load()
3349 scope->symbols = FFI_G(symbols); in zend_ffi_load()
3350 FFI_G(symbols) = NULL; in zend_ffi_load()
3352 ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(symbols), name, sym) { in zend_ffi_load()
3358 FFI_G(symbols)->pDestructor = NULL; in zend_ffi_load()
3359 zend_hash_destroy(FFI_G(symbols)); in zend_ffi_load()
3362 if (FFI_G(tags)) { in zend_ffi_load()
3364 scope->tags = FFI_G(tags); in zend_ffi_load()
3365 FFI_G(tags) = NULL; in zend_ffi_load()
3367 ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(tags), name, tag) { in zend_ffi_load()
3373 FFI_G(tags)->pDestructor = NULL; in zend_ffi_load()
3374 zend_hash_destroy(FFI_G(tags)); in zend_ffi_load()
3390 ffi->symbols = FFI_G(symbols); in zend_ffi_load()
3391 ffi->tags = FFI_G(tags); in zend_ffi_load()
3395 FFI_G(symbols) = NULL; in zend_ffi_load()
3396 FFI_G(tags) = NULL; in zend_ffi_load()
3397 FFI_G(persistent) = 0; in zend_ffi_load()
3403 if (FFI_G(symbols)) { in zend_ffi_load()
3404 zend_hash_destroy(FFI_G(symbols)); in zend_ffi_load()
3405 pefree(FFI_G(symbols), preload); in zend_ffi_load()
3406 FFI_G(symbols) = NULL; in zend_ffi_load()
3408 if (FFI_G(tags)) { in zend_ffi_load()
3409 zend_hash_destroy(FFI_G(tags)); in zend_ffi_load()
3410 pefree(FFI_G(tags), preload); in zend_ffi_load()
3411 FFI_G(tags) = NULL; in zend_ffi_load()
3413 FFI_G(persistent) = 0; in zend_ffi_load()
3452 if (FFI_G(scopes)) { in ZEND_METHOD()
3453 scope = zend_hash_find_ptr(FFI_G(scopes), scope_name); in ZEND_METHOD()
3501 if (!FFI_G(allow_vla) && (type->attr & ZEND_FFI_ATTR_VLA)) { in zend_ffi_validate_vla()
3502 …ser_error("\"[*]\" is not allowed in other than function prototype scope at line %d", FFI_G(line)); in zend_ffi_validate_vla()
3512 if (FFI_G(tags)) { in zend_ffi_validate_incomplete_type()
3516 ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(tags), key, tag) { in zend_ffi_validate_incomplete_type()
3519 zend_ffi_throw_parser_error("Incomplete enum \"%s\" at line %d", ZSTR_VAL(key), FFI_G(line)); in zend_ffi_validate_incomplete_type()
3521 zend_ffi_throw_parser_error("Incomplete union \"%s\" at line %d", ZSTR_VAL(key), FFI_G(line)); in zend_ffi_validate_incomplete_type()
3523 … zend_ffi_throw_parser_error("Incomplete struct \"%s\" at line %d", ZSTR_VAL(key), FFI_G(line)); in zend_ffi_validate_incomplete_type()
3529 if (FFI_G(symbols)) { in zend_ffi_validate_incomplete_type()
3533 ZEND_HASH_FOREACH_STR_KEY_PTR(FFI_G(symbols), key, sym) { in zend_ffi_validate_incomplete_type()
3535 zend_ffi_throw_parser_error("Incomplete C type %s at line %d", ZSTR_VAL(key), FFI_G(line)); in zend_ffi_validate_incomplete_type()
3540 zend_ffi_throw_parser_error("Incomplete type at line %d", FFI_G(line)); in zend_ffi_validate_incomplete_type()
3543 zend_ffi_throw_parser_error("\"[]\" is not allowed at line %d", FFI_G(line)); in zend_ffi_validate_incomplete_type()
3545 } else if (!FFI_G(allow_vla) && (type->attr & ZEND_FFI_ATTR_VLA)) { in zend_ffi_validate_incomplete_type()
3546 …ser_error("\"[*]\" is not allowed in other than function prototype scope at line %d", FFI_G(line)); in zend_ffi_validate_incomplete_type()
3556 zend_ffi_throw_parser_error("void type is not allowed at line %d", FFI_G(line)); in zend_ffi_validate_type()
3566 zend_ffi_throw_parser_error("function type is not allowed at line %d", FFI_G(line)); in zend_ffi_validate_var_type()
3578 LONGJMP(FFI_G(bailout), FAILURE); in zend_ffi_validate_type_name()
3628 ZEND_HASH_FOREACH_PTR(FFI_G(tags), tag) { in zend_ffi_tags_cleanup()
3635 zend_hash_destroy(FFI_G(tags)); in zend_ffi_tags_cleanup()
3636 efree(FFI_G(tags)); in zend_ffi_tags_cleanup()
3673 FFI_G(symbols) = ffi->symbols; in ZEND_METHOD()
3674 FFI_G(tags) = ffi->tags; in ZEND_METHOD()
3676 FFI_G(symbols) = NULL; in ZEND_METHOD()
3677 FFI_G(tags) = NULL; in ZEND_METHOD()
3680 FFI_G(default_type_attr) = 0; in ZEND_METHOD()
3685 if (FFI_G(tags)) { in ZEND_METHOD()
3686 zend_hash_destroy(FFI_G(tags)); in ZEND_METHOD()
3687 efree(FFI_G(tags)); in ZEND_METHOD()
3688 FFI_G(tags) = NULL; in ZEND_METHOD()
3690 if (FFI_G(symbols)) { in ZEND_METHOD()
3691 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
3692 efree(FFI_G(symbols)); in ZEND_METHOD()
3693 FFI_G(symbols) = NULL; in ZEND_METHOD()
3705 if (FFI_G(tags)) { in ZEND_METHOD()
3708 if (FFI_G(symbols)) { in ZEND_METHOD()
3709 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
3710 efree(FFI_G(symbols)); in ZEND_METHOD()
3711 FFI_G(symbols) = NULL; in ZEND_METHOD()
3714 FFI_G(symbols) = NULL; in ZEND_METHOD()
3715 FFI_G(tags) = NULL; in ZEND_METHOD()
3817 FFI_G(symbols) = ffi->symbols; in ZEND_METHOD()
3818 FFI_G(tags) = ffi->tags; in ZEND_METHOD()
3820 FFI_G(symbols) = NULL; in ZEND_METHOD()
3821 FFI_G(tags) = NULL; in ZEND_METHOD()
3824 FFI_G(default_type_attr) = 0; in ZEND_METHOD()
3829 if (FFI_G(tags)) { in ZEND_METHOD()
3830 zend_hash_destroy(FFI_G(tags)); in ZEND_METHOD()
3831 efree(FFI_G(tags)); in ZEND_METHOD()
3832 FFI_G(tags) = NULL; in ZEND_METHOD()
3834 if (FFI_G(symbols)) { in ZEND_METHOD()
3835 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
3836 efree(FFI_G(symbols)); in ZEND_METHOD()
3837 FFI_G(symbols) = NULL; in ZEND_METHOD()
3849 if (FFI_G(tags)) { in ZEND_METHOD()
3852 if (FFI_G(symbols)) { in ZEND_METHOD()
3853 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
3854 efree(FFI_G(symbols)); in ZEND_METHOD()
3855 FFI_G(symbols) = NULL; in ZEND_METHOD()
3858 FFI_G(symbols) = NULL; in ZEND_METHOD()
3859 FFI_G(tags) = NULL; in ZEND_METHOD()
3983 FFI_G(symbols) = ffi->symbols; in ZEND_METHOD()
3984 FFI_G(tags) = ffi->tags; in ZEND_METHOD()
3986 FFI_G(symbols) = NULL; in ZEND_METHOD()
3987 FFI_G(tags) = NULL; in ZEND_METHOD()
3990 FFI_G(default_type_attr) = 0; in ZEND_METHOD()
3995 if (FFI_G(tags)) { in ZEND_METHOD()
3996 zend_hash_destroy(FFI_G(tags)); in ZEND_METHOD()
3997 efree(FFI_G(tags)); in ZEND_METHOD()
3998 FFI_G(tags) = NULL; in ZEND_METHOD()
4000 if (FFI_G(symbols)) { in ZEND_METHOD()
4001 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
4002 efree(FFI_G(symbols)); in ZEND_METHOD()
4003 FFI_G(symbols) = NULL; in ZEND_METHOD()
4010 if (FFI_G(tags)) { in ZEND_METHOD()
4013 if (FFI_G(symbols)) { in ZEND_METHOD()
4014 zend_hash_destroy(FFI_G(symbols)); in ZEND_METHOD()
4015 efree(FFI_G(symbols)); in ZEND_METHOD()
4016 FFI_G(symbols) = NULL; in ZEND_METHOD()
4019 FFI_G(symbols) = NULL; in ZEND_METHOD()
4020 FFI_G(tags) = NULL; in ZEND_METHOD()
4801 FFI_G(restriction) = ZEND_FFI_PRELOAD; in ZEND_INI_MH()
4803 FFI_G(restriction) = (zend_ffi_api_restriction)zend_ini_parse_bool(new_value); in ZEND_INI_MH()
4811 if (FFI_G(restriction) == ZEND_FFI_PRELOAD) { in ZEND_INI_DISP()
4813 } else if (FFI_G(restriction) == ZEND_FFI_ENABLED) { in ZEND_INI_DISP()
4938 FFI_G(is_cli) = strcmp(sapi_module.name, "cli") == 0;
5092 if (FFI_G(preload)) {
5093 if (zend_ffi_preload(FFI_G(preload)) != SUCCESS) {
5105 if (FFI_G(callbacks)) {
5106 zend_hash_destroy(FFI_G(callbacks));
5107 efree(FFI_G(callbacks));
5108 FFI_G(callbacks) = NULL;
5110 if (FFI_G(weak_types)) {
5112 fprintf(stderr, "WeakTypes: %d\n", zend_hash_num_elements(FFI_G(weak_types)));
5114 zend_hash_destroy(FFI_G(weak_types));
5115 efree(FFI_G(weak_types));
5116 FFI_G(weak_types) = NULL;
5268 LONGJMP(FFI_G(bailout), FAILURE);
5352 zend_ffi_parser_error("Unsupported type _Complex at line %d", FFI_G(line));
5355 zend_ffi_parser_error("Unsupported type specifier combination at line %d", FFI_G(line));
5369 if (FFI_G(symbols)) {
5370 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
5375 type = zend_hash_str_find_ptr(&FFI_G(types), name, name_len);
5388 if (FFI_G(symbols)) {
5389 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
5398 type = zend_hash_str_find_ptr(&FFI_G(types), name, name_len);
5403 zend_ffi_parser_error("Undefined C type \"%.*s\" at line %d", name_len, name, FFI_G(line));
5411 if (UNEXPECTED(FFI_G(attribute_parsing))) {
5416 } else if (FFI_G(symbols)) {
5417 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
5449 zend_ffi_type *type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
5451 type->attr = FFI_G(default_type_attr) | (dcl->attr & ZEND_FFI_ENUM_ATTRS);
5517 …rser_error("Enumerator value \"%.*s\" must be an integer at line %d", name_len, name, FFI_G(line));
5522 …zend_ffi_parser_error("Overflow in enumeration values \"%.*s\" at line %d", name_len, name, FFI_G(…
5560 if (!FFI_G(symbols)) {
5561 FFI_G(symbols) = pemalloc(sizeof(HashTable), FFI_G(persistent));
5562 …zend_hash_init(FFI_G(symbols), 0, NULL, FFI_G(persistent) ? zend_ffi_symbol_hash_persistent_dtor :…
5564 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
5566 zend_ffi_parser_error("Redeclaration of \"%.*s\" at line %d", name_len, name, FFI_G(line));
5568 sym = pemalloc(sizeof(zend_ffi_symbol), FFI_G(persistent));
5572 zend_hash_str_add_new_ptr(FFI_G(symbols), name, name_len, sym);
5579 zend_ffi_type *type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
5581 type->attr = FFI_G(default_type_attr) | (dcl->attr & ZEND_FFI_STRUCT_ATTRS);
5589 …(&type->record.fields, 0, NULL, FFI_G(persistent) ? zend_ffi_field_hash_persistent_dtor :zend_ffi_…
5604 … zend_ffi_throw_parser_error("Flexible array member not at end of struct at line %d", FFI_G(line));
5615 …zend_ffi_throw_parser_error("Struct/union can't contain an instance of itself at line %d", FFI_G(l…
5621 zend_ffi_throw_parser_error("Flexible array member in union at line %d", FFI_G(line));
5640 LONGJMP(FFI_G(bailout), FAILURE);
5643 field = pemalloc(sizeof(zend_ffi_field), FFI_G(persistent));
5667 pefree(field, FFI_G(persistent));
5668 zend_ffi_parser_error("Duplicate field name \"%.*s\" at line %d", name_len, name, FFI_G(line));
5685 zend_ffi_parser_error("Declaration does not declare anything at line %d", FFI_G(line));
5695 LONGJMP(FFI_G(bailout), FAILURE);
5704 zend_ffi_field *new_field = pemalloc(sizeof(zend_ffi_field), FFI_G(persistent));
5721 pefree(new_field, FFI_G(persistent));
5722 zend_ffi_parser_error("Duplicate field name \"%s\" at line %d", ZSTR_VAL(key), FFI_G(line));
5752 LONGJMP(FFI_G(bailout), FAILURE);
5757 … at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
5763 … at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
5767 … at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
5772 … at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
5778 … at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
5783 … at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
5787 … at line %d", name ? name_len : sizeof("<anonymous>")-1, name ? name : "<anonymous>", FFI_G(line));
5790 field = pemalloc(sizeof(zend_ffi_field), FFI_G(persistent));
5834 pefree(field, FFI_G(persistent));
5835 zend_ffi_parser_error("Duplicate field name \"%.*s\" at line %d", name_len, name, FFI_G(line));
5860 zend_ffi_type *type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
5862 type->attr = FFI_G(default_type_attr) | (dcl->attr & ZEND_FFI_POINTER_ATTRS);
5868 LONGJMP(FFI_G(bailout), FAILURE);
5881 zend_ffi_throw_parser_error("Array of functions is not allowed at line %d", FFI_G(line));
5884 …zend_ffi_throw_parser_error("Only the leftmost array can be undimensioned at line %d", FFI_G(line)…
5910 zend_ffi_parser_error("Unsupported array index type at line %d", FFI_G(line));
5915 zend_ffi_parser_error("Negative array index at line %d", FFI_G(line));
5921 LONGJMP(FFI_G(bailout), FAILURE);
5924 type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
5926 type->attr = FFI_G(default_type_attr) | (dcl->attr & ZEND_FFI_ARRAY_ATTRS);
5941 zend_ffi_throw_parser_error("Function returning function is not allowed at line %d", FFI_G(line));
5944 zend_ffi_throw_parser_error("Function returning array is not allowed at line %d", FFI_G(line));
5970 pefree(args, FFI_G(persistent));
5971 zend_ffi_parser_error("void type is not allowed at line %d", FFI_G(line));
5980 pefree(args, FFI_G(persistent));
6000 pefree(args, FFI_G(persistent));
6001 …ble is not allowed at position " ZEND_ULONG_FMT " with __vectorcall at line %d", i+1, FFI_G(line));
6013 pefree(args, FFI_G(persistent));
6015 LONGJMP(FFI_G(bailout), FAILURE);
6018 type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
6020 type->attr = FFI_G(default_type_attr) | (dcl->attr & ZEND_FFI_FUNC_ATTRS);
6074 pefree(args, FFI_G(persistent));
6078 zend_ffi_parser_error("Unsupported calling convention line %d", FFI_G(line));
6094 *args = pemalloc(sizeof(HashTable), FFI_G(persistent));
6095 zend_hash_init(*args, 0, NULL, zend_ffi_type_hash_dtor, FFI_G(persistent));
6104 zend_ffi_type *new_type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
6106 new_type->attr = FFI_G(default_type_attr) | (type->attr & ZEND_FFI_POINTER_ATTRS);
6113 zend_ffi_type *new_type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
6115 new_type->attr = FFI_G(default_type_attr);
6124 pefree(*args, FFI_G(persistent));
6126 LONGJMP(FFI_G(bailout), FAILURE);
6136 if (!FFI_G(symbols)) {
6137 FFI_G(symbols) = pemalloc(sizeof(HashTable), FFI_G(persistent));
6138 …zend_hash_init(FFI_G(symbols), 0, NULL, FFI_G(persistent) ? zend_ffi_symbol_hash_persistent_dtor :…
6141 sym = zend_hash_str_find_ptr(FFI_G(symbols), name, name_len);
6171 zend_ffi_parser_error("Redeclaration of \"%.*s\" at line %d", name_len, name, FFI_G(line));
6176 LONGJMP(FFI_G(bailout), FAILURE);
6182 zend_ffi_type *type = pemalloc(sizeof(zend_ffi_type), FFI_G(persistent));
6185 type->attr |= FFI_G(default_type_attr);
6190 sym = pemalloc(sizeof(zend_ffi_symbol), FFI_G(persistent));
6195 zend_hash_str_add_new_ptr(FFI_G(symbols), name, name_len, sym);
6202 LONGJMP(FFI_G(bailout), FAILURE);
6206 sym = pemalloc(sizeof(zend_ffi_symbol), FFI_G(persistent));
6211 zend_hash_str_add_new_ptr(FFI_G(symbols), name, name_len, sym);
6226 if (!FFI_G(tags)) {
6227 FFI_G(tags) = pemalloc(sizeof(HashTable), FFI_G(persistent));
6228 …zend_hash_init(FFI_G(tags), 0, NULL, FFI_G(persistent) ? zend_ffi_tag_hash_persistent_dtor : zend_…
6230 tag = zend_hash_str_find_ptr(FFI_G(tags), name, name_len);
6236 …zend_ffi_parser_error("\"%.*s\" defined as wrong kind of tag at line %d", name_len, name, FFI_G(li…
6239 … zend_ffi_parser_error("Redefinition of \"struct %.*s\" at line %d", name_len, name, FFI_G(line));
6244 …zend_ffi_parser_error("\"%.*s\" defined as wrong kind of tag at line %d", name_len, name, FFI_G(li…
6247 zend_ffi_parser_error("Redefinition of \"union %.*s\" at line %d", name_len, name, FFI_G(line));
6252 …zend_ffi_parser_error("\"%.*s\" defined as wrong kind of tag at line %d", name_len, name, FFI_G(li…
6255 zend_ffi_parser_error("Redefinition of \"enum %.*s\" at line %d", name_len, name, FFI_G(line));
6267 zend_ffi_tag *tag = pemalloc(sizeof(zend_ffi_tag), FFI_G(persistent));
6268 zend_string *tag_name = zend_string_init(name, name_len, FFI_G(persistent));
6293 zend_hash_add_new_ptr(FFI_G(tags), tag_name, tag);
6302 zend_ffi_parser_error("Multiple calling convention specifiers at line %d", FFI_G(line));
6398 zend_ffi_parser_error("Unsupported attribute \"%.*s\" at line %d", name_len, name, FFI_G(line));
6453 zend_ffi_parser_error("Incorrect \"regparam\" value at line %d", FFI_G(line));
6462 zend_ffi_parser_error("Incorrect \"alignment\" value at line %d", FFI_G(line));
6519 zend_ffi_parser_error("Unsupported \"mode\" value at line %d", FFI_G(line));
6522 zend_ffi_parser_error("Unsupported attribute \"%.*s\" at line %d", name_len, name, FFI_G(line));
6538 zend_ffi_parser_error("Incorrect \"alignment\" value at line %d", FFI_G(line));
6599 LONGJMP(FFI_G(bailout), FAILURE);