diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-26 02:51:44 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-26 16:28:13 -0300 |
commit | 07dad7acf3d49b3136c5aad2c9fe05abb9aaf032 (patch) | |
tree | 97ab0057d5c3cf17d2a2e90862c22432dd11c674 /src/ex_docmd.c | |
parent | dbc904956a17e6bec1ddeba9330b639167dbb882 (diff) | |
download | rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.gz rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.bz2 rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.zip |
Use memmove instead of mch_memmove
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 87019dc749..d16458fe2d 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3872,9 +3872,9 @@ static char_u *repl_cmdline(exarg_T *eap, char_u *src, int srclen, char_u *repl, * Copy the next commands, if there are any. */ i = (int)(src - *cmdlinep); /* length of part before match */ - mch_memmove(new_cmdline, *cmdlinep, (size_t)i); + memmove(new_cmdline, *cmdlinep, (size_t)i); - mch_memmove(new_cmdline + i, repl, (size_t)len); + memmove(new_cmdline + i, repl, (size_t)len); i += len; /* remember the end of the string */ STRCPY(new_cmdline + i, src + srclen); src = new_cmdline + i; /* remember where to continue */ @@ -4399,7 +4399,7 @@ static int uc_add_command(char_u *name, size_t name_len, char_u *rep, long argt, goto fail; cmd = USER_CMD_GA(gap, i); - mch_memmove(cmd + 1, cmd, (gap->ga_len - i) * sizeof(ucmd_T)); + memmove(cmd + 1, cmd, (gap->ga_len - i) * sizeof(ucmd_T)); ++gap->ga_len; @@ -4817,7 +4817,7 @@ static void ex_delcommand(exarg_T *eap) --gap->ga_len; if (i < gap->ga_len) - mch_memmove(cmd, cmd + 1, (gap->ga_len - i) * sizeof(ucmd_T)); + memmove(cmd, cmd + 1, (gap->ga_len - i) * sizeof(ucmd_T)); } /* @@ -5131,7 +5131,7 @@ static void do_ucmd(exarg_T *eap) * Also change K_SPECIAL KS_EXTRA KE_CSI into CSI. */ len = ksp - p; if (len > 0) { - mch_memmove(q, p, len); + memmove(q, p, len); q += len; } *q++ = ksp[1] == KS_SPECIAL ? K_SPECIAL : CSI; @@ -5152,7 +5152,7 @@ static void do_ucmd(exarg_T *eap) if (buf == NULL) totlen += len; else { - mch_memmove(q, p, len); + memmove(q, p, len); q += len; } @@ -8180,7 +8180,7 @@ char_u *expand_sfile(char_u *arg) vim_free(result); return NULL; } - mch_memmove(newres, result, (size_t)(p - result)); + memmove(newres, result, (size_t)(p - result)); STRCPY(newres + (p - result), repl); len = (int)STRLEN(newres); STRCAT(newres, p + srclen); |