diff options
author | Thomas Wienecke <wienecke.t@gmail.com> | 2014-03-27 12:38:33 +0100 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-27 19:57:55 -0300 |
commit | 5762c4e528cbd6629319bf3958d1f6554b399b20 (patch) | |
tree | 3be91959012944534451ec84584ff4be84286b7c /src/diff.c | |
parent | 3f7011ab9185b4968e89086f77b054161a900beb (diff) | |
download | rneovim-5762c4e528cbd6629319bf3958d1f6554b399b20.tar.gz rneovim-5762c4e528cbd6629319bf3958d1f6554b399b20.tar.bz2 rneovim-5762c4e528cbd6629319bf3958d1f6554b399b20.zip |
Rename mch_* functions to os_* in os module.
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/diff.c b/src/diff.c index 0764715685..35b8e2e346 100644 --- a/src/diff.c +++ b/src/diff.c @@ -824,7 +824,7 @@ static void diff_file(char_u *tmp_orig, char_u *tmp_new, char_u *tmp_diff) if (cmd != NULL) { /* We don't want $DIFF_OPTIONS to get in the way. */ - if (mch_getenv("DIFF_OPTIONS")) { + if (os_getenv("DIFF_OPTIONS")) { vim_setenv((char_u *)"DIFF_OPTIONS", (char_u *)""); } @@ -906,18 +906,18 @@ void ex_diffpatch(exarg_T *eap) // have our own temp dir use that instead, it will be cleaned up when we // exit (any .rej files created). Don't change directory if we can't // return to the current. - if ((mch_dirname(dirbuf, MAXPATHL) != OK) - || (mch_chdir((char *)dirbuf) != 0)) { + if ((os_dirname(dirbuf, MAXPATHL) != OK) + || (os_chdir((char *)dirbuf) != 0)) { dirbuf[0] = NUL; } else { # ifdef TEMPDIRNAMES if (vim_tempdir != NULL) { - ignored = mch_chdir((char *)vim_tempdir); + ignored = os_chdir((char *)vim_tempdir); } else { - ignored = mch_chdir("/tmp"); + ignored = os_chdir("/tmp"); } # else - ignored = mch_chdir("/tmp"); + ignored = os_chdir("/tmp"); # endif // ifdef TEMPDIRNAMES shorten_fnames(TRUE); } @@ -948,7 +948,7 @@ void ex_diffpatch(exarg_T *eap) #ifdef UNIX if (dirbuf[0] != NUL) { - if (mch_chdir((char *)dirbuf) != 0) { + if (os_chdir((char *)dirbuf) != 0) { EMSG(_(e_prev_dir)); } shorten_fnames(TRUE); |