summaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-01-26 21:36:34 +0100
committerBram Moolenaar <Bram@vim.org>2017-01-26 21:36:34 +0100
commit52c0de1de196120976fef82cbbaaeafbedd9c62f (patch)
tree65c1c343ccaa03c1674fde48c9bde5fc069690f1 /src/vim.h
parent4f7090b93d9b2c2e1724466a2e069e97a5e91808 (diff)
downloadvim-git-8.0.0241.tar.gz
patch 8.0.0241: fallback implementation of mch_memmove is unusedv8.0.0241
Problem: Vim defines a mch_memmove() function but it doesn't work, thus is always unused. Solution: Remove the mch_memmove implementation. (suggested by Dominique Pelle)
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/vim.h b/src/vim.h
index 4ebf34804..1bd38219a 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1714,15 +1714,8 @@ typedef unsigned short disptick_T; /* display tick type */
typedef void *vim_acl_T; /* dummy to pass an ACL to a function */
-/*
- * Include a prototype for mch_memmove(), it may not be in alloc.pro.
- */
-#ifdef VIM_MEMMOVE
-void mch_memmove(void *, void *, size_t);
-#else
-# ifndef mch_memmove
-# define mch_memmove(to, from, len) memmove(to, from, len)
-# endif
+#ifndef mch_memmove
+# define mch_memmove(to, from, len) memmove((char*)(to), (char*)(from), (char*)(len))
#endif
/*