diff options
author | Bram Moolenaar <Bram@vim.org> | 2006-04-22 22:33:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2006-04-22 22:33:57 +0000 |
commit | eb3593b38b7b6b658e93ad05d6caf76d58cc0c35 (patch) | |
tree | 39210f19a86e4db2914523b0fde4a5ff9d345c16 /src/vim.h | |
parent | 57657d85c6c3d812e99b5e5d5161c07c66ac7dc7 (diff) | |
download | vim-git-eb3593b38b7b6b658e93ad05d6caf76d58cc0c35.tar.gz |
updated for version 7.0e06v7.0e06
Diffstat (limited to 'src/vim.h')
-rw-r--r-- | src/vim.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -342,14 +342,19 @@ typedef unsigned char char_u; typedef unsigned short short_u; typedef unsigned int int_u; -/* Make sure long_u is big enough to hold a pointer. On Win64 longs are 32 - * bit and pointers 64 bit. */ +/* Make sure long_u is big enough to hold a pointer. + * On Win64 longs are 32 bit and pointers 64 bit. + * For printf() and scanf() we need to take care of long_u specifically. */ #ifdef _WIN64 typedef unsigned __int64 long_u; typedef __int64 long_i; +# define SCANF_HEX_LONG_U "%Ix" +# define PRINTF_HEX_LONG_U "0x%Ix" #else typedef unsigned long long_u; typedef long long_i; +# define SCANF_HEX_LONG_U "%lx" +# define PRINTF_HEX_LONG_U "0x%lx" #endif /* @@ -1382,6 +1387,7 @@ typedef enum #define EMSG2(s, p) emsg2((char_u *)(s), (char_u *)(p)) #define EMSG3(s, p, q) emsg3((char_u *)(s), (char_u *)(p), (char_u *)(q)) #define EMSGN(s, n) emsgn((char_u *)(s), (long)(n)) +#define EMSGU(s, n) emsgu((char_u *)(s), (long_u)(n)) #define OUT_STR(s) out_str((char_u *)(s)) #define OUT_STR_NF(s) out_str_nf((char_u *)(s)) #define MSG_PUTS(s) msg_puts((char_u *)(s)) |