776 |
|
|
777 |
/* |
/* |
778 |
* Calculate the limit of path list. |
* Calculate the limit of path list. |
779 |
*/ |
*/ |
780 |
{ |
path_list_max = exec_line_limit(strlen("global -fnr")); |
|
int db; |
|
|
int max = 0; |
|
|
/* |
|
|
* Get the longest command line length except path list. |
|
|
*/ |
|
|
for (db = GTAGS; db < GTAGLIM; db++) { |
|
|
if (!symbol && db == GSYMS) |
|
|
continue; |
|
|
strbuf_reset(sb); |
|
|
if (!getconfs(dbname(db), sb)) |
|
|
die("cannot get parser for %s.", dbname(db)); |
|
|
if (strbuf_getlen(sb) > max) |
|
|
max = strbuf_getlen(sb); |
|
|
} |
|
|
path_list_max = exec_line_limit(max); |
|
|
strbuf_reset(sb); |
|
|
} |
|
781 |
if (other_files && !dynamic) |
if (other_files && !dynamic) |
782 |
snprintf(command, sizeof(command), "%s --other | gnusort -t / -k 2", findcom); |
snprintf(command, sizeof(command), "%s --other | gnusort -t / -k 2", findcom); |
783 |
else |
else |