Lines Matching refs:pattr
2608 sdlAttributePtr pattr; in make_persistent_sdl_attribute() local
2613 pattr = malloc(sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2614 memset(pattr, 0, sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2616 *pattr = *attr; in make_persistent_sdl_attribute()
2618 if (pattr->name) { in make_persistent_sdl_attribute()
2619 pattr->name = strdup(pattr->name); in make_persistent_sdl_attribute()
2621 if (pattr->namens) { in make_persistent_sdl_attribute()
2622 pattr->namens = strdup(pattr->namens); in make_persistent_sdl_attribute()
2624 if (pattr->ref) { in make_persistent_sdl_attribute()
2625 pattr->ref = strdup(pattr->ref); in make_persistent_sdl_attribute()
2627 if (pattr->def) { in make_persistent_sdl_attribute()
2628 pattr->def = strdup(pattr->def); in make_persistent_sdl_attribute()
2630 if (pattr->fixed) { in make_persistent_sdl_attribute()
2631 pattr->fixed = strdup(pattr->fixed); in make_persistent_sdl_attribute()
2635 if (pattr->encode) { in make_persistent_sdl_attribute()
2636 make_persistent_sdl_encoder_ref(&pattr->encode, ptr_map, bp_encoders); in make_persistent_sdl_attribute()
2639 if (pattr->extraAttributes) { in make_persistent_sdl_attribute()
2642 pattr->extraAttributes = malloc(sizeof(HashTable)); in make_persistent_sdl_attribute()
2643 …zend_hash_init(pattr->extraAttributes, zend_hash_num_elements(attr->extraAttributes), NULL, delete… in make_persistent_sdl_attribute()
2645 zend_hash_internal_pointer_reset(pattr->extraAttributes); in make_persistent_sdl_attribute()
2658 …zend_hash_add(pattr->extraAttributes, key, key_len, (void*)&pextra, sizeof(sdlExtraAttributePtr), … in make_persistent_sdl_attribute()
2665 return pattr; in make_persistent_sdl_attribute()
2820 sdlAttributePtr *tmp, pattr; in make_persistent_sdl_type() local
2827 pattr = make_persistent_sdl_attribute(*tmp, ptr_map, bp_types, bp_encoders); in make_persistent_sdl_type()
2829 zend_hash_add(ptype->attributes, key, key_len, (void*)&pattr, sizeof(sdlAttributePtr), NULL); in make_persistent_sdl_type()
2831 zend_hash_next_index_insert(ptype->attributes, (void*)&pattr, sizeof(sdlAttributePtr), NULL); in make_persistent_sdl_type()