mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
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>
This commit is contained in:
@@ -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])
|
||||
|
||||
|
Reference in New Issue
Block a user