aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/vim.h
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-04-25 04:18:43 +0200
committerGitHub <noreply@github.com>2022-04-24 20:18:43 -0600
commit0648100fed65cbe8efe774ae997ab841cae01872 (patch)
tree4b2b5a41f58ddf442a69726f6a315c393317714b /src/nvim/vim.h
parent7813fa2f8cc3885788abc5c5dceea6638d8416e6 (diff)
downloadrneovim-0648100fed65cbe8efe774ae997ab841cae01872.tar.gz
rneovim-0648100fed65cbe8efe774ae997ab841cae01872.tar.bz2
rneovim-0648100fed65cbe8efe774ae997ab841cae01872.zip
refactor: convert macros to all-caps (#17895)
Closes https://github.com/neovim/neovim/issues/6297
Diffstat (limited to 'src/nvim/vim.h')
-rw-r--r--src/nvim/vim.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/vim.h b/src/nvim/vim.h
index 64333e9c3d..3c8a865fb1 100644
--- a/src/nvim/vim.h
+++ b/src/nvim/vim.h
@@ -253,8 +253,6 @@ enum { FOLD_TEXT_LEN = 51, }; //!< buffer size for get_foldtext()
#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))
-#define vim_strpbrk(s, cs) (char_u *)strpbrk((char *)(s), (char *)(cs))
-
// Character used as separated in autoload function/variable names.
#define AUTOLOAD_CHAR '#'
@@ -280,8 +278,8 @@ enum { FOLD_TEXT_LEN = 51, }; //!< buffer size for get_foldtext()
/// @param[in] y Second file name to compare.
///
/// @return 0 for equal file names, non-zero otherwise.
-#define fnamecmp(x, y) path_fnamecmp((const char *)(x), (const char *)(y))
-#define fnamencmp(x, y, n) path_fnamencmp((const char *)(x), \
+#define FNAMECMP(x, y) path_fnamecmp((const char *)(x), (const char *)(y))
+#define FNAMENCMP(x, y, n) path_fnamencmp((const char *)(x), \
(const char *)(y), \
(size_t)(n))