mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +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
@@ -2,6 +2,8 @@
|
||||
///
|
||||
/// Code related to character sets.
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "vim.h"
|
||||
#include "charset.h"
|
||||
#include "farsi.h"
|
||||
@@ -129,7 +131,7 @@ int buf_init_chartab(buf_T *buf, int global)
|
||||
}
|
||||
|
||||
// Init word char flags all to FALSE
|
||||
vim_memset(buf->b_chartab, 0, (size_t)32);
|
||||
memset(buf->b_chartab, 0, (size_t)32);
|
||||
|
||||
if (enc_dbcs != 0) {
|
||||
for (c = 0; c < 256; ++c) {
|
||||
|
Reference in New Issue
Block a user