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/os/unix_defs.h | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/nvim/os/unix_defs.h (limited to 'src/nvim/os/unix_defs.h') diff --git a/src/nvim/os/unix_defs.h b/src/nvim/os/unix_defs.h new file mode 100644 index 0000000000..197a87bcc5 --- /dev/null +++ b/src/nvim/os/unix_defs.h @@ -0,0 +1,7 @@ +#ifndef NEOVIM_OS_UNIX_DEFS_H +#define NEOVIM_OS_UNIX_DEFS_H + +#define TEMP_DIR_NAMES {"$TMPDIR", "/tmp", ".", "$HOME"} +#define TEMP_FILE_PATH_MAXLEN 256 + +#endif // NEOVIM_OS_UNIX_DEFS_H -- cgit