Lines Matching refs:newType

317 		sdlTypePtr newType, ptr;  in schema_simpleType()  local
319 newType = emalloc(sizeof(sdlType)); in schema_simpleType()
320 memset(newType, 0, sizeof(sdlType)); in schema_simpleType()
321 newType->kind = XSD_TYPEKIND_SIMPLE; in schema_simpleType()
323 newType->name = estrdup((char*)name->children->content); in schema_simpleType()
324 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
326 newType->name = estrdup(cur_type->name); in schema_simpleType()
327 newType->namens = estrdup(cur_type->namens); in schema_simpleType()
330 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_simpleType()
338 cur_type->encode->details.ns = estrdup(newType->namens); in schema_simpleType()
339 cur_type->encode->details.type_str = estrdup(newType->name); in schema_simpleType()
348 sdlTypePtr newType, ptr; in schema_simpleType() local
350 newType = emalloc(sizeof(sdlType)); in schema_simpleType()
351 memset(newType, 0, sizeof(sdlType)); in schema_simpleType()
352 newType->kind = XSD_TYPEKIND_SIMPLE; in schema_simpleType()
353 newType->name = estrdup((char*)name->children->content); in schema_simpleType()
354 newType->namens = estrdup((char*)ns->children->content); in schema_simpleType()
357 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_simpleType()
363 … ptr = zend_hash_str_update_ptr(cur_type->elements, newType->name, strlen(newType->name), newType); in schema_simpleType()
423 sdlTypePtr newType; in schema_list() local
425 newType = emalloc(sizeof(sdlType)); in schema_list()
426 memset(newType, 0, sizeof(sdlType)); in schema_list()
428 newType->name = estrdup(type); in schema_list()
429 newType->namens = estrdup((char*)nsptr->href); in schema_list()
431 newType->encode = get_create_encoder(sdl, newType, nsptr->href, BAD_CAST(type)); in schema_list()
437 zend_hash_next_index_insert_ptr(cur_type->elements, newType); in schema_list()
449 sdlTypePtr newType; in schema_list() local
455 newType = emalloc(sizeof(sdlType)); in schema_list()
456 memset(newType, 0, sizeof(sdlType)); in schema_list()
465 newType->name = str; in schema_list()
467 newType->namens = estrdup((char*)tns->children->content); in schema_list()
473 zend_hash_next_index_insert_ptr(cur_type->elements, newType); in schema_list()
475 schema_simpleType(sdl, tns, trav, newType); in schema_list()
519 sdlTypePtr newType; in schema_union() local
521 newType = emalloc(sizeof(sdlType)); in schema_union()
522 memset(newType, 0, sizeof(sdlType)); in schema_union()
524 newType->name = estrdup(type); in schema_union()
525 newType->namens = estrdup((char*)nsptr->href); in schema_union()
527 newType->encode = get_create_encoder(sdl, newType, nsptr->href, BAD_CAST(type)); in schema_union()
533 zend_hash_next_index_insert_ptr(cur_type->elements, newType); in schema_union()
550 sdlTypePtr newType; in schema_union() local
552 newType = emalloc(sizeof(sdlType)); in schema_union()
553 memset(newType, 0, sizeof(sdlType)); in schema_union()
562 newType->name = str; in schema_union()
564 newType->namens = estrdup((char*)tns->children->content); in schema_union()
570 zend_hash_next_index_insert_ptr(cur_type->elements, newType); in schema_union()
572 schema_simpleType(sdl, tns, trav, newType); in schema_union()
1117 sdlTypePtr newType; in schema_group() local
1119 newType = emalloc(sizeof(sdlType)); in schema_group()
1120 memset(newType, 0, sizeof(sdlType)); in schema_group()
1126 if (zend_hash_add_ptr(sdl->groups, key.s, newType) == NULL) { in schema_group()
1130 cur_type = newType; in schema_group()
1372 sdlTypePtr newType, ptr; in schema_complexType() local
1374 newType = emalloc(sizeof(sdlType)); in schema_complexType()
1375 memset(newType, 0, sizeof(sdlType)); in schema_complexType()
1376 newType->kind = XSD_TYPEKIND_COMPLEX; in schema_complexType()
1378 newType->name = estrdup((char*)name->children->content); in schema_complexType()
1379 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1381 newType->name = estrdup(cur_type->name); in schema_complexType()
1382 newType->namens = estrdup(cur_type->namens); in schema_complexType()
1385 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_complexType()
1393 cur_type->encode->details.ns = estrdup(newType->namens); in schema_complexType()
1394 cur_type->encode->details.type_str = estrdup(newType->name); in schema_complexType()
1403 sdlTypePtr newType, ptr; in schema_complexType() local
1405 newType = emalloc(sizeof(sdlType)); in schema_complexType()
1406 memset(newType, 0, sizeof(sdlType)); in schema_complexType()
1407 newType->kind = XSD_TYPEKIND_COMPLEX; in schema_complexType()
1408 newType->name = estrdup((char*)name->children->content); in schema_complexType()
1409 newType->namens = estrdup((char*)ns->children->content); in schema_complexType()
1411 ptr = zend_hash_next_index_insert_ptr(sdl->types, newType); in schema_complexType()
1505 sdlTypePtr newType; in schema_element() local
1508 newType = emalloc(sizeof(sdlType)); in schema_element()
1509 memset(newType, 0, sizeof(sdlType)); in schema_element()
1520 newType->namens = estrdup((char*)nsptr->href); in schema_element()
1532 newType->name = estrdup(type); in schema_element()
1536 newType->ref = estrndup(ZSTR_VAL(nscat.s), ZSTR_LEN(nscat.s)); in schema_element()
1539 newType->name = estrdup((char*)name->children->content); in schema_element()
1540 newType->namens = estrdup((char*)ns->children->content); in schema_element()
1543 newType->nillable = FALSE; in schema_element()
1551 smart_str_appends(&key, newType->namens); in schema_element()
1553 smart_str_appends(&key, newType->name); in schema_element()
1560 smart_str_appends(&key, newType->name); in schema_element()
1564 if (zend_hash_add_ptr(addHash, key.s, newType) == NULL) { in schema_element()
1568 zend_hash_next_index_insert_ptr(addHash, newType); in schema_element()
1577 newModel->u.element = newType; in schema_element()
1584 cur_type = newType; in schema_element()
1962 sdlTypePtr newType; in schema_attributeGroup() local
1969 newType = emalloc(sizeof(sdlType)); in schema_attributeGroup()
1970 memset(newType, 0, sizeof(sdlType)); in schema_attributeGroup()
1971 newType->name = estrdup((char*)name->children->content); in schema_attributeGroup()
1972 newType->namens = estrdup((char*)ns->children->content); in schema_attributeGroup()
1974 smart_str_appends(&key, newType->namens); in schema_attributeGroup()
1976 smart_str_appends(&key, newType->name); in schema_attributeGroup()
1979 if (zend_hash_add_ptr(ctx->attributeGroups, key.s, newType) == NULL) { in schema_attributeGroup()
1982 cur_type = newType; in schema_attributeGroup()