mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -1044,7 +1044,7 @@ static int nlua_debug(lua_State *lstate)
|
||||
if (input.v_type != VAR_STRING
|
||||
|| input.vval.v_string == NULL
|
||||
|| *input.vval.v_string == NUL
|
||||
|| STRCMP(input.vval.v_string, "cont") == 0) {
|
||||
|| strcmp(input.vval.v_string, "cont") == 0) {
|
||||
tv_clear(&input);
|
||||
return 0;
|
||||
}
|
||||
|
@@ -499,7 +499,7 @@ static int nlua_iconv(lua_State *lstate)
|
||||
|
||||
vimconv_T vimconv;
|
||||
vimconv.vc_type = CONV_NONE;
|
||||
convert_setup_ext(&vimconv, from, false, to, false);
|
||||
convert_setup_ext(&vimconv, (char *)from, false, (char *)to, false);
|
||||
|
||||
char_u *ret = (char_u *)string_convert(&vimconv, (char *)str, &str_len);
|
||||
|
||||
|
@@ -834,7 +834,7 @@ static int node_field(lua_State *L)
|
||||
do {
|
||||
const char *current_field = ts_tree_cursor_current_field_name(&cursor);
|
||||
|
||||
if (current_field != NULL && !STRCMP(field_name, current_field)) {
|
||||
if (current_field != NULL && !strcmp(field_name, current_field)) {
|
||||
push_node(L, ts_tree_cursor_current_node(&cursor), 1); // [table, node]
|
||||
lua_rawseti(L, -2, (int)++curr_index);
|
||||
}
|
||||
|
Reference in New Issue
Block a user