summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-06-01 15:21:02 +0200
committerBram Moolenaar <Bram@vim.org>2012-06-01 15:21:02 +0200
commit9a920d8c31bc4d267d8790ba0d83b5774316e08f (patch)
tree9e3efd2be89a848c17b76251486cf14da09c7e9b /src/vim.h
parent704984ac87979fd20b8ba732df3abd3197814f7f (diff)
downloadvim-git-9a920d8c31bc4d267d8790ba0d83b5774316e08f.tar.gz
updated for version 7.3.535v7.3.535
Problem: Many #ifdefs for MB_MAXBYTES. Solution: Also define MB_MAXBYTES without the +multi_byte feature. Fix places where the buffer didn't include space for a NUL byte.
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vim.h b/src/vim.h
index 5cd5e3026..d63551d8a 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1703,6 +1703,8 @@ int vim_memcmp __ARGS((void *, void *, size_t));
* character of up to 6 bytes, or one 16-bit character of up to three bytes
* plus six following composing characters of three bytes each. */
# define MB_MAXBYTES 21
+#else
+# define MB_MAXBYTES 1
#endif
#if (defined(FEAT_PROFILE) || defined(FEAT_RELTIME)) && !defined(PROTO)
@@ -2017,6 +2019,7 @@ typedef int VimClipboard; /* This is required for the prototypes. */
#pragma warning(disable : 4312)
#endif
+/* Note: a NULL argument for vim_realloc() is not portable, don't use it. */
#if defined(MEM_PROFILE)
# define vim_realloc(ptr, size) mem_realloc((ptr), (size))
#else