Lines Matching refs:pmodel
2644 sdlContentModelPtr pmodel; in make_persistent_sdl_model() local
2647 pmodel = malloc(sizeof(sdlContentModel)); in make_persistent_sdl_model()
2648 memset(pmodel, 0, sizeof(sdlContentModel)); in make_persistent_sdl_model()
2649 *pmodel = *model; in make_persistent_sdl_model()
2651 switch (pmodel->kind) { in make_persistent_sdl_model()
2653 if (pmodel->u.element) { in make_persistent_sdl_model()
2654 make_persistent_sdl_type_ref(&pmodel->u.element, ptr_map, bp_types); in make_persistent_sdl_model()
2661 pmodel->u.content = malloc(sizeof(HashTable)); in make_persistent_sdl_model()
2662 …zend_hash_init(pmodel->u.content, zend_hash_num_elements(model->u.content), NULL, delete_model_per… in make_persistent_sdl_model()
2666 zend_hash_next_index_insert_ptr(pmodel->u.content, pcontent); in make_persistent_sdl_model()
2671 if (pmodel->u.group_ref) { in make_persistent_sdl_model()
2672 pmodel->u.group_ref = strdup(pmodel->u.group_ref); in make_persistent_sdl_model()
2677 if (pmodel->u.group) { in make_persistent_sdl_model()
2678 make_persistent_sdl_type_ref(&pmodel->u.group, ptr_map, bp_types); in make_persistent_sdl_model()
2686 return pmodel; in make_persistent_sdl_model()