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:
Felipe Oliveira Carvalho
2014-03-24 20:30:14 -03:00
committed by Thiago de Arruda
parent 68bc6bce29
commit ed3e9d51ac
29 changed files with 143 additions and 109 deletions

View File

@@ -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);