Lines Matching refs:new_child
145 struct node *new_child, *old_child; in merge_nodes() local
194 new_child = new_node->children; in merge_nodes()
195 new_node->children = new_child->next_sibling; in merge_nodes()
196 new_child->parent = NULL; in merge_nodes()
197 new_child->next_sibling = NULL; in merge_nodes()
199 if (new_child->deleted) { in merge_nodes()
200 delete_node_by_name(old_node, new_child->name); in merge_nodes()
201 free(new_child); in merge_nodes()
207 if (streq(old_child->name, new_child->name)) { in merge_nodes()
208 merge_nodes(old_child, new_child); in merge_nodes()
209 new_child = NULL; in merge_nodes()
215 if (new_child) in merge_nodes()
216 add_child(old_node, new_child); in merge_nodes()