410 |
/* |
/* |
411 |
* This code is used by htags(1) to traverse file system. |
* This code is used by htags(1) to traverse file system. |
412 |
*/ |
*/ |
413 |
|
GFIND *gp; |
414 |
const char *path; |
const char *path; |
415 |
const char *local = (argc) ? argv[0] : NULL; |
const char *local = (argc) ? argv[0] : NULL; |
416 |
|
|
417 |
getdbpath(cwd, root, dbpath, 0); |
getdbpath(cwd, root, dbpath, 0); |
418 |
gfind_open(dbpath, local, other_files); |
gp = gfind_open(dbpath, local, other_files); |
419 |
while ((path = gfind_read()) != NULL) { |
while ((path = gfind_read(gp)) != NULL) { |
420 |
fputs(path, stdout); |
fputs(path, stdout); |
421 |
fputc('\n', stdout); |
fputc('\n', stdout); |
422 |
} |
} |
423 |
gfind_close(); |
gfind_close(gp); |
424 |
exit(0); |
exit(0); |
425 |
} else if (do_sort) { |
} else if (do_sort) { |
426 |
/* |
/* |
824 |
end = start + strbuf_getlen(addlist_other); |
end = start + strbuf_getlen(addlist_other); |
825 |
|
|
826 |
for (p = start; p < end; p += strlen(p) + 1) |
for (p = start; p < end; p += strlen(p) + 1) |
827 |
gpath_put(p, 1); |
gpath_put(p, GPATH_OTHER); |
828 |
} |
} |
829 |
gpath_close(); |
gpath_close(); |
830 |
updated = 1; |
updated = 1; |