Lines Matching refs:pattr
2573 sdlAttributePtr pattr; in make_persistent_sdl_attribute() local
2576 pattr = malloc(sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2577 memset(pattr, 0, sizeof(sdlAttribute)); in make_persistent_sdl_attribute()
2579 *pattr = *attr; in make_persistent_sdl_attribute()
2581 if (pattr->name) { in make_persistent_sdl_attribute()
2582 pattr->name = strdup(pattr->name); in make_persistent_sdl_attribute()
2584 if (pattr->namens) { in make_persistent_sdl_attribute()
2585 pattr->namens = strdup(pattr->namens); in make_persistent_sdl_attribute()
2587 if (pattr->ref) { in make_persistent_sdl_attribute()
2588 pattr->ref = strdup(pattr->ref); in make_persistent_sdl_attribute()
2590 if (pattr->def) { in make_persistent_sdl_attribute()
2591 pattr->def = strdup(pattr->def); in make_persistent_sdl_attribute()
2593 if (pattr->fixed) { in make_persistent_sdl_attribute()
2594 pattr->fixed = strdup(pattr->fixed); in make_persistent_sdl_attribute()
2598 if (pattr->encode) { in make_persistent_sdl_attribute()
2599 make_persistent_sdl_encoder_ref(&pattr->encode, ptr_map, bp_encoders); in make_persistent_sdl_attribute()
2602 if (pattr->extraAttributes) { in make_persistent_sdl_attribute()
2605 pattr->extraAttributes = malloc(sizeof(HashTable)); in make_persistent_sdl_attribute()
2606 …zend_hash_init(pattr->extraAttributes, zend_hash_num_elements(attr->extraAttributes), NULL, delete… in make_persistent_sdl_attribute()
2621 zend_hash_str_add_ptr(pattr->extraAttributes, ZSTR_VAL(key), ZSTR_LEN(key), pextra); in make_persistent_sdl_attribute()
2626 return pattr; in make_persistent_sdl_attribute()
2780 sdlAttributePtr tmp, pattr; in make_persistent_sdl_type() local
2786 pattr = make_persistent_sdl_attribute(tmp, ptr_map, bp_types, bp_encoders); in make_persistent_sdl_type()
2789 zend_hash_str_add_ptr(ptype->attributes, ZSTR_VAL(key), ZSTR_LEN(key), pattr); in make_persistent_sdl_type()
2791 zend_hash_next_index_insert_ptr(ptype->attributes, pattr); in make_persistent_sdl_type()