Lines Matching refs:newAttr
1727 sdlAttributePtr newAttr; in schema_attribute() local
1739 newAttr = emalloc(sizeof(sdlAttribute)); in schema_attribute()
1740 memset(newAttr, 0, sizeof(sdlAttribute)); in schema_attribute()
1750 newAttr->namens = estrdup((char*)nsptr->href); in schema_attribute()
1763 newAttr->ref = estrndup(ZSTR_VAL(key.s), ZSTR_LEN(key.s)); in schema_attribute()
1776 newAttr->namens = estrdup((char*)ns->children->content); in schema_attribute()
1792 if (zend_hash_add_ptr(addHash, key.s, newAttr) == NULL) { in schema_attribute()
1813 newAttr->encode = get_create_encoder(sdl, cur_type, nsptr->href, BAD_CAST(cptype)); in schema_attribute()
1822 newAttr->def = estrdup((char*)attr->children->content); in schema_attribute()
1824 newAttr->fixed = estrdup((char*)attr->children->content); in schema_attribute()
1827 newAttr->form = XSD_FORM_QUALIFIED; in schema_attribute()
1829 newAttr->form = XSD_FORM_UNQUALIFIED; in schema_attribute()
1831 newAttr->form = XSD_FORM_DEFAULT; in schema_attribute()
1836 newAttr->name = estrdup((char*)attr->children->content); in schema_attribute()
1843 newAttr->use = XSD_USE_PROHIBITED; in schema_attribute()
1845 newAttr->use = XSD_USE_REQUIRED; in schema_attribute()
1847 newAttr->use = XSD_USE_OPTIONAL; in schema_attribute()
1849 newAttr->use = XSD_USE_DEFAULT; in schema_attribute()
1873 if (!newAttr->extraAttributes) { in schema_attribute()
1874 newAttr->extraAttributes = emalloc(sizeof(HashTable)); in schema_attribute()
1875 zend_hash_init(newAttr->extraAttributes, 0, NULL, delete_extra_attribute, 0); in schema_attribute()
1882 zend_hash_add_ptr(newAttr->extraAttributes, key2.s, ext); in schema_attribute()
1888 if (newAttr->form == XSD_FORM_DEFAULT) { in schema_attribute()
1895 newAttr->form = XSD_FORM_UNQUALIFIED; in schema_attribute()
1897 newAttr->form = XSD_FORM_QUALIFIED; in schema_attribute()
1904 newAttr->form = XSD_FORM_UNQUALIFIED; in schema_attribute()
1935 newAttr->encode = dummy_type->encode; in schema_attribute()
1983 sdlAttributePtr newAttr; in schema_attributeGroup() local
1992 newAttr = emalloc(sizeof(sdlAttribute)); in schema_attributeGroup()
1993 memset(newAttr, 0, sizeof(sdlAttribute)); in schema_attributeGroup()
2003 newAttr->ref = estrndup(ZSTR_VAL(key.s), ZSTR_LEN(key.s)); in schema_attributeGroup()
2008 zend_hash_next_index_insert_ptr(cur_type->attributes, newAttr); in schema_attributeGroup()
2143 sdlAttributePtr newAttr; in schema_attributegroup_fixup() local
2147 newAttr = emalloc(sizeof(sdlAttribute)); in schema_attributegroup_fixup()
2148 memcpy(newAttr, tmp_attr, sizeof(sdlAttribute)); in schema_attributegroup_fixup()
2149 if (newAttr->def) {newAttr->def = estrdup(newAttr->def);} in schema_attributegroup_fixup()
2150 if (newAttr->fixed) {newAttr->fixed = estrdup(newAttr->fixed);} in schema_attributegroup_fixup()
2151 if (newAttr->namens) {newAttr->namens = estrdup(newAttr->namens);} in schema_attributegroup_fixup()
2152 if (newAttr->name) {newAttr->name = estrdup(newAttr->name);} in schema_attributegroup_fixup()
2153 if (newAttr->extraAttributes) { in schema_attributegroup_fixup()
2155 …zend_hash_init(ht, zend_hash_num_elements(newAttr->extraAttributes), NULL, delete_extra_attribute,… in schema_attributegroup_fixup()
2156 zend_hash_copy(ht, newAttr->extraAttributes, copy_extra_attribute); in schema_attributegroup_fixup()
2157 newAttr->extraAttributes = ht; in schema_attributegroup_fixup()
2161 zend_hash_add_ptr(ht, _key, newAttr); in schema_attributegroup_fixup()