/[global]/global/htags/htags.c
ViewVC logotype

Diff of /global/htags/htags.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.84 by shigio, Thu Nov 17 09:22:35 2005 UTC revision 1.85 by shigio, Fri Nov 18 04:51:16 2005 UTC
# Line 78  char distpath[MAXPATHLEN]; Line 78  char distpath[MAXPATHLEN];
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;
# Line 869  makecommonpart(const char *title, const Line 868  makecommonpart(const char *title, const
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);
# Line 930  basic_check(void) Line 929  basic_check(void)
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));

Legend:
Removed from v.1.84  
changed lines
  Added in v.1.85

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26