Lines Matching refs:pattr

2585 	sdlAttributePtr pattr;  in make_persistent_sdl_attribute()  local
2588 pattr = malloc(sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2589 memset(pattr, 0, sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2591 *pattr = *attr; in make_persistent_sdl_attribute()
2593 if (pattr->name) { in make_persistent_sdl_attribute()
2594 pattr->name = strdup(pattr->name); in make_persistent_sdl_attribute()
2596 if (pattr->namens) { in make_persistent_sdl_attribute()
2597 pattr->namens = strdup(pattr->namens); in make_persistent_sdl_attribute()
2599 if (pattr->ref) { in make_persistent_sdl_attribute()
2600 pattr->ref = strdup(pattr->ref); in make_persistent_sdl_attribute()
2602 if (pattr->def) { in make_persistent_sdl_attribute()
2603 pattr->def = strdup(pattr->def); in make_persistent_sdl_attribute()
2605 if (pattr->fixed) { in make_persistent_sdl_attribute()
2606 pattr->fixed = strdup(pattr->fixed); in make_persistent_sdl_attribute()
2610 if (pattr->encode) { in make_persistent_sdl_attribute()
2611 make_persistent_sdl_encoder_ref(&pattr->encode, ptr_map, bp_encoders); in make_persistent_sdl_attribute()
2614 if (pattr->extraAttributes) { in make_persistent_sdl_attribute()
2617 pattr->extraAttributes = malloc(sizeof(HashTable)); in make_persistent_sdl_attribute()
2618 …zend_hash_init(pattr->extraAttributes, zend_hash_num_elements(attr->extraAttributes), NULL, delete… in make_persistent_sdl_attribute()
2633 zend_hash_str_add_ptr(pattr->extraAttributes, ZSTR_VAL(key), ZSTR_LEN(key), pextra); in make_persistent_sdl_attribute()
2638 return pattr; in make_persistent_sdl_attribute()
2792 sdlAttributePtr tmp, pattr; in make_persistent_sdl_type() local
2798 pattr = make_persistent_sdl_attribute(tmp, ptr_map, bp_types, bp_encoders); in make_persistent_sdl_type()
2801 zend_hash_str_add_ptr(ptype->attributes, ZSTR_VAL(key), ZSTR_LEN(key), pattr); in make_persistent_sdl_type()
2803 zend_hash_next_index_insert_ptr(ptype->attributes, pattr); in make_persistent_sdl_type()