mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
Use memmove instead of mch_memmove
This commit is contained in:

committed by
Thiago de Arruda

parent
dbc904956a
commit
07dad7acf3
13
src/vim.h
13
src/vim.h
@@ -1058,7 +1058,7 @@ typedef enum {
|
||||
#endif
|
||||
|
||||
/* Like strcpy() but allows overlapped source and destination. */
|
||||
#define STRMOVE(d, s) mch_memmove((d), (s), STRLEN(s) + 1)
|
||||
#define STRMOVE(d, s) memmove((d), (s), STRLEN(s) + 1)
|
||||
|
||||
#ifdef HAVE_STRNCASECMP
|
||||
# define STRNICMP(d, s, n) strncasecmp((char *)(d), (char *)(s), (size_t)(n))
|
||||
@@ -1144,17 +1144,6 @@ typedef unsigned short disptick_T; /* display tick type */
|
||||
|
||||
typedef void *vim_acl_T; /* dummy to pass an ACL to a function */
|
||||
|
||||
/*
|
||||
* Include a prototype for mch_memmove(), it may not be in alloc.pro.
|
||||
*/
|
||||
#ifdef VIM_MEMMOVE
|
||||
void mch_memmove(void *, void *, size_t);
|
||||
#else
|
||||
# ifndef mch_memmove
|
||||
# define mch_memmove(to, from, len) memmove(to, from, len)
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
* fnamecmp() is used to compare file names.
|
||||
* On some systems case in a file name does not matter, on others it does.
|
||||
|
Reference in New Issue
Block a user