Lines Matching refs:new_tree
80 scew_tree *new_tree = NULL; in scew_tree_copy() local
84 new_tree = calloc (1, sizeof (scew_tree)); in scew_tree_copy()
86 if (new_tree != NULL) in scew_tree_copy()
90 new_tree->version = scew_strdup (tree->version); in scew_tree_copy()
91 new_tree->encoding = scew_strdup (tree->encoding); in scew_tree_copy()
92 new_tree->preamble = scew_strdup (tree->preamble); in scew_tree_copy()
93 new_tree->standalone = tree->standalone; in scew_tree_copy()
94 new_tree->root = scew_element_copy (tree->root); in scew_tree_copy()
97 ((tree->version == NULL) || (new_tree->version != NULL)) in scew_tree_copy()
98 && ((tree->encoding == NULL) || (new_tree->encoding != NULL)) in scew_tree_copy()
99 && ((tree->preamble == NULL) || (new_tree->preamble != NULL)) in scew_tree_copy()
100 && ((tree->root == NULL) || (new_tree->root != NULL)); in scew_tree_copy()
104 scew_tree_free (new_tree); in scew_tree_copy()
105 new_tree = NULL; in scew_tree_copy()
109 return new_tree; in scew_tree_copy()