aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/vim.h
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-11-26 18:58:45 +0100
committerGitHub <noreply@github.com>2022-11-26 18:58:45 +0100
commit019c8805e514428c0b999583f5aec8c9f4eb96d0 (patch)
tree1a105862628c997b46725b4f3f485bd074332cce /src/nvim/vim.h
parent319fbffc94896dd9cf0a77891d69b7fcada1fad4 (diff)
parentbd22585061b66d7f71d4832b4a81e950b3c9d19d (diff)
downloadrneovim-019c8805e514428c0b999583f5aec8c9f4eb96d0.tar.gz
rneovim-019c8805e514428c0b999583f5aec8c9f4eb96d0.tar.bz2
rneovim-019c8805e514428c0b999583f5aec8c9f4eb96d0.zip
Merge pull request #20196 from dundargoc/refactor/char_u/14
refactor: replace char_u with char 14: remove `STRLEN` part final
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r--src/nvim/vim.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/vim.h b/src/nvim/vim.h
index 7ac359da9a..50b186c750 100644
--- a/src/nvim/vim.h
+++ b/src/nvim/vim.h
@@ -195,7 +195,6 @@ enum { FOLD_TEXT_LEN = 51, }; //!< buffer size for get_foldtext()
// defines to avoid typecasts from (char_u *) to (char *) and back
// (vim_strchr() is now in strings.c)
-#define STRLEN(s) strlen((char *)(s))
#ifdef HAVE_STRNLEN
# define STRNLEN(s, n) strnlen((char *)(s), (size_t)(n))
#else
@@ -216,7 +215,7 @@ enum { FOLD_TEXT_LEN = 51, }; //!< buffer size for get_foldtext()
#endif
// Like strcpy() but allows overlapped source and destination.
-#define STRMOVE(d, s) 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))