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

@@ -12,6 +12,8 @@
* the operators.
*/
#include <string.h>
#include "vim.h"
#include "normal.h"
#include "buffer.h"
@@ -522,7 +524,7 @@ normal_cmd (
int idx;
int set_prevcount = FALSE;
vim_memset(&ca, 0, sizeof(ca)); /* also resets ca.retval */
memset(&ca, 0, sizeof(ca)); /* also resets ca.retval */
ca.oap = oap;
/* Use a count remembered from before entering an operator. After typing
@@ -4339,7 +4341,7 @@ void do_nv_ident(int c1, int c2)
cmdarg_T ca;
clear_oparg(&oa);
vim_memset(&ca, 0, sizeof(ca));
memset(&ca, 0, sizeof(ca));
ca.oap = &oa;
ca.cmdchar = c1;
ca.nchar = c2;