diff options
author | Bram Moolenaar <Bram@vim.org> | 2011-05-05 16:41:24 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2011-05-05 16:41:24 +0200 |
commit | 1c32dff7d6b4cf00d1e63ac79968e9deb8b90e2e (patch) | |
tree | 2d78aad10e6cfc81acfcac846501a99d719933d5 /src/vim.h | |
parent | 85de20665f3ed48345b79cd0920af41397544141 (diff) |
updated for version 7.3.172v7.3.172
Problem: MS-Windows: rename() might delete the file if the name differs but
it's actually the same file.
Solution: Use the file handle to check if it's the same file. (Yukihiro
Nakadaira)
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2217,4 +2217,10 @@ typedef int VimClipboard; /* This is required for the prototypes. */ #define KEYLEN_PART_MAP -2 /* keylen value for incomplete mapping */ #define KEYLEN_REMOVED 9999 /* keylen value for removed sequence */ +/* Return values from win32_fileinfo(). */ +#define FILEINFO_OK 0 +#define FILEINFO_ENC_FAIL 1 /* enc_to_utf16() failed */ +#define FILEINFO_READ_FAIL 2 /* CreateFile() failed */ +#define FILEINFO_INFO_FAIL 3 /* GetFileInformationByHandle() failed */ + #endif /* VIM__H */ |