version 1.67, 2015/01/23 22:35:57 |
version 1.68, 2016/10/21 16:12:38 |
|
|
* If found, we concatenate the directory name and the |
* If found, we concatenate the directory name and the |
* final component and return the resulting string. */ |
* final component and return the resulting string. */ |
for (ln = Lst_First(path); ln != NULL; ln = Lst_Adv(ln)) { |
for (ln = Lst_First(path); ln != NULL; ln = Lst_Adv(ln)) { |
p = (struct PathEntry *)Lst_Datum(ln); |
p = Lst_Datum(ln); |
if (DEBUG(DIR)) |
if (DEBUG(DIR)) |
printf("%s...", p->name); |
printf("%s...", p->name); |
if (find_file_hashi(p, basename, ename, hv) != NULL) { |
if (find_file_hashi(p, basename, ename, hv) != NULL) { |
|
|
if (DEBUG(DIR)) |
if (DEBUG(DIR)) |
printf("failed. Trying subdirectories..."); |
printf("failed. Trying subdirectories..."); |
for (ln = Lst_First(path); ln != NULL; ln = Lst_Adv(ln)) { |
for (ln = Lst_First(path); ln != NULL; ln = Lst_Adv(ln)) { |
p = (struct PathEntry *)Lst_Datum(ln); |
p = Lst_Datum(ln); |
if (p != dot) |
if (p != dot) |
file = Str_concati(p->name, |
file = Str_concati(p->name, |
strchr(p->name, '\0'), name, ename, '/'); |
strchr(p->name, '\0'), name, ename, '/'); |
|
|
struct PathEntry *p; |
struct PathEntry *p; |
|
|
for (ln = Lst_First(path2); ln != NULL; ln = Lst_Adv(ln)) { |
for (ln = Lst_First(path2); ln != NULL; ln = Lst_Adv(ln)) { |
p = (struct PathEntry *)Lst_Datum(ln); |
p = Lst_Datum(ln); |
if (Lst_AddNew(path1, p)) |
if (Lst_AddNew(path1, p)) |
p->refCount++; |
p->refCount++; |
} |
} |