Lines Matching refs:pattr
2608 sdlAttributePtr pattr; in make_persistent_sdl_attribute() local
2611 pattr = malloc(sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2612 memset(pattr, 0, sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2614 *pattr = *attr; in make_persistent_sdl_attribute()
2616 if (pattr->name) { in make_persistent_sdl_attribute()
2617 pattr->name = strdup(pattr->name); in make_persistent_sdl_attribute()
2619 if (pattr->namens) { in make_persistent_sdl_attribute()
2620 pattr->namens = strdup(pattr->namens); in make_persistent_sdl_attribute()
2622 if (pattr->ref) { in make_persistent_sdl_attribute()
2623 pattr->ref = strdup(pattr->ref); in make_persistent_sdl_attribute()
2625 if (pattr->def) { in make_persistent_sdl_attribute()
2626 pattr->def = strdup(pattr->def); in make_persistent_sdl_attribute()
2628 if (pattr->fixed) { in make_persistent_sdl_attribute()
2629 pattr->fixed = strdup(pattr->fixed); in make_persistent_sdl_attribute()
2633 if (pattr->encode) { in make_persistent_sdl_attribute()
2634 make_persistent_sdl_encoder_ref(&pattr->encode, ptr_map, bp_encoders); in make_persistent_sdl_attribute()
2637 if (pattr->extraAttributes) { in make_persistent_sdl_attribute()
2640 pattr->extraAttributes = malloc(sizeof(HashTable)); in make_persistent_sdl_attribute()
2641 …zend_hash_init(pattr->extraAttributes, zend_hash_num_elements(attr->extraAttributes), NULL, delete… in make_persistent_sdl_attribute()
2656 zend_hash_str_add_ptr(pattr->extraAttributes, ZSTR_VAL(key), ZSTR_LEN(key), pextra); in make_persistent_sdl_attribute()
2661 return pattr; in make_persistent_sdl_attribute()
2815 sdlAttributePtr tmp, pattr; in make_persistent_sdl_type() local
2821 pattr = make_persistent_sdl_attribute(tmp, ptr_map, bp_types, bp_encoders); in make_persistent_sdl_type()
2824 zend_hash_str_add_ptr(ptype->attributes, ZSTR_VAL(key), ZSTR_LEN(key), pattr); in make_persistent_sdl_type()
2826 zend_hash_next_index_insert_ptr(ptype->attributes, pattr); in make_persistent_sdl_type()