mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 00:46:30 +00:00
Use memset instead of vim_memset
Ran some commands on terminal, reviewed changes, and made some manual changes too. find src | xargs perl -i -p -e "s/vim_memset/memset/g" git grep -l memset | egrep "\.c$" | xargs perl -i -p -e \ 's/(#include "vim\.h")/#include <string.h>\n\n\1/g'
This commit is contained in:

committed by
Thiago de Arruda

parent
68bc6bce29
commit
ed3e9d51ac
@@ -3544,10 +3544,10 @@ static void clear_sub(regsub_T *sub)
|
||||
{
|
||||
if (REG_MULTI)
|
||||
/* Use 0xff to set lnum to -1 */
|
||||
vim_memset(sub->list.multi, 0xff,
|
||||
memset(sub->list.multi, 0xff,
|
||||
sizeof(struct multipos) * nfa_nsubexpr);
|
||||
else
|
||||
vim_memset(sub->list.line, 0, sizeof(struct linepos) * nfa_nsubexpr);
|
||||
memset(sub->list.line, 0, sizeof(struct linepos) * nfa_nsubexpr);
|
||||
sub->in_use = 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user