aboutsummaryrefslogtreecommitdiff
path: root/src/normal.c
diff options
context:
space:
mode:
authorFelipe Oliveira Carvalho <felipekde@gmail.com>2014-03-24 20:30:14 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-25 18:57:02 -0300
commited3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d (patch)
treeecb1f753dd0fad9889aca15a083c7c99c1407ba7 /src/normal.c
parent68bc6bce2923f049f84d919aea24600f18139a46 (diff)
downloadrneovim-ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d.tar.gz
rneovim-ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d.tar.bz2
rneovim-ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d.zip
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'
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c
index 770a030db9..668319235d 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -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;