diff options
author | Felipe Oliveira Carvalho <felipekde@gmail.com> | 2014-03-24 20:30:14 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-25 18:57:02 -0300 |
commit | ed3e9d51ac2fd2a24d244796dd9cebfe0a19bc6d (patch) | |
tree | ecb1f753dd0fad9889aca15a083c7c99c1407ba7 /src/quickfix.c | |
parent | 68bc6bce2923f049f84d919aea24600f18139a46 (diff) | |
download | rneovim-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/quickfix.c')
-rw-r--r-- | src/quickfix.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 1820f15af4..69052d14dd 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -11,6 +11,8 @@ * quickfix.c: functions for quickfix mode, using a file with error messages */ +#include <string.h> + #include "vim.h" #include "quickfix.h" #include "buffer.h" @@ -857,7 +859,7 @@ static void qf_new_list(qf_info_T *qi, char_u *qf_title) qi->qf_curlist = LISTCOUNT - 1; } else qi->qf_curlist = qi->qf_listcount++; - vim_memset(&qi->qf_lists[qi->qf_curlist], 0, (size_t)(sizeof(qf_list_T))); + memset(&qi->qf_lists[qi->qf_curlist], 0, (size_t)(sizeof(qf_list_T))); if (qf_title != NULL) { char_u *p = alloc((int)STRLEN(qf_title) + 2); @@ -984,7 +986,7 @@ static qf_info_T *ll_new_list(void) qi = (qf_info_T *)alloc((unsigned)sizeof(qf_info_T)); if (qi != NULL) { - vim_memset(qi, 0, (size_t)(sizeof(qf_info_T))); + memset(qi, 0, (size_t)(sizeof(qf_info_T))); qi->qf_refcount++; } |