593 |
const char *target = (Fflag) ? "mains" : "_top"; |
const char *target = (Fflag) ? "mains" : "_top"; |
594 |
struct dirstack *dirstack = make_stack("dirstack"); |
struct dirstack *dirstack = make_stack("dirstack"); |
595 |
struct dirstack *fdstack = make_stack("fdstack"); |
struct dirstack *fdstack = make_stack("fdstack"); |
596 |
const char *command = (other_files) ? "gtags --find --other | gnusort -t / -k 2" |
char command[MAXFILLEN]; |
|
: "gtags --find"; |
|
597 |
struct dirstack *push = make_stack("push"); |
struct dirstack *push = make_stack("push"); |
598 |
struct dirstack *pop = make_stack("pop"); |
struct dirstack *pop = make_stack("pop"); |
599 |
/* |
/* |
602 |
int flags = REG_EXTENDED; |
int flags = REG_EXTENDED; |
603 |
regex_t is_include_file; |
regex_t is_include_file; |
604 |
|
|
605 |
|
if (other_files) |
606 |
|
snprintf(command, sizeof(command), "gtags --find --other | %s -t / -k 2", POSIX_SORT); |
607 |
|
else |
608 |
|
snprintf(command, sizeof(command), "gtags --find"); |
609 |
if (w32) |
if (w32) |
610 |
flags |= REG_ICASE; |
flags |= REG_ICASE; |
611 |
strbuf_reset(sb); |
strbuf_reset(sb); |