Lines Matching refs:c2

179 	NODE *c1, *c2, *n1, *n2;  in walk_in_the_forest()  local
189 c2 = t2->child; in walk_in_the_forest()
191 c2 = NULL; in walk_in_the_forest()
192 while (c1 != NULL || c2 != NULL) { in walk_in_the_forest()
196 if (c2 != NULL) in walk_in_the_forest()
197 n2 = c2->next; in walk_in_the_forest()
198 if (c1 != NULL && c2 != NULL) { in walk_in_the_forest()
199 if (c1->type != F_DIR && c2->type == F_DIR) { in walk_in_the_forest()
200 n2 = c2; in walk_in_the_forest()
201 c2 = NULL; in walk_in_the_forest()
202 } else if (c1->type == F_DIR && c2->type != F_DIR) { in walk_in_the_forest()
206 i = strcmp(c1->name, c2->name); in walk_in_the_forest()
211 n2 = c2; in walk_in_the_forest()
212 c2 = NULL; in walk_in_the_forest()
216 if (c1 == NULL && c2->type == F_DIR) { in walk_in_the_forest()
217 asprintf(&np, "%s%s/", path, c2->name); in walk_in_the_forest()
218 i = walk_in_the_forest(c1, c2, np); in walk_in_the_forest()
220 i += compare_nodes(c1, c2, path); in walk_in_the_forest()
221 } else if (c2 == NULL && c1->type == F_DIR) { in walk_in_the_forest()
223 i = walk_in_the_forest(c1, c2, np); in walk_in_the_forest()
225 i += compare_nodes(c1, c2, path); in walk_in_the_forest()
226 } else if (c1 == NULL || c2 == NULL) { in walk_in_the_forest()
227 i = compare_nodes(c1, c2, path); in walk_in_the_forest()
228 } else if (c1->type == F_DIR && c2->type == F_DIR) { in walk_in_the_forest()
230 i = walk_in_the_forest(c1, c2, np); in walk_in_the_forest()
232 i += compare_nodes(c1, c2, path); in walk_in_the_forest()
234 i = compare_nodes(c1, c2, path); in walk_in_the_forest()
238 c2 = n2; in walk_in_the_forest()