aboutsummaryrefslogtreecommitdiff
path: root/src/regexp_nfa.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/regexp_nfa.c
parentdbc904956a17e6bec1ddeba9330b639167dbb882 (diff)
downloadrneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.gz
rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.tar.bz2
rneovim-07dad7acf3d49b3136c5aad2c9fe05abb9aaf032.zip
Use memmove instead of mch_memmove
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 6e0e5d1f04..5f1aeeaadb 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -552,7 +552,7 @@ static int realloc_post_list(void)
new_start = (int *)lalloc(new_max * sizeof(int), TRUE);
if (new_start == NULL)
return FAIL;
- mch_memmove(new_start, post_start, nstate_max * sizeof(int));
+ memmove(new_start, post_start, nstate_max * sizeof(int));
old_start = post_start;
post_start = new_start;
post_ptr = new_start + (post_ptr - old_start);
@@ -3560,11 +3560,11 @@ static void copy_sub(regsub_T *to, regsub_T *from)
if (from->in_use > 0) {
/* Copy the match start and end positions. */
if (REG_MULTI)
- mch_memmove(&to->list.multi[0],
+ memmove(&to->list.multi[0],
&from->list.multi[0],
sizeof(struct multipos) * from->in_use);
else
- mch_memmove(&to->list.line[0],
+ memmove(&to->list.line[0],
&from->list.line[0],
sizeof(struct linepos) * from->in_use);
}
@@ -3580,11 +3580,11 @@ static void copy_sub_off(regsub_T *to, regsub_T *from)
if (from->in_use > 1) {
/* Copy the match start and end positions. */
if (REG_MULTI)
- mch_memmove(&to->list.multi[1],
+ memmove(&to->list.multi[1],
&from->list.multi[1],
sizeof(struct multipos) * (from->in_use - 1));
else
- mch_memmove(&to->list.line[1],
+ memmove(&to->list.line[1],
&from->list.line[1],
sizeof(struct linepos) * (from->in_use - 1));
}
@@ -4221,13 +4221,13 @@ addstate_here (
newl = (nfa_thread_T *)alloc(l->len * sizeof(nfa_thread_T));
if (newl == NULL)
return;
- mch_memmove(&(newl[0]),
+ memmove(&(newl[0]),
&(l->t[0]),
sizeof(nfa_thread_T) * listidx);
- mch_memmove(&(newl[listidx]),
+ memmove(&(newl[listidx]),
&(l->t[l->n - count]),
sizeof(nfa_thread_T) * count);
- mch_memmove(&(newl[listidx + count]),
+ memmove(&(newl[listidx + count]),
&(l->t[listidx + 1]),
sizeof(nfa_thread_T) * (l->n - count - listidx - 1));
vim_free(l->t);
@@ -4235,10 +4235,10 @@ addstate_here (
} else {
/* make space for new states, then move them from the
* end to the current position */
- mch_memmove(&(l->t[listidx + count]),
+ memmove(&(l->t[listidx + count]),
&(l->t[listidx + 1]),
sizeof(nfa_thread_T) * (l->n - listidx - 1));
- mch_memmove(&(l->t[listidx]),
+ memmove(&(l->t[listidx]),
&(l->t[l->n - 1]),
sizeof(nfa_thread_T) * count);
}