754 |
* anchor_stream: for anchor_load(). |
* anchor_stream: for anchor_load(). |
755 |
*/ |
*/ |
756 |
if (other_files && !dynamic) |
if (other_files && !dynamic) |
757 |
snprintf(command, sizeof(command), "%s --other | gnusort -t / -k 2", findcom); |
snprintf(command, sizeof(command), "%s --other | %s -t / -k 2", findcom, POSIX_SORT); |
758 |
else |
else |
759 |
strlimcpy(command, findcom, sizeof(command)); |
strlimcpy(command, findcom, sizeof(command)); |
760 |
ip = popen(command, "r"); |
ip = popen(command, "r"); |
897 |
} |
} |
898 |
strbuf_sprintf(sb, "%sMAINS%s\n", header_begin, header_end); |
strbuf_sprintf(sb, "%sMAINS%s\n", header_begin, header_end); |
899 |
|
|
900 |
snprintf(command, sizeof(command), "%s -nx %s | gnusort -k 1,1 -k 3,3 -k 2,2n", global_path, main_func); |
snprintf(command, sizeof(command), "%s -nx %s | %s -k 1,1 -k 3,3 -k 2,2n", global_path, main_func, POSIX_SORT); |
901 |
ip = popen(command, "r"); |
ip = popen(command, "r"); |
902 |
if (!ip) |
if (!ip) |
903 |
die("cannot execute command '%s'.", command); |
die("cannot execute command '%s'.", command); |
958 |
/* |
/* |
959 |
* COMMAND EXISTENCE CHECK |
* COMMAND EXISTENCE CHECK |
960 |
*/ |
*/ |
961 |
if (!(p = usable("gnusort"))) |
if (!(p = usable(POSIX_SORT))) |
962 |
die("gnusort command required but not found."); |
die("%s command required but not found.", POSIX_SORT); |
963 |
strlimcpy(sort_path, p, sizeof(sort_path)); |
strlimcpy(sort_path, p, sizeof(sort_path)); |
964 |
if (!(p = usable("gtags"))) |
if (!(p = usable("gtags"))) |
965 |
die("gtags command required but not found."); |
die("gtags command required but not found."); |