comparison src/misc1.c @ 2460:b8eb7c0f74c2 vim73

Remove unused variable and STRLEN(). (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Sun, 01 Aug 2010 17:59:57 +0200
parents 291edb23ab17
children 6570c136be32
comparison
equal deleted inserted replaced
2459:64df5d008ccb 2460:b8eb7c0f74c2
2272 /* 2272 /*
2273 * If the old line has been allocated the deletion can be done in the 2273 * If the old line has been allocated the deletion can be done in the
2274 * existing line. Otherwise a new line has to be allocated 2274 * existing line. Otherwise a new line has to be allocated
2275 * Can't do this when using Netbeans, because we would need to invoke 2275 * Can't do this when using Netbeans, because we would need to invoke
2276 * netbeans_removed(), which deallocates the line. Let ml_replace() take 2276 * netbeans_removed(), which deallocates the line. Let ml_replace() take
2277 * care of notifiying Netbeans. 2277 * care of notifying Netbeans.
2278 */ 2278 */
2279 #ifdef FEAT_NETBEANS_INTG 2279 #ifdef FEAT_NETBEANS_INTG
2280 if (netbeans_active()) 2280 if (netbeans_active())
2281 was_alloced = FALSE; 2281 was_alloced = FALSE;
2282 else 2282 else
5140 && *(s = cin_skipcomment(s + 7)) == ':' 5140 && *(s = cin_skipcomment(s + 7)) == ':'
5141 && s[1] != ':'); 5141 && s[1] != ':');
5142 } 5142 }
5143 5143
5144 /* 5144 /*
5145 * Recognize a "public/private/proctected" scope declaration label. 5145 * Recognize a "public/private/protected" scope declaration label.
5146 */ 5146 */
5147 int 5147 int
5148 cin_isscopedecl(s) 5148 cin_isscopedecl(s)
5149 char_u *s; 5149 char_u *s;
5150 { 5150 {
6032 * line is imagined to be. 6032 * line is imagined to be.
6033 */ 6033 */
6034 int ind_open_imag = 0; 6034 int ind_open_imag = 0;
6035 6035
6036 /* 6036 /*
6037 * spaces from the prevailing indent for a line that is not precededof by 6037 * spaces from the prevailing indent for a line that is not preceded by
6038 * an opening brace. 6038 * an opening brace.
6039 */ 6039 */
6040 int ind_no_brace = 0; 6040 int ind_no_brace = 0;
6041 6041
6042 /* 6042 /*
9299 9299
9300 return TRUE; /* no match found */ 9300 return TRUE; /* no match found */
9301 } 9301 }
9302 9302
9303 /* 9303 /*
9304 * Split the 'path' option to a an array of strings as garray_T. Relative 9304 * Split the 'path' option into an array of strings in garray_T. Relative
9305 * paths are expanded to their equivalent fullpath. This includes the "." 9305 * paths are expanded to their equivalent fullpath. This includes the "."
9306 * (relative to current buffer directory) and empty path (relative to current 9306 * (relative to current buffer directory) and empty path (relative to current
9307 * directory) notations. 9307 * directory) notations.
9308 * 9308 *
9309 * TODO: handle upward search (;) and path limiter (**N) notations by 9309 * TODO: handle upward search (;) and path limiter (**N) notations by
9410 char_u **fnames = (char_u **)gap->ga_data; 9410 char_u **fnames = (char_u **)gap->ga_data;
9411 int sort_again = 0; 9411 int sort_again = 0;
9412 char_u *pat; 9412 char_u *pat;
9413 char_u *file_pattern; 9413 char_u *file_pattern;
9414 char_u *curdir = NULL; 9414 char_u *curdir = NULL;
9415 int len_curdir = 0;
9416 regmatch_T regmatch; 9415 regmatch_T regmatch;
9417 garray_T path_ga; 9416 garray_T path_ga;
9418 9417
9419 sort_strings(fnames, gap->ga_len); 9418 sort_strings(fnames, gap->ga_len);
9420 remove_duplicates(gap); 9419 remove_duplicates(gap);
9443 return; 9442 return;
9444 9443
9445 if ((curdir = alloc((int)(MAXPATHL))) == NULL) 9444 if ((curdir = alloc((int)(MAXPATHL))) == NULL)
9446 return; 9445 return;
9447 mch_dirname(curdir, MAXPATHL); 9446 mch_dirname(curdir, MAXPATHL);
9448 len_curdir = (int)STRLEN(curdir);
9449 9447
9450 expand_path_option(curdir, &path_ga); 9448 expand_path_option(curdir, &path_ga);
9451 9449
9452 for (i = 0; i < gap->ga_len; i++) 9450 for (i = 0; i < gap->ga_len; i++)
9453 { 9451 {