Lines Matching refs:pattr

2593 	sdlAttributePtr pattr;  in make_persistent_sdl_attribute()  local
2596 pattr = malloc(sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2597 memset(pattr, 0, sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2599 *pattr = *attr; in make_persistent_sdl_attribute()
2601 if (pattr->name) { in make_persistent_sdl_attribute()
2602 pattr->name = strdup(pattr->name); in make_persistent_sdl_attribute()
2604 if (pattr->namens) { in make_persistent_sdl_attribute()
2605 pattr->namens = strdup(pattr->namens); in make_persistent_sdl_attribute()
2607 if (pattr->ref) { in make_persistent_sdl_attribute()
2608 pattr->ref = strdup(pattr->ref); in make_persistent_sdl_attribute()
2610 if (pattr->def) { in make_persistent_sdl_attribute()
2611 pattr->def = strdup(pattr->def); in make_persistent_sdl_attribute()
2613 if (pattr->fixed) { in make_persistent_sdl_attribute()
2614 pattr->fixed = strdup(pattr->fixed); in make_persistent_sdl_attribute()
2618 if (pattr->encode) { in make_persistent_sdl_attribute()
2619 make_persistent_sdl_encoder_ref(&pattr->encode, ptr_map, bp_encoders); in make_persistent_sdl_attribute()
2622 if (pattr->extraAttributes) { in make_persistent_sdl_attribute()
2625 pattr->extraAttributes = malloc(sizeof(HashTable)); in make_persistent_sdl_attribute()
2626 …zend_hash_init(pattr->extraAttributes, zend_hash_num_elements(attr->extraAttributes), NULL, delete… in make_persistent_sdl_attribute()
2641 zend_hash_str_add_ptr(pattr->extraAttributes, ZSTR_VAL(key), ZSTR_LEN(key), pextra); in make_persistent_sdl_attribute()
2646 return pattr; in make_persistent_sdl_attribute()
2800 sdlAttributePtr tmp, pattr; in make_persistent_sdl_type() local
2806 pattr = make_persistent_sdl_attribute(tmp, ptr_map, bp_types, bp_encoders); in make_persistent_sdl_type()
2809 zend_hash_str_add_ptr(ptype->attributes, ZSTR_VAL(key), ZSTR_LEN(key), pattr); in make_persistent_sdl_type()
2811 zend_hash_next_index_insert_ptr(ptype->attributes, pattr); in make_persistent_sdl_type()