Lines Matching full:c2

196 	NODE *c1, *c2, *n1, *n2;  in walk_in_the_forest()  local
206 c2 = t2->child; in walk_in_the_forest()
208 c2 = NULL; in walk_in_the_forest()
209 while (c1 != NULL || c2 != NULL) { in walk_in_the_forest()
213 if (c2 != NULL) in walk_in_the_forest()
214 n2 = c2->next; in walk_in_the_forest()
215 if (c1 != NULL && c2 != NULL) { in walk_in_the_forest()
216 if (c1->type != F_DIR && c2->type == F_DIR) { in walk_in_the_forest()
217 n2 = c2; in walk_in_the_forest()
218 c2 = NULL; in walk_in_the_forest()
219 } else if (c1->type == F_DIR && c2->type != F_DIR) { in walk_in_the_forest()
223 i = strcmp(c1->name, c2->name); in walk_in_the_forest()
228 n2 = c2; in walk_in_the_forest()
229 c2 = NULL; in walk_in_the_forest()
233 if (c1 == NULL && c2->type == F_DIR) { in walk_in_the_forest()
234 asprintf(&np, "%s%s/", path, c2->name); in walk_in_the_forest()
235 i = walk_in_the_forest(c1, c2, np); in walk_in_the_forest()
237 i += compare_nodes(c1, c2, path); in walk_in_the_forest()
238 } else if (c2 == NULL && c1->type == F_DIR) { in walk_in_the_forest()
240 i = walk_in_the_forest(c1, c2, np); in walk_in_the_forest()
242 i += compare_nodes(c1, c2, path); in walk_in_the_forest()
243 } else if (c1 == NULL || c2 == NULL) { in walk_in_the_forest()
244 i = compare_nodes(c1, c2, path); in walk_in_the_forest()
245 } else if (c1->type == F_DIR && c2->type == F_DIR) { in walk_in_the_forest()
247 i = walk_in_the_forest(c1, c2, np); in walk_in_the_forest()
249 i += compare_nodes(c1, c2, path); in walk_in_the_forest()
251 i = compare_nodes(c1, c2, path); in walk_in_the_forest()
255 c2 = n2; in walk_in_the_forest()