mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
Fix uninit memory read in undo code. Fix uint32_t in proto file.
A few minor changes.
This commit is contained in:
12
src/vim.h
12
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!
|
||||
*/
|
||||
|
Reference in New Issue
Block a user