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