mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
refactor: replace char_u variables and functions with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -95,10 +95,10 @@
|
||||
|
||||
// MB_PTR_ADV(): advance a pointer to the next character, taking care of
|
||||
// multi-byte characters if needed. Skip over composing chars.
|
||||
#define MB_PTR_ADV(p) (p += utfc_ptr2len((char_u *)p))
|
||||
#define MB_PTR_ADV(p) (p += utfc_ptr2len((char *)p))
|
||||
|
||||
// Advance multi-byte pointer, do not skip over composing chars.
|
||||
#define MB_CPTR_ADV(p) (p += utf_ptr2len(p))
|
||||
#define MB_CPTR_ADV(p) (p += utf_ptr2len((char *)p))
|
||||
|
||||
// MB_PTR_BACK(): backup a pointer to the previous character, taking care of
|
||||
// multi-byte characters if needed. Only use with "p" > "s" !
|
||||
|
Reference in New Issue
Block a user