Lines Matching refs:field_dcl

6089 …eld(zend_ffi_dcl *struct_dcl, const char *name, size_t name_len, zend_ffi_dcl *field_dcl) /* {{{ */  argument
6096 zend_ffi_finalize_type(field_dcl);
6097 field_type = ZEND_FFI_TYPE(field_dcl->type);
6099 zend_ffi_cleanup_dcl(field_dcl);
6104 if (!(struct_type->attr & ZEND_FFI_ATTR_PACKED) && !(field_dcl->attr & ZEND_FFI_ATTR_PACKED)) {
6105 struct_type->align = MAX(struct_type->align, MAX(field_type->align, field_dcl->align));
6111 if (!(struct_type->attr & ZEND_FFI_ATTR_PACKED) && !(field_dcl->attr & ZEND_FFI_ATTR_PACKED)) {
6112 uint32_t field_align = MAX(field_type->align, field_dcl->align);
6118 field->type = field_dcl->type;
6119 field->is_const = (bool)(field_dcl->attr & ZEND_FFI_ATTR_CONST);
6123 field_dcl->type = field_type; /* reset "owned" flag */
6133 void zend_ffi_add_anonymous_field(zend_ffi_dcl *struct_dcl, zend_ffi_dcl *field_dcl) /* {{{ */ argument
6141 zend_ffi_finalize_type(field_dcl);
6142 field_type = ZEND_FFI_TYPE(field_dcl->type);
6144 zend_ffi_cleanup_dcl(field_dcl);
6149 if (!(struct_type->attr & ZEND_FFI_ATTR_PACKED) && !(field_dcl->attr & ZEND_FFI_ATTR_PACKED)) {
6150 struct_type->align = MAX(struct_type->align, MAX(field_type->align, field_dcl->align));
6154 zend_ffi_cleanup_dcl(field_dcl);
6157 if (!(struct_type->attr & ZEND_FFI_ATTR_PACKED) && !(field_dcl->attr & ZEND_FFI_ATTR_PACKED)) {
6158 uint32_t field_align = MAX(field_type->align, field_dcl->align);
6196 zend_ffi_type_dtor(field_dcl->type);
6197 field_dcl->type = NULL;
6201 …d_ffi_dcl *struct_dcl, const char *name, size_t name_len, zend_ffi_dcl *field_dcl, zend_ffi_val *b… argument
6208 zend_ffi_finalize_type(field_dcl);
6209 field_type = ZEND_FFI_TYPE(field_dcl->type);
6211 zend_ffi_cleanup_dcl(field_dcl);
6216 zend_ffi_cleanup_dcl(field_dcl);
6222 zend_ffi_cleanup_dcl(field_dcl);
6225 zend_ffi_cleanup_dcl(field_dcl);
6231 zend_ffi_cleanup_dcl(field_dcl);
6236 zend_ffi_cleanup_dcl(field_dcl);
6242 zend_ffi_cleanup_dcl(field_dcl);
6246 zend_ffi_cleanup_dcl(field_dcl);
6286 field->type = field_dcl->type;
6287 field->is_const = (bool)(field_dcl->attr & ZEND_FFI_ATTR_CONST);
6289 field_dcl->type = field_type; /* reset "owned" flag */