mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
refactor: replace char_u with char 21 (#21779)
refactor: replace char_u with char Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -299,7 +299,7 @@ void ex_profile(exarg_T *eap)
|
||||
|
||||
if (len == 5 && strncmp(eap->arg, "start", 5) == 0 && *e != NUL) {
|
||||
xfree(profile_fname);
|
||||
profile_fname = (char *)expand_env_save_opt((char_u *)e, true);
|
||||
profile_fname = (char *)expand_env_save_opt(e, true);
|
||||
do_profiling = PROF_YES;
|
||||
profile_set_wait(profile_zero());
|
||||
set_vim_var_nr(VV_PROFILING, 1L);
|
||||
@@ -368,14 +368,14 @@ void set_context_in_profile_cmd(expand_T *xp, const char *arg)
|
||||
pexpand_what = PEXP_SUBCMD;
|
||||
xp->xp_pattern = (char *)arg;
|
||||
|
||||
char_u *const end_subcmd = (char_u *)skiptowhite(arg);
|
||||
char *const end_subcmd = skiptowhite(arg);
|
||||
if (*end_subcmd == NUL) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((const char *)end_subcmd - arg == 5 && strncmp(arg, "start", 5) == 0) {
|
||||
if (end_subcmd - arg == 5 && strncmp(arg, "start", 5) == 0) {
|
||||
xp->xp_context = EXPAND_FILES;
|
||||
xp->xp_pattern = skipwhite((char *)end_subcmd);
|
||||
xp->xp_pattern = skipwhite(end_subcmd);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user