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