comparison src/findfile.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 c8a53c0daeed
children 25ebc35e104f
comparison
equal deleted inserted replaced
18778:2182f82b04e4 18779:8f05b3cf8557
966 for (i = stackp->ffs_filearray_cur; 966 for (i = stackp->ffs_filearray_cur;
967 i < stackp->ffs_filearray_size; ++i) 967 i < stackp->ffs_filearray_size; ++i)
968 { 968 {
969 if (!path_with_url(stackp->ffs_filearray[i]) 969 if (!path_with_url(stackp->ffs_filearray[i])
970 && !mch_isdir(stackp->ffs_filearray[i])) 970 && !mch_isdir(stackp->ffs_filearray[i]))
971 continue; /* not a directory */ 971 continue; // not a directory
972 972
973 // prepare the filename to be checked for existence 973 // prepare the filename to be checked for existence
974 // below 974 // below
975 if (STRLEN(stackp->ffs_filearray[i]) + 1 975 if (STRLEN(stackp->ffs_filearray[i]) + 1
976 + STRLEN(search_ctx->ffsc_file_to_search) 976 + STRLEN(search_ctx->ffsc_file_to_search)
2688 { 2688 {
2689 int do_strip = FALSE; 2689 int do_strip = FALSE;
2690 char_u saved_char; 2690 char_u saved_char;
2691 stat_T st; 2691 stat_T st;
2692 2692
2693 /* Don't strip for an erroneous file name. */ 2693 // Don't strip for an erroneous file name.
2694 if (!stripping_disabled) 2694 if (!stripping_disabled)
2695 { 2695 {
2696 // If the preceding component does not exist in the file 2696 // If the preceding component does not exist in the file
2697 // system, we strip it. On Unix, we don't accept a symbolic 2697 // system, we strip it. On Unix, we don't accept a symbolic
2698 // link that refers to a non-existent file. 2698 // link that refers to a non-existent file.
2825 { 2825 {
2826 char_u *p; 2826 char_u *p;
2827 2827
2828 p = tv_get_string(&argvars[0]); 2828 p = tv_get_string(&argvars[0]);
2829 rettv->vval.v_string = vim_strsave(p); 2829 rettv->vval.v_string = vim_strsave(p);
2830 simplify_filename(rettv->vval.v_string); /* simplify in place */ 2830 simplify_filename(rettv->vval.v_string); // simplify in place
2831 rettv->v_type = VAR_STRING; 2831 rettv->v_type = VAR_STRING;
2832 } 2832 }
2833 #endif // FEAT_EVAL 2833 #endif // FEAT_EVAL