mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38: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
@@ -11,6 +11,8 @@
|
||||
* ex_getln.c: Functions for entering and editing an Ex command line.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "vim.h"
|
||||
#include "arabic.h"
|
||||
#include "ex_getln.h"
|
||||
@@ -2331,7 +2333,7 @@ static int prev_ccline_used = FALSE;
|
||||
static void save_cmdline(struct cmdline_info *ccp)
|
||||
{
|
||||
if (!prev_ccline_used) {
|
||||
vim_memset(&prev_ccline, 0, sizeof(struct cmdline_info));
|
||||
memset(&prev_ccline, 0, sizeof(struct cmdline_info));
|
||||
prev_ccline_used = TRUE;
|
||||
}
|
||||
*ccp = prev_ccline;
|
||||
|
Reference in New Issue
Block a user