Lines Matching refs:newAttr
1729 sdlAttributePtr newAttr; in schema_attribute() local
1741 newAttr = emalloc(sizeof(sdlAttribute)); in schema_attribute()
1742 memset(newAttr, 0, sizeof(sdlAttribute)); in schema_attribute()
1752 newAttr->namens = estrdup((char*)nsptr->href); in schema_attribute()
1765 newAttr->ref = estrndup(ZSTR_VAL(key.s), ZSTR_LEN(key.s)); in schema_attribute()
1778 newAttr->namens = estrdup((char*)ns->children->content); in schema_attribute()
1794 if (zend_hash_add_ptr(addHash, key.s, newAttr) == NULL) { in schema_attribute()
1814 newAttr->encode = get_create_encoder(sdl, cur_type, nsptr->href, BAD_CAST(cptype)); in schema_attribute()
1823 newAttr->def = estrdup((char*)attr->children->content); in schema_attribute()
1825 newAttr->fixed = estrdup((char*)attr->children->content); in schema_attribute()
1828 newAttr->form = XSD_FORM_QUALIFIED; in schema_attribute()
1830 newAttr->form = XSD_FORM_UNQUALIFIED; in schema_attribute()
1832 newAttr->form = XSD_FORM_DEFAULT; in schema_attribute()
1837 newAttr->name = estrdup((char*)attr->children->content); in schema_attribute()
1844 newAttr->use = XSD_USE_PROHIBITED; in schema_attribute()
1846 newAttr->use = XSD_USE_REQUIRED; in schema_attribute()
1848 newAttr->use = XSD_USE_OPTIONAL; in schema_attribute()
1850 newAttr->use = XSD_USE_DEFAULT; in schema_attribute()
1874 if (!newAttr->extraAttributes) { in schema_attribute()
1875 newAttr->extraAttributes = emalloc(sizeof(HashTable)); in schema_attribute()
1876 zend_hash_init(newAttr->extraAttributes, 0, NULL, delete_extra_attribute, 0); in schema_attribute()
1883 zend_hash_add_ptr(newAttr->extraAttributes, key2.s, ext); in schema_attribute()
1889 if (newAttr->form == XSD_FORM_DEFAULT) { in schema_attribute()
1896 newAttr->form = XSD_FORM_UNQUALIFIED; in schema_attribute()
1898 newAttr->form = XSD_FORM_QUALIFIED; in schema_attribute()
1905 newAttr->form = XSD_FORM_UNQUALIFIED; in schema_attribute()
1936 newAttr->encode = dummy_type->encode; in schema_attribute()
1984 sdlAttributePtr newAttr; in schema_attributeGroup() local
1993 newAttr = emalloc(sizeof(sdlAttribute)); in schema_attributeGroup()
1994 memset(newAttr, 0, sizeof(sdlAttribute)); in schema_attributeGroup()
2004 newAttr->ref = estrndup(ZSTR_VAL(key.s), ZSTR_LEN(key.s)); in schema_attributeGroup()
2009 zend_hash_next_index_insert_ptr(cur_type->attributes, newAttr); in schema_attributeGroup()
2144 sdlAttributePtr newAttr; in schema_attributegroup_fixup() local
2148 newAttr = emalloc(sizeof(sdlAttribute)); in schema_attributegroup_fixup()
2149 memcpy(newAttr, tmp_attr, sizeof(sdlAttribute)); in schema_attributegroup_fixup()
2150 if (newAttr->def) {newAttr->def = estrdup(newAttr->def);} in schema_attributegroup_fixup()
2151 if (newAttr->fixed) {newAttr->fixed = estrdup(newAttr->fixed);} in schema_attributegroup_fixup()
2152 if (newAttr->namens) {newAttr->namens = estrdup(newAttr->namens);} in schema_attributegroup_fixup()
2153 if (newAttr->name) {newAttr->name = estrdup(newAttr->name);} in schema_attributegroup_fixup()
2154 if (newAttr->extraAttributes) { in schema_attributegroup_fixup()
2156 …zend_hash_init(ht, zend_hash_num_elements(newAttr->extraAttributes), NULL, delete_extra_attribute,… in schema_attributegroup_fixup()
2157 zend_hash_copy(ht, newAttr->extraAttributes, copy_extra_attribute); in schema_attributegroup_fixup()
2158 newAttr->extraAttributes = ht; in schema_attributegroup_fixup()
2162 zend_hash_add_ptr(ht, _key, newAttr); in schema_attributegroup_fixup()