comparison src/filepath.c @ 18779:8f05b3cf8557 v8.1.2379

patch 8.1.2379: using old C style comments Commit: https://github.com/vim/vim/commit/217e1b8359447f5550dcb0d1ee43380a90c253c5 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 1 21:41:28 2019 +0100 patch 8.1.2379: using old C style comments Problem: Using old C style comments. Solution: Use // comments where appropriate.
author Bram Moolenaar <Bram@vim.org>
date Sun, 01 Dec 2019 21:45:04 +0100
parents 9676dc5fd705
children 410155e75efa
comparison
equal deleted inserted replaced
18778:2182f82b04e4 18779:8f05b3cf8557
160 /* 160 /*
161 * Succeeded in shortening the path. Now concatenate the shortened 161 * Succeeded in shortening the path. Now concatenate the shortened
162 * path with the remaining path at the tail. 162 * path with the remaining path at the tail.
163 */ 163 */
164 164
165 /* Compute the length of the new path. */ 165 // Compute the length of the new path.
166 sfx_len = (int)(save_endp - endp) + 1; 166 sfx_len = (int)(save_endp - endp) + 1;
167 new_len = len + sfx_len; 167 new_len = len + sfx_len;
168 168
169 *fnamelen = new_len; 169 *fnamelen = new_len;
170 vim_free(*bufp); 170 vim_free(*bufp);
2365 vim_strncpy(exp1, s1, MAXPATHL - 1); 2365 vim_strncpy(exp1, s1, MAXPATHL - 1);
2366 r1 = mch_stat((char *)exp1, &st1); 2366 r1 = mch_stat((char *)exp1, &st1);
2367 r2 = mch_stat((char *)s2, &st2); 2367 r2 = mch_stat((char *)s2, &st2);
2368 if (r1 != 0 && r2 != 0) 2368 if (r1 != 0 && r2 != 0)
2369 { 2369 {
2370 /* if mch_stat() doesn't work, may compare the names */ 2370 // if mch_stat() doesn't work, may compare the names
2371 if (checkname) 2371 if (checkname)
2372 { 2372 {
2373 if (fnamecmp(exp1, s2) == 0) 2373 if (fnamecmp(exp1, s2) == 0)
2374 return FPC_SAMEX; 2374 return FPC_SAMEX;
2375 r1 = vim_FullName(exp1, full1, MAXPATHL, FALSE); 2375 r1 = vim_FullName(exp1, full1, MAXPATHL, FALSE);
3687 * EW_ALLLINKS add symlink also when the referred file does not exist 3687 * EW_ALLLINKS add symlink also when the referred file does not exist
3688 */ 3688 */
3689 void 3689 void
3690 addfile( 3690 addfile(
3691 garray_T *gap, 3691 garray_T *gap,
3692 char_u *f, /* filename */ 3692 char_u *f, // filename
3693 int flags) 3693 int flags)
3694 { 3694 {
3695 char_u *p; 3695 char_u *p;
3696 int isdir; 3696 int isdir;
3697 stat_T sb; 3697 stat_T sb;