mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +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
@@ -13,6 +13,8 @@
|
||||
/// 2. sha2_seed() generates a random header.
|
||||
/// sha256_self_test() is implicitly called once.
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "vim.h"
|
||||
#include "sha256.h"
|
||||
|
||||
@@ -342,7 +344,7 @@ int sha256_self_test(void)
|
||||
STRCPY(output, hexit);
|
||||
} else {
|
||||
sha256_start(&ctx);
|
||||
vim_memset(buf, 'a', 1000);
|
||||
memset(buf, 'a', 1000);
|
||||
|
||||
for (j = 0; j < 1000; j++) {
|
||||
sha256_update(&ctx, (char_u *) buf, 1000);
|
||||
|
Reference in New Issue
Block a user