diff options
author | Stefan Hoffmann <stefan991@gmail.com> | 2014-04-08 22:01:33 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-11 13:31:48 -0300 |
commit | a1df458524e9de0c19e4151e15765dc2bc508259 (patch) | |
tree | 8269ae4d96489d1ca23b8ce8aa4690bab555a200 /src/diff.c | |
parent | 445f31f076325a68d91746bb41ac9ba139144c2d (diff) | |
download | rneovim-a1df458524e9de0c19e4151e15765dc2bc508259.tar.gz rneovim-a1df458524e9de0c19e4151e15765dc2bc508259.tar.bz2 rneovim-a1df458524e9de0c19e4151e15765dc2bc508259.zip |
removed mch_remove macro
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/diff.c b/src/diff.c index 392fef00c9..5a21df2d0c 100644 --- a/src/diff.c +++ b/src/diff.c @@ -728,10 +728,10 @@ void ex_diffupdate(exarg_T *eap) } fclose(fd); } - mch_remove(tmp_diff); - mch_remove(tmp_new); + os_remove((char *)tmp_diff); + os_remove((char *)tmp_new); } - mch_remove(tmp_orig); + os_remove((char *)tmp_orig); } // When using 'diffexpr' break here. @@ -790,10 +790,10 @@ void ex_diffupdate(exarg_T *eap) // Read the diff output and add each entry to the diff list. diff_read(idx_orig, idx_new, tmp_diff); - mch_remove(tmp_diff); - mch_remove(tmp_new); + os_remove((char *)tmp_diff); + os_remove((char *)tmp_new); } - mch_remove(tmp_orig); + os_remove((char *)tmp_orig); // force updating cursor position on screen curwin->w_valid_cursor.lnum = 0; @@ -959,10 +959,10 @@ void ex_diffpatch(exarg_T *eap) // Delete any .orig or .rej file created. STRCPY(buf, tmp_new); STRCAT(buf, ".orig"); - mch_remove(buf); + os_remove((char *)buf); STRCPY(buf, tmp_new); STRCAT(buf, ".rej"); - mch_remove(buf); + os_remove((char *)buf); // Only continue if the output file was created. if ((mch_stat((char *)tmp_new, &st) < 0) || (st.st_size == 0)) { @@ -1008,12 +1008,12 @@ void ex_diffpatch(exarg_T *eap) theend: if (tmp_orig != NULL) { - mch_remove(tmp_orig); + os_remove((char *)tmp_orig); } vim_free(tmp_orig); if (tmp_new != NULL) { - mch_remove(tmp_new); + os_remove((char *)tmp_new); } vim_free(tmp_new); vim_free(newname); |