From edd7a8c5ddd99bd0c02b4218d43bccb562809d55 Mon Sep 17 00:00:00 2001 From: Pavel Platto Date: Thu, 19 Jun 2014 00:58:04 +0300 Subject: Remove #ifdefs TEMPDIRNAMES and add TEMPDIRNAMES for Windows Vim does not define TEMPDIRNAMES for all systems, but it is defined for all systems supported by Neovim. Temporary directory names for Windows was obtained from GetTempPath() function documentation at MSDN. Additionally small renamings were performed. --- src/nvim/globals.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/nvim/globals.h') diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 871674907b..436ddb768d 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -536,10 +536,8 @@ EXTERN int ru_col; /* column for ruler */ EXTERN int ru_wid; /* 'rulerfmt' width of ruler when non-zero */ EXTERN int sc_col; /* column for shown command */ -#ifdef TEMPDIRNAMES EXTERN char_u *vim_tempdir INIT(= NULL); /* Name of Vim's own temp dir. Ends in a slash. */ -#endif /* * When starting or exiting some things are done differently (e.g. screen -- cgit From 8cfa7b3d15f503ff4fd4fc1df26bca109b31497b Mon Sep 17 00:00:00 2001 From: Pavel Platto Date: Sat, 21 Jun 2014 14:07:51 +0300 Subject: Add vim_gettempdir(), remove global vim_tempdir vim_gettempdir() and vim_maketempdir() was extracted from vim_tempname(). --- src/nvim/globals.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/nvim/globals.h') diff --git a/src/nvim/globals.h b/src/nvim/globals.h index 436ddb768d..cdfa882a3e 100644 --- a/src/nvim/globals.h +++ b/src/nvim/globals.h @@ -536,9 +536,6 @@ EXTERN int ru_col; /* column for ruler */ EXTERN int ru_wid; /* 'rulerfmt' width of ruler when non-zero */ EXTERN int sc_col; /* column for shown command */ -EXTERN char_u *vim_tempdir INIT(= NULL); /* Name of Vim's own temp dir. - Ends in a slash. */ - /* * When starting or exiting some things are done differently (e.g. screen * updating). -- cgit