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 */ |
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; |
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"; |
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. |