Lines Matching refs:new_child
140 struct node *new_child, *old_child; in merge_nodes() local
187 new_child = new_node->children; in merge_nodes()
188 new_node->children = new_child->next_sibling; in merge_nodes()
189 new_child->parent = NULL; in merge_nodes()
190 new_child->next_sibling = NULL; in merge_nodes()
192 if (new_child->deleted) { in merge_nodes()
193 delete_node_by_name(old_node, new_child->name); in merge_nodes()
194 free(new_child); in merge_nodes()
200 if (streq(old_child->name, new_child->name)) { in merge_nodes()
201 merge_nodes(old_child, new_child); in merge_nodes()
202 new_child = NULL; in merge_nodes()
208 if (new_child) in merge_nodes()
209 add_child(old_node, new_child); in merge_nodes()