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

Diff of /global/gtags/gtags.c

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

revision 1.172 by shigio, Mon Nov 28 12:01:22 2005 UTC revision 1.173 by shigio, Wed Nov 30 02:26:19 2005 UTC
# Line 65  int printconf(const char *); Line 65  int printconf(const char *);
65  void set_base_directory(const char *, const char *);  void set_base_directory(const char *, const char *);
66  void put_converting(const char *, int, int);  void put_converting(const char *, int, int);
67    
 #define PATH_RELATIVE   0  
 #define PATH_ABSOLUTE   1  
   
68  int cflag;                                      /* compact format */  int cflag;                                      /* compact format */
69  int iflag;                                      /* incremental update */  int iflag;                                      /* incremental update */
70  int Iflag;                                      /* make  id-utils index */  int Iflag;                                      /* make  id-utils index */
# Line 96  int pathconvert = PATH_RELATIVE; Line 93  int pathconvert = PATH_RELATIVE;
93   */   */
94  int do_sort;  int do_sort;
95  int unique;  int unique;
96  int format = TAGSORT_PATH;  int format = FORMAT_PATH;
97    
98  int extractmethod;  int extractmethod;
99  int total;  int total;
# Line 167  main(int argc, char **argv) Line 164  main(int argc, char **argv)
164                                          pathconvert = PATH_ABSOLUTE;                                          pathconvert = PATH_ABSOLUTE;
165                          } else if (!strcmp(p, "format")) {                          } else if (!strcmp(p, "format")) {
166                                  if (!strcmp("ctags", optarg))                                  if (!strcmp("ctags", optarg))
167                                          format = TAGSORT_CTAGS;                                          format = FORMAT_CTAGS;
168                                  else if (!strcmp("path", optarg))                                  else if (!strcmp("path", optarg))
169                                          format = TAGSORT_PATH;                                          format = FORMAT_PATH;
170                                  else                                  else
171                                          format = TAGSORT_CTAGS_X;                                          format = FORMAT_CTAGS_X;
172                          } else if (gtagsconf || gtagslabel) {                          } else if (gtagsconf || gtagslabel) {
173                                  char value[MAXPATHLEN+1];                                  char value[MAXPATHLEN+1];
174                                  const char *name = (gtagsconf) ? "GTAGSCONF" : "GTAGSLABEL";                                  const char *name = (gtagsconf) ? "GTAGSCONF" : "GTAGSLABEL";
# Line 958  put_converting(const char *tagline, int Line 955  put_converting(const char *tagline, int
955          /*          /*
956           * print until path name.           * print until path name.
957           */           */
958          if (format == TAGSORT_PATH) {          if (format == FORMAT_PATH) {
959                  path = (char *)tagline;                  path = (char *)tagline;
960          } else {        /* TAGSORT_CTAGS, TAGSORT_CTAGS_X */          } else {        /* FORMAT_CTAGS, FORMAT_CTAGS_X */
961                  int savec = 0;                  int savec = 0;
962                  /*                  /*
963                   * Move to the head of path name.                   * Move to the head of path name.

Legend:
Removed from v.1.172  
changed lines
  Added in v.1.173

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