Lines Matching refs:newAttr

1732 	sdlAttributePtr newAttr;  in schema_attribute()  local
1744 newAttr = emalloc(sizeof(sdlAttribute)); in schema_attribute()
1745 memset(newAttr, 0, sizeof(sdlAttribute)); in schema_attribute()
1755 newAttr->namens = estrdup((char*)nsptr->href); in schema_attribute()
1768 newAttr->ref = estrndup(ZSTR_VAL(key.s), ZSTR_LEN(key.s)); in schema_attribute()
1781 newAttr->namens = estrdup((char*)ns->children->content); in schema_attribute()
1797 if (zend_hash_add_ptr(addHash, key.s, newAttr) == NULL) { in schema_attribute()
1817 newAttr->encode = get_create_encoder(sdl, cur_type, nsptr->href, BAD_CAST(cptype)); in schema_attribute()
1826 newAttr->def = estrdup((char*)attr->children->content); in schema_attribute()
1828 newAttr->fixed = estrdup((char*)attr->children->content); in schema_attribute()
1831 newAttr->form = XSD_FORM_QUALIFIED; in schema_attribute()
1833 newAttr->form = XSD_FORM_UNQUALIFIED; in schema_attribute()
1835 newAttr->form = XSD_FORM_DEFAULT; in schema_attribute()
1840 newAttr->name = estrdup((char*)attr->children->content); in schema_attribute()
1847 newAttr->use = XSD_USE_PROHIBITED; in schema_attribute()
1849 newAttr->use = XSD_USE_REQUIRED; in schema_attribute()
1851 newAttr->use = XSD_USE_OPTIONAL; in schema_attribute()
1853 newAttr->use = XSD_USE_DEFAULT; in schema_attribute()
1877 if (!newAttr->extraAttributes) { in schema_attribute()
1878 newAttr->extraAttributes = emalloc(sizeof(HashTable)); in schema_attribute()
1879 zend_hash_init(newAttr->extraAttributes, 0, NULL, delete_extra_attribute, 0); in schema_attribute()
1886 zend_hash_add_ptr(newAttr->extraAttributes, key2.s, ext); in schema_attribute()
1892 if (newAttr->form == XSD_FORM_DEFAULT) { in schema_attribute()
1899 newAttr->form = XSD_FORM_UNQUALIFIED; in schema_attribute()
1901 newAttr->form = XSD_FORM_QUALIFIED; in schema_attribute()
1908 newAttr->form = XSD_FORM_UNQUALIFIED; in schema_attribute()
1939 newAttr->encode = dummy_type->encode; in schema_attribute()
1987 sdlAttributePtr newAttr; in schema_attributeGroup() local
1996 newAttr = emalloc(sizeof(sdlAttribute)); in schema_attributeGroup()
1997 memset(newAttr, 0, sizeof(sdlAttribute)); in schema_attributeGroup()
2007 newAttr->ref = estrndup(ZSTR_VAL(key.s), ZSTR_LEN(key.s)); in schema_attributeGroup()
2012 zend_hash_next_index_insert_ptr(cur_type->attributes, newAttr); in schema_attributeGroup()
2147 sdlAttributePtr newAttr; in schema_attributegroup_fixup() local
2151 newAttr = emalloc(sizeof(sdlAttribute)); in schema_attributegroup_fixup()
2152 memcpy(newAttr, tmp_attr, sizeof(sdlAttribute)); in schema_attributegroup_fixup()
2153 if (newAttr->def) {newAttr->def = estrdup(newAttr->def);} in schema_attributegroup_fixup()
2154 if (newAttr->fixed) {newAttr->fixed = estrdup(newAttr->fixed);} in schema_attributegroup_fixup()
2155 if (newAttr->namens) {newAttr->namens = estrdup(newAttr->namens);} in schema_attributegroup_fixup()
2156 if (newAttr->name) {newAttr->name = estrdup(newAttr->name);} in schema_attributegroup_fixup()
2157 if (newAttr->extraAttributes) { in schema_attributegroup_fixup()
2159 …zend_hash_init(ht, zend_hash_num_elements(newAttr->extraAttributes), NULL, delete_extra_attribute,… in schema_attributegroup_fixup()
2160 zend_hash_copy(ht, newAttr->extraAttributes, copy_extra_attribute); in schema_attributegroup_fixup()
2161 newAttr->extraAttributes = ht; in schema_attributegroup_fixup()
2165 zend_hash_add_ptr(ht, _key, newAttr); in schema_attributegroup_fixup()