mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00

committed by
Justin M. Keyes

parent
6aefae8c4e
commit
22311457ab
@@ -207,7 +207,7 @@ enum { FOLD_TEXT_LEN = 51 }; //!< buffer size for get_foldtext()
|
||||
|
||||
|
||||
// defines to avoid typecasts from (char_u *) to (char *) and back
|
||||
// (vim_strchr() and vim_strrchr() are now in alloc.c)
|
||||
// (vim_strchr() is now in strings.c)
|
||||
|
||||
#define STRLEN(s) strlen((char *)(s))
|
||||
#define STRCPY(d, s) strcpy((char *)(d), (char *)(s))
|
||||
@@ -238,6 +238,8 @@ enum { FOLD_TEXT_LEN = 51 }; //!< buffer size for get_foldtext()
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define STRRCHR(s, c) (char_u *)strrchr((const char *)(s), (c))
|
||||
|
||||
#define STRCAT(d, s) strcat((char *)(d), (char *)(s))
|
||||
#define STRNCAT(d, s, n) strncat((char *)(d), (char *)(s), (size_t)(n))
|
||||
#define STRLCAT(d, s, n) xstrlcat((char *)(d), (char *)(s), (size_t)(n))
|
||||
|
Reference in New Issue
Block a user