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/syntax.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/syntax.c')
-rw-r--r-- | src/syntax.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/syntax.c b/src/syntax.c index ca7bddb875..ea0dadb580 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -3219,7 +3219,7 @@ static void syn_remove_pattern(synblock_T *block, int idx) if (spp->sp_flags & HL_FOLD) --block->b_syn_folditems; syn_clear_pattern(block, idx); - mch_memmove(spp, spp + 1, + memmove(spp, spp + 1, sizeof(synpat_T) * (block->b_syn_patterns.ga_len - idx - 1)); --block->b_syn_patterns.ga_len; } @@ -4316,7 +4316,7 @@ static void syn_cmd_keyword(exarg_T *eap, int syncing) if (has_mbyte) { int l = (*mb_ptr2len)(p + 1); - mch_memmove(p, p + 1, l); + memmove(p, p + 1, l); p += l; } else { p[0] = p[1]; @@ -5394,7 +5394,7 @@ static short *copy_id_list(short *list) len = (count + 1) * sizeof(short); retval = (short *)alloc((unsigned)len); if (retval != NULL) - mch_memmove(retval, list, (size_t)len); + memmove(retval, list, (size_t)len); return retval; } @@ -7739,7 +7739,7 @@ int highlight_changed(void) hlt[hlcnt + i].sg_cterm = highlight_attr[HLF_SNC]; hlt[hlcnt + i].sg_gui = highlight_attr[HLF_SNC]; } else - mch_memmove(&hlt[hlcnt + i], + memmove(&hlt[hlcnt + i], &hlt[id_SNC - 1], sizeof(struct hl_group)); hlt[hlcnt + i].sg_link = 0; |