diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-04-25 04:18:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-24 20:18:43 -0600 |
commit | 0648100fed65cbe8efe774ae997ab841cae01872 (patch) | |
tree | 4b2b5a41f58ddf442a69726f6a315c393317714b /src/nvim/ascii.h | |
parent | 7813fa2f8cc3885788abc5c5dceea6638d8416e6 (diff) | |
download | rneovim-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/ascii.h')
-rw-r--r-- | src/nvim/ascii.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/nvim/ascii.h b/src/nvim/ascii.h index 2cabaa43ef..692db40c0d 100644 --- a/src/nvim/ascii.h +++ b/src/nvim/ascii.h @@ -9,11 +9,11 @@ // Definitions of various common control characters. -#define CharOrd(x) ((uint8_t)(x) < 'a' \ - ? (uint8_t)(x) - 'A' \ - : (uint8_t)(x) - 'a') -#define CharOrdLow(x) ((uint8_t)(x) - 'a') -#define CharOrdUp(x) ((uint8_t)(x) - 'A') +#define CHAR_ORD(x) ((uint8_t)(x) < 'a' \ + ? (uint8_t)(x) - 'A' \ + : (uint8_t)(x) - 'a') +#define CHAR_ORD_LOW(x) ((uint8_t)(x) - 'a') +#define CHAR_ORD_UP(x) ((uint8_t)(x) - 'A') #define ROT13(c, a) (((((c) - (a)) + 13) % 26) + (a)) #define NUL '\000' @@ -35,8 +35,8 @@ #define POUND 0xA3 -#define Ctrl_chr(x) (TOUPPER_ASC(x) ^ 0x40) // '?' -> DEL, '@' -> ^@, etc. -#define Meta(x) ((x) | 0x80) +#define CTRL_CHR(x) (TOUPPER_ASC(x) ^ 0x40) // '?' -> DEL, '@' -> ^@, etc. +#define META(x) ((x) | 0x80) #define CTRL_F_STR "\006" #define CTRL_H_STR "\010" |