aboutsummaryrefslogtreecommitdiff
path: root/src/option.c
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/option.c
parentdbc904956a17e6bec1ddeba9330b639167dbb882 (diff)
downloadrneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.gz
rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.bz2
rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.zip
Use memmove instead of mch_memmove
Diffstat (limited to 'src/option.c')
-rw-r--r--src/option.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/option.c b/src/option.c
index 0067f4dbe3..1bbd331816 100644
--- a/src/option.c
+++ b/src/option.c
@@ -32,6 +32,8 @@
*/
#define IN_OPTION_C
+#include <string.h>
+
#include "vim.h"
#include "option.h"
#include "blowfish.h"
@@ -3161,7 +3163,7 @@ do_set (
if (has_mbyte
&& (i = (*mb_ptr2len)(arg)) > 1) {
/* copy multibyte char */
- mch_memmove(s, arg, (size_t)i);
+ memmove(s, arg, (size_t)i);
arg += i;
s += i;
} else
@@ -3228,9 +3230,9 @@ do_set (
&& *newval != NUL);
if (adding) {
i = (int)STRLEN(origval);
- mch_memmove(newval + i + comma, newval,
+ memmove(newval + i + comma, newval,
STRLEN(newval) + 1);
- mch_memmove(newval, origval, (size_t)i);
+ memmove(newval, origval, (size_t)i);
} else {
i = (int)STRLEN(newval);
STRMOVE(newval + i + comma, origval);
@@ -3336,7 +3338,7 @@ skip:
if (i + (arg - startarg) < IOSIZE) {
/* append the argument with the error */
STRCAT(IObuff, ": ");
- mch_memmove(IObuff + i, startarg, (arg - startarg));
+ memmove(IObuff + i, startarg, (arg - startarg));
IObuff[i + (arg - startarg)] = NUL;
}
/* make sure all characters are printable */
@@ -7677,7 +7679,7 @@ static void langmap_set_entry(int from, int to)
/* insert new entry at position "a" */
entries = (langmap_entry_T *)(langmap_mapga.ga_data) + a;
- mch_memmove(entries + 1, entries,
+ memmove(entries + 1, entries,
(langmap_mapga.ga_len - a) * sizeof(langmap_entry_T));
++langmap_mapga.ga_len;
entries[0].from = from;