aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorPavel Platto <hinidu@gmail.com>2014-06-19 23:46:51 +0300
committerNicolas Hillegeer <nicolas@hillegeer.com>2014-07-14 21:14:40 +0200
commit29e0cd1571b773feb7fd61118930cdac7d83e38c (patch)
tree5190da12cc72647b1573c44b55bcc0e030a6be81 /src/nvim/ex_cmds.c
parentedd7a8c5ddd99bd0c02b4218d43bccb562809d55 (diff)
downloadrneovim-29e0cd1571b773feb7fd61118930cdac7d83e38c.tar.gz
rneovim-29e0cd1571b773feb7fd61118930cdac7d83e38c.tar.bz2
rneovim-29e0cd1571b773feb7fd61118930cdac7d83e38c.zip
Refactor vim_tempname
- temp_count is uint32_t now instead of long because it supposed to be at most 999999999 (comment on line 5227) temporary files. The most probably it was a long for compatibility with systems where int is 16-bit. - Use "nvim" as prefix for temp folder name instead of "v" - Remove unused parameter from vim_tempname
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 78325fd4a4..05ca5bbb58 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -1032,8 +1032,8 @@ do_filter (
curbuf->b_op_start.lnum = line1;
curbuf->b_op_end.lnum = line2;
curwin->w_cursor.lnum = line2;
- } else if ((do_in && (itmp = vim_tempname('i')) == NULL)
- || (do_out && (otmp = vim_tempname('o')) == NULL)) {
+ } else if ((do_in && (itmp = vim_tempname()) == NULL)
+ || (do_out && (otmp = vim_tempname()) == NULL)) {
EMSG(_(e_notmp));
goto filterend;
}
@@ -1601,7 +1601,7 @@ void write_viminfo(char_u *file, int forceit)
*/
if (fp_out == NULL) {
free(tempname);
- if ((tempname = vim_tempname('o')) != NULL)
+ if ((tempname = vim_tempname()) != NULL)
fp_out = mch_fopen((char *)tempname, WRITEBIN);
}