version 1.16, 2015/11/09 16:39:13 |
version 1.17, 2016/01/12 17:48:04 |
|
|
struct tag { |
struct tag { |
struct tag *next, *prev; /* List links */ |
struct tag *next, *prev; /* List links */ |
char *tag_file; /* Source file containing the tag */ |
char *tag_file; /* Source file containing the tag */ |
LINENUM tag_linenum; /* Appropriate line number in source file */ |
off_t tag_linenum; /* Appropriate line number in source file */ |
char *tag_pattern; /* Pattern used to find the tag */ |
char *tag_pattern; /* Pattern used to find the tag */ |
int tag_endline; /* True if the pattern includes '$' */ |
int tag_endline; /* True if the pattern includes '$' */ |
}; |
}; |
|
|
* Create a new tag entry. |
* Create a new tag entry. |
*/ |
*/ |
static struct tag * |
static struct tag * |
maketagent(char *file, LINENUM linenum, char *pattern, int endline) |
maketagent(char *file, off_t linenum, char *pattern, int endline) |
{ |
{ |
struct tag *tp; |
struct tag *tp; |
|
|
|
|
char *p; |
char *p; |
FILE *f; |
FILE *f; |
int taglen; |
int taglen; |
LINENUM taglinenum; |
off_t taglinenum; |
char *tagfile; |
char *tagfile; |
char *tagpattern; |
char *tagpattern; |
int tagendline; |
int tagendline; |
|
|
ctagsearch(void) |
ctagsearch(void) |
{ |
{ |
off_t pos, linepos; |
off_t pos, linepos; |
LINENUM linenum; |
off_t linenum; |
int len; |
int len; |
char *line; |
char *line; |
|
|