Lines Matching refs:path
222 vim_findfirst(char_u *path, char_u *filename, int level)
225 vim_findfile_init(path, filename, NULL, level, TRUE, FALSE,
301 char_u *path, in vim_findfile_init() argument
360 if (path[0] == '.' in vim_findfile_init()
361 && (vim_ispathsep(path[1]) || path[1] == NUL) in vim_findfile_init()
377 if (*++path != NUL) in vim_findfile_init()
378 ++path; in vim_findfile_init()
380 else if (*path == NUL || !vim_isAbsName(path)) in vim_findfile_init()
384 if (*path != NUL && path[1] == ':') in vim_findfile_init()
388 drive[0] = path[0]; in vim_findfile_init()
393 path += 2; in vim_findfile_init()
407 if ((*path == '/' || *path == '\\') in vim_findfile_init()
408 && path[1] != path[0] in vim_findfile_init()
479 wc_part = vim_strchr(path, '*'); in vim_findfile_init()
487 search_ctx->ffsc_fix_path = vim_strnsave(path, wc_part - path); in vim_findfile_init()
538 search_ctx->ffsc_fix_path = vim_strsave(path); in vim_findfile_init()
1606 ff_path_in_stoplist(char_u *path, int path_len, char_u **stopdirs_v) in ff_path_in_stoplist() argument
1611 while (path_len > 1 && vim_ispathsep(path[path_len - 1])) in ff_path_in_stoplist()
1625 if (fnamencmp(stopdirs_v[i], path, path_len) == 0 in ff_path_in_stoplist()
1631 if (fnamecmp(stopdirs_v[i], path) == 0) in ff_path_in_stoplist()
2243 find_previous_pathsep(char_u *path, char_u **psep) in find_previous_pathsep() argument
2246 if (*psep > path && vim_ispathsep(**psep)) in find_previous_pathsep()
2250 while (*psep > path) in find_previous_pathsep()
2254 MB_PTR_BACK(path, *psep); in find_previous_pathsep()
2471 char_u *path = fnames[i]; in uniquefy_paths() local
2473 char_u *dir_end = gettail_dir(path); in uniquefy_paths()
2477 len = (int)STRLEN(path); in uniquefy_paths()
2478 is_in_curdir = fnamencmp(curdir, path, dir_end - path) == 0 in uniquefy_paths()
2479 && curdir[dir_end - path] == NUL; in uniquefy_paths()
2481 in_curdir[i] = vim_strsave(path); in uniquefy_paths()
2484 path_cutoff = get_path_cutoff(path, &path_ga); in uniquefy_paths()
2496 mch_memmove(path, path_cutoff, STRLEN(path_cutoff) + 1); in uniquefy_paths()
2502 pathsep_p = path + len - 1; in uniquefy_paths()
2504 while (find_previous_pathsep(path, &pathsep_p)) in uniquefy_paths()
2510 mch_memmove(path, pathsep_p + 1, STRLEN(pathsep_p)); in uniquefy_paths()
2515 if (mch_isFullName(path)) in uniquefy_paths()
2529 short_name = shorten_fname(path, curdir); in uniquefy_paths()
2530 if (short_name != NULL && short_name > path + 1 in uniquefy_paths()
2540 STRCPY(path, "."); in uniquefy_paths()
2541 add_pathsep(path); in uniquefy_paths()
2542 STRMOVE(path + STRLEN(path), short_name); in uniquefy_paths()
2552 char_u *path = in_curdir[i]; in uniquefy_paths() local
2554 if (path == NULL) in uniquefy_paths()
2559 short_name = shorten_fname(path, curdir); in uniquefy_paths()
2561 short_name = path; in uniquefy_paths()