Mercurial > vim
diff src/vim.h @ 2215:cccb71c2c5c1 vim73
Fix uninit memory read in undo code. Fix uint32_t in proto file.
A few minor changes.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 24 May 2010 11:59:29 +0200 |
parents | f8222d1f9a73 |
children | 120502692d82 |
line wrap: on
line diff
--- a/src/vim.h +++ b/src/vim.h @@ -51,16 +51,16 @@ /* We may need to define the uint32_t on non-Unix system, but using the same * identifier causes conflicts. Therefore use UINT32_T. */ -# define UINT32_T uint32_t +# define UINT32_TYPEDEF uint32_t #endif -#if !defined(UINT32_T) +#if !defined(UINT32_TYPEDEF) # if defined(uint32_t) /* this doesn't catch typedefs, unfortunately */ -# define UINT32_T uint32_t +# define UINT32_TYPEDEF uint32_t # else /* Fall back to assuming unsigned int is 32 bit. If this is wrong then the * test in blowfish.c will fail. */ -# define UINT32_T unsigned int +# define UINT32_TYPEDEF unsigned int # endif #endif @@ -1317,6 +1317,10 @@ typedef enum #define MAYBE 2 /* sometimes used for a variant on TRUE */ +#ifndef UINT32_T +typedef UINT32_TYPEDEF UINT32_T; +#endif + /* * Operator IDs; The order must correspond to opchars[] in ops.c! */