aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mbyte.h
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2022-09-02 17:39:49 +0100
committerGitHub <noreply@github.com>2022-09-02 17:39:49 +0100
commit1ffd527c837fb2465c9659273bbe5447a1352db2 (patch)
tree2d6a88147b4c91a4cfbf13fc8ab98d3f7567ebec /src/nvim/mbyte.h
parent69456f3414f112853eea1b3214a929d99da556d9 (diff)
downloadrneovim-1ffd527c837fb2465c9659273bbe5447a1352db2.tar.gz
rneovim-1ffd527c837fb2465c9659273bbe5447a1352db2.tar.bz2
rneovim-1ffd527c837fb2465c9659273bbe5447a1352db2.zip
refactor: migrate comment style (#20012)
Done automatically using the following perl command: perl -pi -0777pe 's#\n\K */\*\n(.+?)\s*\*/\n#join("\n", map { $_ =~ s:^\s*\K \*://:; $_ } split("\n", $1)) . "\n"#sge' src/nvim/**/*.c Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
Diffstat (limited to 'src/nvim/mbyte.h')
-rw-r--r--src/nvim/mbyte.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/mbyte.h b/src/nvim/mbyte.h
index 2a9afcbd03..b499f33cc6 100644
--- a/src/nvim/mbyte.h
+++ b/src/nvim/mbyte.h
@@ -11,12 +11,10 @@
#include "nvim/os/os_defs.h" // For indirect
#include "nvim/types.h" // for char_u
-/*
- * Return byte length of character that starts with byte "b".
- * Returns 1 for a single-byte character.
- * MB_BYTE2LEN_CHECK() can be used to count a special key as one byte.
- * Don't call MB_BYTE2LEN(b) with b < 0 or b > 255!
- */
+// Return byte length of character that starts with byte "b".
+// Returns 1 for a single-byte character.
+// MB_BYTE2LEN_CHECK() can be used to count a special key as one byte.
+// Don't call MB_BYTE2LEN(b) with b < 0 or b > 255!
#define MB_BYTE2LEN(b) utf8len_tab[b]
#define MB_BYTE2LEN_CHECK(b) (((b) < 0 || (b) > 255) ? 1 : utf8len_tab[b])