mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +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
@@ -16,6 +16,8 @@
|
||||
* mappings and abbreviations
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "vim.h"
|
||||
#include "getchar.h"
|
||||
#include "charset.h"
|
||||
@@ -3073,7 +3075,7 @@ static void map_free(mapblock_T **mpp)
|
||||
static void validate_maphash(void)
|
||||
{
|
||||
if (!maphash_valid) {
|
||||
vim_memset(maphash, 0, sizeof(maphash));
|
||||
memset(maphash, 0, sizeof(maphash));
|
||||
maphash_valid = TRUE;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user