Lines Matching full:c1

196 	NODE *c1, *c2, *n1, *n2;  in walk_in_the_forest()  local
202 c1 = t1->child; in walk_in_the_forest()
204 c1 = NULL; in walk_in_the_forest()
209 while (c1 != NULL || c2 != NULL) { in walk_in_the_forest()
211 if (c1 != NULL) in walk_in_the_forest()
212 n1 = c1->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()
219 } else if (c1->type == F_DIR && c2->type != F_DIR) { in walk_in_the_forest()
220 n1 = c1; in walk_in_the_forest()
221 c1 = NULL; in walk_in_the_forest()
223 i = strcmp(c1->name, c2->name); in walk_in_the_forest()
225 n1 = c1; in walk_in_the_forest()
226 c1 = NULL; in walk_in_the_forest()
233 if (c1 == NULL && c2->type == F_DIR) { 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()
239 asprintf(&np, "%s%s/", path, c1->name); 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()
246 asprintf(&np, "%s%s/", path, c1->name); 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()
254 c1 = n1; in walk_in_the_forest()