78 |
char gtagsconf[MAXPATHLEN]; |
char gtagsconf[MAXPATHLEN]; |
79 |
char datadir[MAXPATHLEN]; |
char datadir[MAXPATHLEN]; |
80 |
|
|
|
char sort_path[MAXFILLEN]; |
|
81 |
char gtags_path[MAXFILLEN]; |
char gtags_path[MAXFILLEN]; |
82 |
char global_path[MAXFILLEN]; |
char global_path[MAXFILLEN]; |
83 |
const char *null_device = NULL_DEVICE; |
const char *null_device = NULL_DEVICE; |
868 |
} |
} |
869 |
strbuf_sprintf(sb, "%sMAINS%s\n", header_begin, header_end); |
strbuf_sprintf(sb, "%sMAINS%s\n", header_begin, header_end); |
870 |
|
|
871 |
snprintf(command, sizeof(command), "%s -nx %s | %s -k 1,1 -k 3,3 -k 2,2n", global_path, main_func, POSIX_SORT); |
snprintf(command, sizeof(command), "%s -x %s", global_path, main_func); |
872 |
ip = popen(command, "r"); |
ip = popen(command, "r"); |
873 |
if (!ip) |
if (!ip) |
874 |
die("cannot execute command '%s'.", command); |
die("cannot execute command '%s'.", command); |
929 |
/* |
/* |
930 |
* COMMAND EXISTENCE CHECK |
* COMMAND EXISTENCE CHECK |
931 |
*/ |
*/ |
|
if (!(p = usable(POSIX_SORT))) |
|
|
die("%s command required but not found.", POSIX_SORT); |
|
|
strlimcpy(sort_path, p, sizeof(sort_path)); |
|
932 |
if (!(p = usable("gtags"))) |
if (!(p = usable("gtags"))) |
933 |
die("gtags command required but not found."); |
die("gtags command required but not found."); |
934 |
strlimcpy(gtags_path, p, sizeof(gtags_path)); |
strlimcpy(gtags_path, p, sizeof(gtags_path)); |