mirror of
https://github.com/neovim/neovim.git
synced 2025-10-17 23:31:51 +00:00
Rename mch_* functions to os_* in os module.
This commit is contained in:

committed by
Thiago de Arruda

parent
3f7011ab91
commit
5762c4e528
@@ -1184,7 +1184,7 @@ static char_u *qf_push_dir(char_u *dirbuf, struct dir_stack_T **stackptr)
|
||||
vim_free((*stackptr)->dirname);
|
||||
(*stackptr)->dirname = concat_fnames(ds_new->dirname, dirbuf,
|
||||
TRUE);
|
||||
if (mch_isdir((*stackptr)->dirname) == TRUE)
|
||||
if (os_isdir((*stackptr)->dirname) == TRUE)
|
||||
break;
|
||||
|
||||
ds_new = ds_new->next;
|
||||
@@ -2866,7 +2866,7 @@ void ex_vimgrep(exarg_T *eap)
|
||||
|
||||
/* Remember the current directory, because a BufRead autocommand that does
|
||||
* ":lcd %:p:h" changes the meaning of short path names. */
|
||||
mch_dirname(dirname_start, MAXPATHL);
|
||||
os_dirname(dirname_start, MAXPATHL);
|
||||
|
||||
/* Remember the value of qf_start, so that we can check for autocommands
|
||||
* changing the current quickfix list. */
|
||||
@@ -3133,7 +3133,7 @@ static void restore_start_dir(char_u *dirname_start)
|
||||
char_u *dirname_now = alloc(MAXPATHL);
|
||||
|
||||
if (NULL != dirname_now) {
|
||||
mch_dirname(dirname_now, MAXPATHL);
|
||||
os_dirname(dirname_now, MAXPATHL);
|
||||
if (STRCMP(dirname_start, dirname_now) != 0) {
|
||||
/* If the directory has changed, change it back by building up an
|
||||
* appropriate ex command and executing it. */
|
||||
@@ -3221,7 +3221,7 @@ load_dummy_buffer (
|
||||
* Let the caller know what the resulting dir was first, in case it is
|
||||
* important.
|
||||
*/
|
||||
mch_dirname(resulting_dir, MAXPATHL);
|
||||
os_dirname(resulting_dir, MAXPATHL);
|
||||
restore_start_dir(dirname_start);
|
||||
|
||||
if (!buf_valid(newbuf))
|
||||
|
Reference in New Issue
Block a user