160 |
static const char *langmap = DEFAULTLANGMAP; |
static const char *langmap = DEFAULTLANGMAP; |
161 |
|
|
162 |
void |
void |
163 |
onintr(signo) |
onintr(int signo) |
|
int signo; |
|
164 |
{ |
{ |
165 |
signo = 0; /* to satisfy compiler */ |
signo = 0; /* to satisfy compiler */ |
166 |
exitflag = 1; |
exitflag = 1; |
183 |
* compare_dup_entry: compare function for sorting. |
* compare_dup_entry: compare function for sorting. |
184 |
*/ |
*/ |
185 |
static int |
static int |
186 |
compare_dup_entry(v1, v2) |
compare_dup_entry(const void *v1, const void *v2) |
|
const void *v1; |
|
|
const void *v2; |
|
187 |
{ |
{ |
188 |
const struct dup_entry *e1 = v1, *e2 = v2; |
const struct dup_entry *e1 = v1, *e2 = v2; |
189 |
int ret; |
int ret; |
197 |
* put_lines: sort and print duplicate lines |
* put_lines: sort and print duplicate lines |
198 |
*/ |
*/ |
199 |
static void |
static void |
200 |
put_lines(lines, entries, entry_count) |
put_lines(char *lines, struct dup_entry *entries, int entry_count) |
|
char *lines; |
|
|
struct dup_entry *entries; |
|
|
int entry_count; |
|
201 |
{ |
{ |
202 |
int i; |
int i; |
203 |
|
|
227 |
} |
} |
228 |
|
|
229 |
int |
int |
230 |
main(argc, argv) |
main(int argc, char **argv) |
|
int argc; |
|
|
char *argv[]; |
|
231 |
{ |
{ |
232 |
char root[MAXPATHLEN+1]; |
char root[MAXPATHLEN+1]; |
233 |
char dbpath[MAXPATHLEN+1]; |
char dbpath[MAXPATHLEN+1]; |
723 |
* r) 0: not updated, 1: updated |
* r) 0: not updated, 1: updated |
724 |
*/ |
*/ |
725 |
int |
int |
726 |
incremental(dbpath, root) |
incremental(const char *dbpath, const char *root) |
|
const char *dbpath; |
|
|
const char *root; |
|
727 |
{ |
{ |
728 |
struct stat statp; |
struct stat statp; |
729 |
time_t gtags_mtime; |
time_t gtags_mtime; |
867 |
* i) db GTAGS, GRTAGS, GSYMS |
* i) db GTAGS, GRTAGS, GSYMS |
868 |
*/ |
*/ |
869 |
void |
void |
870 |
updatetags(dbpath, root, deleteset, addlist, addtotal, db) |
updatetags(const char *dbpath, const char *root, IDSET *deleteset, STRBUF *addlist, int addtotal, int db) |
|
const char *dbpath; |
|
|
const char *root; |
|
|
IDSET *deleteset; |
|
|
STRBUF *addlist; |
|
|
int addtotal; |
|
|
int db; |
|
871 |
{ |
{ |
872 |
GTOP *gtop; |
GTOP *gtop; |
873 |
STRBUF *comline = strbuf_open(0); |
STRBUF *comline = strbuf_open(0); |
974 |
* i) db GTAGS, GRTAGS, GSYMS |
* i) db GTAGS, GRTAGS, GSYMS |
975 |
*/ |
*/ |
976 |
void |
void |
977 |
createtags(dbpath, root, db) |
createtags(const char *dbpath, const char *root, int db) |
|
const char *dbpath; |
|
|
const char *root; |
|
|
int db; |
|
978 |
{ |
{ |
979 |
const char *path; |
const char *path; |
980 |
GTOP *gtop; |
GTOP *gtop; |
1099 |
* r) exit code |
* r) exit code |
1100 |
*/ |
*/ |
1101 |
int |
int |
1102 |
printconf(name) |
printconf(const char *name) |
|
const char *name; |
|
1103 |
{ |
{ |
1104 |
int num; |
int num; |
1105 |
int exist = 1; |
int exist = 1; |
1129 |
static char basedir[MAXPATHLEN+1]; |
static char basedir[MAXPATHLEN+1]; |
1130 |
static int start_point; |
static int start_point; |
1131 |
void |
void |
1132 |
set_base_directory(root, cwd) |
set_base_directory(const char *root, const char *cwd) |
|
const char *root; |
|
|
const char *cwd; |
|
1133 |
{ |
{ |
1134 |
abspath = strbuf_open(MAXPATHLEN); |
abspath = strbuf_open(MAXPATHLEN); |
1135 |
strbuf_puts(abspath, root); |
strbuf_puts(abspath, root); |
1142 |
/* leave abspath unclosed. */ |
/* leave abspath unclosed. */ |
1143 |
} |
} |
1144 |
void |
void |
1145 |
put_converting(line, absolute, cxref) |
put_converting(const char *line, int absolute, int cxref) |
|
const char *line; |
|
|
int absolute; |
|
|
int cxref; |
|
1146 |
{ |
{ |
1147 |
char buf[MAXPATHLEN+1]; |
char buf[MAXPATHLEN+1]; |
1148 |
const char *p = line; |
const char *p = line; |