mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 07:18:17 +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:
@@ -956,7 +956,7 @@ int nlua_call(lua_State *lstate)
|
||||
funcexe.evaluate = true;
|
||||
// call_func() retval is deceptive, ignore it. Instead we set `msg_list`
|
||||
// (TRY_WRAP) to capture abort-causing non-exception errors.
|
||||
(void)call_func(name, (int)name_len, &rettv, nargs, vim_args, &funcexe);
|
||||
(void)call_func((char *)name, (int)name_len, &rettv, nargs, vim_args, &funcexe);
|
||||
if (!try_end(&err)) {
|
||||
nlua_push_typval(lstate, &rettv, false);
|
||||
}
|
||||
@@ -1873,7 +1873,7 @@ void nlua_do_ucmd(ucmd_T *cmd, exarg_T *eap)
|
||||
char *buf = xcalloc(length, sizeof(char));
|
||||
bool done = false;
|
||||
while (!done) {
|
||||
done = uc_split_args_iter((char_u *)eap->arg, length, &end, buf, &len);
|
||||
done = uc_split_args_iter(eap->arg, length, &end, buf, &len);
|
||||
if (len > 0) {
|
||||
lua_pushlstring(lstate, buf, len);
|
||||
lua_rawseti(lstate, -2, i);
|
||||
|
Reference in New Issue
Block a user