mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 13:38:34 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -1987,7 +1987,7 @@ void mb_check_adjust_col(void *win_)
|
||||
// Column 0 is always valid.
|
||||
if (oldcol != 0) {
|
||||
char *p = ml_get_buf(win->w_buffer, win->w_cursor.lnum, false);
|
||||
colnr_T len = (colnr_T)STRLEN(p);
|
||||
colnr_T len = (colnr_T)strlen(p);
|
||||
|
||||
// Empty line or invalid column?
|
||||
if (len == 0 || oldcol < 0) {
|
||||
@@ -2127,7 +2127,7 @@ char *enc_canonize(char *enc)
|
||||
}
|
||||
|
||||
// copy "enc" to allocated memory, with room for two '-'
|
||||
char *r = xmalloc(STRLEN(enc) + 3);
|
||||
char *r = xmalloc(strlen(enc) + 3);
|
||||
// Make it all lower case and replace '_' with '-'.
|
||||
p = r;
|
||||
for (s = enc; *s != NUL; s++) {
|
||||
@@ -2492,7 +2492,7 @@ char_u *string_convert_ext(const vimconv_T *const vcp, char_u *ptr, size_t *lenp
|
||||
|
||||
size_t len;
|
||||
if (lenp == NULL) {
|
||||
len = STRLEN(ptr);
|
||||
len = strlen((char *)ptr);
|
||||
} else {
|
||||
len = *lenp;
|
||||
}
|
||||
|
Reference in New Issue
Block a user