comparison src/tag.c @ 7805:0b6c37dd858d v7.4.1199

commit https://github.com/vim/vim/commit/baaa7e9ec7398a813e21285c272fa99792642077 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 29 22:47:03 2016 +0100 patch 7.4.1199 Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi)
author Christian Brabandt <cb@256bit.org>
date Fri, 29 Jan 2016 23:00:05 +0100
parents 6ba7182fb7bd
children 4d7ce6c03fda
comparison
equal deleted inserted replaced
7804:874044d87168 7805:0b6c37dd858d
57 {"FSC", "F C", "F ", "FS ", " SC", " C", " ", " S "}; 57 {"FSC", "F C", "F ", "FS ", " SC", " C", " ", " S "};
58 58
59 #define NOTAGFILE 99 /* return value for jumpto_tag */ 59 #define NOTAGFILE 99 /* return value for jumpto_tag */
60 static char_u *nofile_fname = NULL; /* fname for NOTAGFILE error */ 60 static char_u *nofile_fname = NULL; /* fname for NOTAGFILE error */
61 61
62 static void taglen_advance __ARGS((int l)); 62 static void taglen_advance(int l);
63 63
64 static int jumpto_tag __ARGS((char_u *lbuf, int forceit, int keep_help)); 64 static int jumpto_tag(char_u *lbuf, int forceit, int keep_help);
65 #ifdef FEAT_EMACS_TAGS 65 #ifdef FEAT_EMACS_TAGS
66 static int parse_tag_line __ARGS((char_u *lbuf, int is_etag, tagptrs_T *tagp)); 66 static int parse_tag_line(char_u *lbuf, int is_etag, tagptrs_T *tagp);
67 #else 67 #else
68 static int parse_tag_line __ARGS((char_u *lbuf, tagptrs_T *tagp)); 68 static int parse_tag_line(char_u *lbuf, tagptrs_T *tagp);
69 #endif 69 #endif
70 static int test_for_static __ARGS((tagptrs_T *)); 70 static int test_for_static(tagptrs_T *);
71 static int parse_match __ARGS((char_u *lbuf, tagptrs_T *tagp)); 71 static int parse_match(char_u *lbuf, tagptrs_T *tagp);
72 static char_u *tag_full_fname __ARGS((tagptrs_T *tagp)); 72 static char_u *tag_full_fname(tagptrs_T *tagp);
73 static char_u *expand_tag_fname __ARGS((char_u *fname, char_u *tag_fname, int expand)); 73 static char_u *expand_tag_fname(char_u *fname, char_u *tag_fname, int expand);
74 #ifdef FEAT_EMACS_TAGS 74 #ifdef FEAT_EMACS_TAGS
75 static int test_for_current __ARGS((int, char_u *, char_u *, char_u *, char_u *)); 75 static int test_for_current(int, char_u *, char_u *, char_u *, char_u *);
76 #else 76 #else
77 static int test_for_current __ARGS((char_u *, char_u *, char_u *, char_u *)); 77 static int test_for_current(char_u *, char_u *, char_u *, char_u *);
78 #endif 78 #endif
79 static int find_extra __ARGS((char_u **pp)); 79 static int find_extra(char_u **pp);
80 80
81 static char_u *bottommsg = (char_u *)N_("E555: at bottom of tag stack"); 81 static char_u *bottommsg = (char_u *)N_("E555: at bottom of tag stack");
82 static char_u *topmsg = (char_u *)N_("E556: at top of tag stack"); 82 static char_u *topmsg = (char_u *)N_("E556: at top of tag stack");
83 83
84 static char_u *tagmatchname = NULL; /* name of last used tag */ 84 static char_u *tagmatchname = NULL; /* name of last used tag */
1159 #ifndef USE_CR 1159 #ifndef USE_CR
1160 # define tag_fgets vim_fgets 1160 # define tag_fgets vim_fgets
1161 #endif 1161 #endif
1162 1162
1163 #ifdef FEAT_TAG_BINS 1163 #ifdef FEAT_TAG_BINS
1164 static int tag_strnicmp __ARGS((char_u *s1, char_u *s2, size_t len)); 1164 static int tag_strnicmp(char_u *s1, char_u *s2, size_t len);
1165 1165
1166 /* 1166 /*
1167 * Compare two strings, for length "len", ignoring case the ASCII way. 1167 * Compare two strings, for length "len", ignoring case the ASCII way.
1168 * return 0 for match, < 0 for smaller, > 0 for bigger 1168 * return 0 for match, < 0 for smaller, > 0 for bigger
1169 * Make sure case is folded to uppercase in comparison (like for 'sort -f') 1169 * Make sure case is folded to uppercase in comparison (like for 'sort -f')
1201 char_u *head; /* start of pattern head */ 1201 char_u *head; /* start of pattern head */
1202 int headlen; /* length of head[] */ 1202 int headlen; /* length of head[] */
1203 regmatch_T regmatch; /* regexp program, may be NULL */ 1203 regmatch_T regmatch; /* regexp program, may be NULL */
1204 } pat_T; 1204 } pat_T;
1205 1205
1206 static void prepare_pats __ARGS((pat_T *pats, int has_re)); 1206 static void prepare_pats(pat_T *pats, int has_re);
1207 1207
1208 /* 1208 /*
1209 * Extract info from the tag search pattern "pats->pat". 1209 * Extract info from the tag search pattern "pats->pat".
1210 */ 1210 */
1211 static void 1211 static void
2568 2568
2569 return retval; 2569 return retval;
2570 } 2570 }
2571 2571
2572 static garray_T tag_fnames = GA_EMPTY; 2572 static garray_T tag_fnames = GA_EMPTY;
2573 static void found_tagfile_cb __ARGS((char_u *fname, void *cookie)); 2573 static void found_tagfile_cb(char_u *fname, void *cookie);
2574 2574
2575 /* 2575 /*
2576 * Callback function for finding all "tags" and "tags-??" files in 2576 * Callback function for finding all "tags" and "tags-??" files in
2577 * 'runtimepath' doc directories. 2577 * 'runtimepath' doc directories.
2578 */ 2578 */
3813 return ret; 3813 return ret;
3814 } 3814 }
3815 #endif 3815 #endif
3816 3816
3817 #if defined(FEAT_EVAL) || defined(PROTO) 3817 #if defined(FEAT_EVAL) || defined(PROTO)
3818 static int add_tag_field __ARGS((dict_T *dict, char *field_name, char_u *start, char_u *end)); 3818 static int add_tag_field(dict_T *dict, char *field_name, char_u *start, char_u *end);
3819 3819
3820 /* 3820 /*
3821 * Add a tag field to the dictionary "dict". 3821 * Add a tag field to the dictionary "dict".
3822 * Return OK or FAIL. 3822 * Return OK or FAIL.
3823 */ 3823 */