Lines Matching refs:pattr

2595 	sdlAttributePtr pattr;  in make_persistent_sdl_attribute()  local
2598 pattr = malloc(sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2599 memset(pattr, 0, sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2601 *pattr = *attr; in make_persistent_sdl_attribute()
2603 if (pattr->name) { in make_persistent_sdl_attribute()
2604 pattr->name = strdup(pattr->name); in make_persistent_sdl_attribute()
2606 if (pattr->namens) { in make_persistent_sdl_attribute()
2607 pattr->namens = strdup(pattr->namens); in make_persistent_sdl_attribute()
2609 if (pattr->ref) { in make_persistent_sdl_attribute()
2610 pattr->ref = strdup(pattr->ref); in make_persistent_sdl_attribute()
2612 if (pattr->def) { in make_persistent_sdl_attribute()
2613 pattr->def = strdup(pattr->def); in make_persistent_sdl_attribute()
2615 if (pattr->fixed) { in make_persistent_sdl_attribute()
2616 pattr->fixed = strdup(pattr->fixed); in make_persistent_sdl_attribute()
2620 if (pattr->encode) { in make_persistent_sdl_attribute()
2621 make_persistent_sdl_encoder_ref(&pattr->encode, ptr_map, bp_encoders); in make_persistent_sdl_attribute()
2624 if (pattr->extraAttributes) { in make_persistent_sdl_attribute()
2627 pattr->extraAttributes = malloc(sizeof(HashTable)); in make_persistent_sdl_attribute()
2628 …zend_hash_init(pattr->extraAttributes, zend_hash_num_elements(attr->extraAttributes), NULL, delete… in make_persistent_sdl_attribute()
2643 zend_hash_str_add_ptr(pattr->extraAttributes, ZSTR_VAL(key), ZSTR_LEN(key), pextra); in make_persistent_sdl_attribute()
2648 return pattr; in make_persistent_sdl_attribute()
2802 sdlAttributePtr tmp, pattr; in make_persistent_sdl_type() local
2808 pattr = make_persistent_sdl_attribute(tmp, ptr_map, bp_types, bp_encoders); in make_persistent_sdl_type()
2811 zend_hash_str_add_ptr(ptype->attributes, ZSTR_VAL(key), ZSTR_LEN(key), pattr); in make_persistent_sdl_type()
2813 zend_hash_next_index_insert_ptr(ptype->attributes, pattr); in make_persistent_sdl_type()