mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
vim-patch:8.1.2120: some MB_ macros are more complicated than necessary
Problem: Some MB_ macros are more complicated than necessary. (Dominique
Pelle)
Solution: Simplify the macros. Expand inline.
1614a14901
This commit is contained in:
@@ -110,8 +110,6 @@
|
||||
// MB_COPY_CHAR(f, t): copy one char from "f" to "t" and advance the pointers.
|
||||
// PTR2CHAR(): get character from pointer.
|
||||
|
||||
// Get the length of the character p points to, including composing chars.
|
||||
# define MB_PTR2LEN(p) mb_ptr2len(p)
|
||||
// Advance multi-byte pointer, skip over composing chars.
|
||||
# define MB_PTR_ADV(p) (p += mb_ptr2len((char_u *)p))
|
||||
// Advance multi-byte pointer, do not skip over composing chars.
|
||||
|
Reference in New Issue
Block a user