aboutsummaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-26 02:51:44 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-26 16:28:13 -0300
commit07dad7acf3d49b3136c5aad2c9fe05abb9aaf032 (patch)
tree97ab0057d5c3cf17d2a2e90862c22432dd11c674 /src/vim.h
parentdbc904956a17e6bec1ddeba9330b639167dbb882 (diff)
downloadrneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.gz
rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.bz2
rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.zip
Use memmove instead of mch_memmove
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/vim.h b/src/vim.h
index 713678964c..136cb0bde7 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -1058,7 +1058,7 @@ typedef enum {
#endif
/* Like strcpy() but allows overlapped source and destination. */
-#define STRMOVE(d, s) mch_memmove((d), (s), STRLEN(s) + 1)
+#define STRMOVE(d, s) memmove((d), (s), STRLEN(s) + 1)
#ifdef HAVE_STRNCASECMP
# define STRNICMP(d, s, n) strncasecmp((char *)(d), (char *)(s), (size_t)(n))
@@ -1145,17 +1145,6 @@ 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
-#endif
-
-/*
* fnamecmp() is used to compare file names.
* On some systems case in a file name does not matter, on others it does.
* (this does not account for maximum name lengths and things like "../dir",