refactor: replace char_u variables and functions with char

Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
Dundar Goc
2022-05-04 18:27:22 +02:00
parent 82c7a82c35
commit 9a671e6a24
47 changed files with 569 additions and 576 deletions

View File

@@ -562,11 +562,11 @@ int utf_ptr2cells_len(const char_u *p, int size)
/// @param str The source string, may not be NULL, must be a NUL-terminated
/// string.
/// @return The number of cells occupied by string `str`
size_t mb_string2cells(const char_u *str)
size_t mb_string2cells(const char *str)
{
size_t clen = 0;
for (const char_u *p = str; *p != NUL; p += utfc_ptr2len(p)) {
for (const char_u *p = (char_u *)str; *p != NUL; p += utfc_ptr2len(p)) {
clen += utf_ptr2cells(p);
}