Lines Matching refs:newType

315 		sdlTypePtr newType, ptr;  in schema_simpleType()  local
317 newType = emalloc(sizeof(sdlType)); in schema_simpleType()
318 memset(newType, 0, sizeof(sdlType)); in schema_simpleType()
319 newType->kind = XSD_TYPEKIND_SIMPLE; in schema_simpleType()
321 newType->name = estrdup((char*)name->children->content); in schema_simpleType()
322 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
324 newType->name = estrdup(cur_type->name); in schema_simpleType()
325 newType->namens = estrdup(cur_type->namens); in schema_simpleType()
328 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_simpleType()
336 cur_type->encode->details.ns = estrdup(newType->namens); in schema_simpleType()
337 cur_type->encode->details.type_str = estrdup(newType->name); in schema_simpleType()
346 sdlTypePtr newType, ptr; in schema_simpleType() local
348 newType = emalloc(sizeof(sdlType)); in schema_simpleType()
349 memset(newType, 0, sizeof(sdlType)); in schema_simpleType()
350 newType->kind = XSD_TYPEKIND_SIMPLE; in schema_simpleType()
351 newType->name = estrdup((char*)name->children->content); in schema_simpleType()
352 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
355 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_simpleType()
361 … ptr = zend_hash_str_update_ptr(cur_type->elements, newType->name, strlen(newType->name), newType); in schema_simpleType()
421 sdlTypePtr newType; in schema_list() local
423 newType = emalloc(sizeof(sdlType)); in schema_list()
424 memset(newType, 0, sizeof(sdlType)); in schema_list()
426 newType->name = estrdup(type); in schema_list()
427 newType->namens = estrdup((char*)nsptr->href); in schema_list()
429 newType->encode = get_create_encoder(sdl, newType, nsptr->href, BAD_CAST(type)); in schema_list()
435 zend_hash_next_index_insert_ptr(cur_type->elements, newType); in schema_list()
447 sdlTypePtr newType; in schema_list() local
453 newType = emalloc(sizeof(sdlType)); in schema_list()
454 memset(newType, 0, sizeof(sdlType)); in schema_list()
463 newType->name = str; in schema_list()
465 newType->namens = estrdup((char*)tns->children->content); in schema_list()
471 zend_hash_next_index_insert_ptr(cur_type->elements, newType); in schema_list()
473 schema_simpleType(sdl, tns, trav, newType); in schema_list()
517 sdlTypePtr newType; in schema_union() local
519 newType = emalloc(sizeof(sdlType)); in schema_union()
520 memset(newType, 0, sizeof(sdlType)); in schema_union()
522 newType->name = estrdup(type); in schema_union()
523 newType->namens = estrdup((char*)nsptr->href); in schema_union()
525 newType->encode = get_create_encoder(sdl, newType, nsptr->href, BAD_CAST(type)); in schema_union()
531 zend_hash_next_index_insert_ptr(cur_type->elements, newType); in schema_union()
548 sdlTypePtr newType; in schema_union() local
550 newType = emalloc(sizeof(sdlType)); in schema_union()
551 memset(newType, 0, sizeof(sdlType)); in schema_union()
560 newType->name = str; in schema_union()
562 newType->namens = estrdup((char*)tns->children->content); in schema_union()
568 zend_hash_next_index_insert_ptr(cur_type->elements, newType); in schema_union()
570 schema_simpleType(sdl, tns, trav, newType); in schema_union()
1115 sdlTypePtr newType; in schema_group() local
1117 newType = emalloc(sizeof(sdlType)); in schema_group()
1118 memset(newType, 0, sizeof(sdlType)); in schema_group()
1124 if (zend_hash_add_ptr(sdl->groups, key.s, newType) == NULL) { in schema_group()
1128 cur_type = newType; in schema_group()
1370 sdlTypePtr newType, ptr; in schema_complexType() local
1372 newType = emalloc(sizeof(sdlType)); in schema_complexType()
1373 memset(newType, 0, sizeof(sdlType)); in schema_complexType()
1374 newType->kind = XSD_TYPEKIND_COMPLEX; in schema_complexType()
1376 newType->name = estrdup((char*)name->children->content); in schema_complexType()
1377 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1379 newType->name = estrdup(cur_type->name); in schema_complexType()
1380 newType->namens = estrdup(cur_type->namens); in schema_complexType()
1383 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_complexType()
1391 cur_type->encode->details.ns = estrdup(newType->namens); in schema_complexType()
1392 cur_type->encode->details.type_str = estrdup(newType->name); in schema_complexType()
1401 sdlTypePtr newType, ptr; in schema_complexType() local
1403 newType = emalloc(sizeof(sdlType)); in schema_complexType()
1404 memset(newType, 0, sizeof(sdlType)); in schema_complexType()
1405 newType->kind = XSD_TYPEKIND_COMPLEX; in schema_complexType()
1406 newType->name = estrdup((char*)name->children->content); in schema_complexType()
1407 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1409 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_complexType()
1503 sdlTypePtr newType; in schema_element() local
1506 newType = emalloc(sizeof(sdlType)); in schema_element()
1507 memset(newType, 0, sizeof(sdlType)); in schema_element()
1518 newType->namens = estrdup((char*)nsptr->href); in schema_element()
1530 newType->name = estrdup(type); in schema_element()
1534 newType->ref = estrndup(ZSTR_VAL(nscat.s), ZSTR_LEN(nscat.s)); in schema_element()
1537 newType->name = estrdup((char*)name->children->content); in schema_element()
1538 newType->namens = estrdup((char*)ns->children->content); in schema_element()
1541 newType->nillable = FALSE; in schema_element()
1549 smart_str_appends(&key, newType->namens); in schema_element()
1551 smart_str_appends(&key, newType->name); in schema_element()
1558 smart_str_appends(&key, newType->name); in schema_element()
1562 if (zend_hash_add_ptr(addHash, key.s, newType) == NULL) { in schema_element()
1566 zend_hash_next_index_insert_ptr(addHash, newType); in schema_element()
1575 newModel->u.element = newType; in schema_element()
1582 cur_type = newType; in schema_element()
1960 sdlTypePtr newType; in schema_attributeGroup() local
1967 newType = emalloc(sizeof(sdlType)); in schema_attributeGroup()
1968 memset(newType, 0, sizeof(sdlType)); in schema_attributeGroup()
1969 newType->name = estrdup((char*)name->children->content); in schema_attributeGroup()
1970 newType->namens = estrdup((char*)ns->children->content); in schema_attributeGroup()
1972 smart_str_appends(&key, newType->namens); in schema_attributeGroup()
1974 smart_str_appends(&key, newType->name); in schema_attributeGroup()
1977 if (zend_hash_add_ptr(ctx->attributeGroups, key.s, newType) == NULL) { in schema_attributeGroup()
1980 cur_type = newType; in schema_attributeGroup()