60 |
static int exec_parser(const char *, STRBUF *, const char *, const char *, FILE *); |
static int exec_parser(const char *, STRBUF *, const char *, const char *, FILE *); |
61 |
void printtag(FILE *, const char *); |
void printtag(FILE *, const char *); |
62 |
int search(const char *, const char *, const char *, int); |
int search(const char *, const char *, const char *, int); |
|
int includepath(const char *, const char *); |
|
63 |
void ffformat(char *, int, const char *); |
void ffformat(char *, int, const char *); |
64 |
|
|
65 |
STRBUF *sortfilter; /* sort filter */ |
STRBUF *sortfilter; /* sort filter */ |
1116 |
return count; |
return count; |
1117 |
} |
} |
1118 |
/* |
/* |
|
* includepath: check if the path included in tag line or not. |
|
|
* |
|
|
* i) line tag line |
|
|
* i) path path |
|
|
* r) 0: doesn't included, 1: included |
|
|
*/ |
|
|
int |
|
|
includepath(line, path) |
|
|
const char *line; |
|
|
const char *path; |
|
|
{ |
|
|
const char *p; |
|
|
int length; |
|
|
|
|
|
if (!(p = locatestring(line, "./", MATCH_FIRST))) |
|
|
die("invalid tag format (path not found)."); |
|
|
length = strlen(path); |
|
|
if (strncmp(p, path, length)) |
|
|
return 0; |
|
|
p += length; |
|
|
if (*p == ' ' || *p == '\t') |
|
|
return 1; |
|
|
return 0; |
|
|
} |
|
|
/* |
|
1119 |
* ffformat: string copy with converting blank chars into %ff format. |
* ffformat: string copy with converting blank chars into %ff format. |
1120 |
* |
* |
1121 |
* o) to result |
* o) to result |