comparison src/os_unix.c @ 17978:8f4cc259ed7a v8.1.1985

patch 8.1.1985: code for dealing with paths is spread out Commit: https://github.com/vim/vim/commit/26262f87770d3a1a68b09a70152d75c2e2ae186f Author: Bram Moolenaar <Bram@vim.org> Date: Wed Sep 4 20:59:15 2019 +0200 patch 8.1.1985: code for dealing with paths is spread out Problem: Code for dealing with paths is spread out. Solution: Move path related functions from misc1.c to filepath.c. Remove NO_EXPANDPATH.
author Bram Moolenaar <Bram@vim.org>
date Wed, 04 Sep 2019 21:00:04 +0200
parents 73f4bb1fdfba
children d1e77015f60b
comparison
equal deleted inserted replaced
17977:7fa0c4b6bfa5 17978:8f4cc259ed7a
6394 } 6394 }
6395 6395
6396 return result; 6396 return result;
6397 } 6397 }
6398 6398
6399 #ifndef NO_EXPANDPATH
6400 /* 6399 /*
6401 * Expand a path into all matching files and/or directories. Handles "*", 6400 * Expand a path into all matching files and/or directories. Handles "*",
6402 * "?", "[a-z]", "**", etc. 6401 * "?", "[a-z]", "**", etc.
6403 * "path" has backslashes before chars that are not to be expanded. 6402 * "path" has backslashes before chars that are not to be expanded.
6404 * Returns the number of matches found. 6403 * Returns the number of matches found.
6409 char_u *path, 6408 char_u *path,
6410 int flags) /* EW_* flags */ 6409 int flags) /* EW_* flags */
6411 { 6410 {
6412 return unix_expandpath(gap, path, 0, flags, FALSE); 6411 return unix_expandpath(gap, path, 0, flags, FALSE);
6413 } 6412 }
6414 #endif
6415 6413
6416 /* 6414 /*
6417 * mch_expand_wildcards() - this code does wild-card pattern matching using 6415 * mch_expand_wildcards() - this code does wild-card pattern matching using
6418 * the shell 6416 * the shell
6419 * 6417 *