diff options
Diffstat (limited to 'src/nvim/tag.c')
-rw-r--r-- | src/nvim/tag.c | 40 |
1 files changed, 14 insertions, 26 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 3b1610682b..4be18b7b34 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -66,6 +66,17 @@ typedef struct tag_pointers { } tagptrs_T; /* + * Structure to hold info about the tag pattern being used. + */ +typedef struct { + char_u *pat; /* the pattern */ + int len; /* length of pat[] */ + char_u *head; /* start of pattern head */ + int headlen; /* length of head[] */ + regmatch_T regmatch; /* regexp program, may be NULL */ +} pat_T; + +/* * The matching tags are first stored in ga_match[]. In which one depends on * the priority of the match. * At the end, the matches from ga_match[] are concatenated, to make a list @@ -90,17 +101,10 @@ static char *mt_names[MT_COUNT/2] = #define NOTAGFILE 99 /* return value for jumpto_tag */ static char_u *nofile_fname = NULL; /* fname for NOTAGFILE error */ -static void taglen_advance(int l); -static int jumpto_tag(char_u *lbuf, int forceit, int keep_help); -static int parse_tag_line(char_u *lbuf, tagptrs_T *tagp); -static int test_for_static(tagptrs_T *); -static int parse_match(char_u *lbuf, tagptrs_T *tagp); -static char_u *tag_full_fname(tagptrs_T *tagp); -static char_u *expand_tag_fname(char_u *fname, char_u *tag_fname, - int expand); -static int test_for_current(char_u *, char_u *, char_u *, char_u *); -static int find_extra(char_u **pp); +#ifdef INCLUDE_GENERATED_DECLARATIONS +# include "tag.c.generated.h" +#endif static char_u *bottommsg = (char_u *)N_("E555: at bottom of tag stack"); static char_u *topmsg = (char_u *)N_("E556: at top of tag stack"); @@ -991,7 +995,6 @@ void do_tags(exarg_T *eap) # define tag_fgets vim_fgets #endif -static int tag_strnicmp(char_u *s1, char_u *s2, size_t len); /* * Compare two strings, for length "len", ignoring case the ASCII way. @@ -1015,18 +1018,6 @@ static int tag_strnicmp(char_u *s1, char_u *s2, size_t len) return 0; /* strings match */ } -/* - * Structure to hold info about the tag pattern being used. - */ -typedef struct { - char_u *pat; /* the pattern */ - int len; /* length of pat[] */ - char_u *head; /* start of pattern head */ - int headlen; /* length of head[] */ - regmatch_T regmatch; /* regexp program, may be NULL */ -} pat_T; - -static void prepare_pats(pat_T *pats, int has_re); /* * Extract info from the tag search pattern "pats->pat". @@ -2006,7 +1997,6 @@ findtag_end: } static garray_T tag_fnames = GA_EMPTY_INIT_VALUE; -static void found_tagfile_cb(char_u *fname, void *cookie); /* * Callback function for finding all "tags" and "tags-??" files in @@ -2773,8 +2763,6 @@ expand_tags ( return ret; } -static int add_tag_field(dict_T *dict, char *field_name, char_u *start, - char_u *end); /* * Add a tag field to the dictionary "dict". |