aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/macros.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/macros.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/macros.h')
-rw-r--r--src/nvim/macros.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/macros.h b/src/nvim/macros.h
index be1ab935c0..0af7483154 100644
--- a/src/nvim/macros.h
+++ b/src/nvim/macros.h
@@ -83,11 +83,11 @@
// mch_open_rw(): invoke os_open() with third argument for user R/W.
#if defined(UNIX) // open in rw------- mode
-# define mch_open_rw(n, f) os_open((n), (f), (mode_t)0600)
+# define MCH_OPEN_RW(n, f) os_open((n), (f), (mode_t)0600)
#elif defined(WIN32)
-# define mch_open_rw(n, f) os_open((n), (f), S_IREAD | S_IWRITE)
+# define MCH_OPEN_RW(n, f) os_open((n), (f), S_IREAD | S_IWRITE)
#else
-# define mch_open_rw(n, f) os_open((n), (f), 0)
+# define MCH_OPEN_RW(n, f) os_open((n), (f), 0)
#endif
#define REPLACE_NORMAL(s) (((s) & REPLACE_FLAG) && !((s) & VREPLACE_FLAG))